pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

libimagequant: install shared library



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By:	wiz
Date:		Sat May 20 00:19:38 2023 +0200
Changeset:	550759a23810df42d1b3ae2cfc926a905febf8a9

Modified Files:
	libimagequant/Makefile
	libimagequant/PLIST
Removed Files:
	libimagequant/TODO

Log Message:
libimagequant: install shared library

mostly from pin@, thanks!

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=550759a23810df42d1b3ae2cfc926a905febf8a9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 libimagequant/Makefile | 5 ++++-
 libimagequant/PLIST    | 4 ++++
 libimagequant/TODO     | 2 --
 3 files changed, 8 insertions(+), 3 deletions(-)

diffs:
diff --git a/libimagequant/Makefile b/libimagequant/Makefile
index e63cc87a75..5632b8d0b3 100644
--- a/libimagequant/Makefile
+++ b/libimagequant/Makefile
@@ -10,6 +10,8 @@ HOMEPAGE=	https://pngquant.org/lib/
 COMMENT=	High-quality conversion of RGBA images to 8-bit indexed-color
 LICENSE=	gnu-gpl-v3
 
+BUILD_DEPENDS+=	cargo-c>=0.9.19:../../devel/cargo-c
+
 WRKSRC=		${WRKDIR}/${DISTNAME}/imagequant-sys
 
 .include "cargo-depends.mk"
@@ -18,9 +20,10 @@ INSTALLATION_DIRS=	include lib/pkg-config
 
 post-build:
 	cd ${WRKSRC} && \
-        ${SED} 's|@PREFIX@|${PREFIX}|;s|@VERSION@|${VERSION}|' < imagequant.pc.in > imagequant.pc
+	${SED} 's|@PREFIX@|${PREFIX}|;s|@VERSION@|${VERSION}|' < imagequant.pc.in > imagequant.pc
 
 do-install:
+	cd ${WRKSRC} && ${RUN} cargo cinstall --destdir=${DESTDIR} --prefix=${PREFIX} --libdir=${PREFIX}/lib
 	${INSTALL_DATA} ${WRKSRC}/libimagequant.h \
 		${DESTDIR}${PREFIX}/include
 	${INSTALL_DATA} ${WRKSRC}/imagequant.pc \
diff --git a/libimagequant/PLIST b/libimagequant/PLIST
index 95fdb82abc..8836138d22 100644
--- a/libimagequant/PLIST
+++ b/libimagequant/PLIST
@@ -1,4 +1,8 @@
 @comment $NetBSD$
 include/libimagequant.h
 lib/libimagequant.a
+lib/libimagequant.so
+lib/libimagequant.so.0
+lib/libimagequant.so.0.0.0
 lib/pkg-config/imagequant.pc
+lib/pkgconfig/imagequant.pc
diff --git a/libimagequant/TODO b/libimagequant/TODO
deleted file mode 100644
index be90fe093a..0000000000
--- a/libimagequant/TODO
+++ /dev/null
@@ -1,2 +0,0 @@
-Needs to be changed to install shared library.
-https://github.com/ImageOptim/libimagequant/issues/109


Home | Main Index | Thread Index | Old Index