pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
libimagequant: finish package
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By: wiz
Date: Mon May 1 14:09:36 2023 +0200
Changeset: b30657f7f1277dd0112ec611e2de466e0e096d17
Modified Files:
libimagequant/Makefile
libimagequant/PLIST
Log Message:
libimagequant: finish package
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b30657f7f1277dd0112ec611e2de466e0e096d17
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
libimagequant/Makefile | 20 ++++++++++++++------
libimagequant/PLIST | 3 ++-
2 files changed, 16 insertions(+), 7 deletions(-)
diffs:
diff --git a/libimagequant/Makefile b/libimagequant/Makefile
index 3dcfb15945..bd87d58e37 100644
--- a/libimagequant/Makefile
+++ b/libimagequant/Makefile
@@ -10,15 +10,23 @@ HOMEPAGE= https://pngquant.org/lib/
COMMENT= High-quality conversion of RGBA images to 8-bit indexed-color
LICENSE= gnu-gpl-v3
+WRKSRC= ${WRKDIR}/${DISTNAME}/imagequant-sys
+
.include "cargo-depends.mk"
-#INSTALLATION_DIRS= include lib
+INSTALLATION_DIRS= include lib/pkg-config
+
+post-build:
+ cd ${WRKSRC} && \
+ ${SED} 's|@PREFIX@|$(PREFIX)|;s|@VERSION@|$(VERSION)|' < imagequant.pc.in > imagequant.pc
-#do-install:
-# ${INSTALL_DATA} ${WRKSRC}/libimagequant.h \
-# ${DESTDIR}${PREFIX}/include/libimagequant.h
-# ${LIBTOOL} --mode=install ${INSTALL_LIB} \
-# ${WRKSRC}/libimagequant.la ${DESTDIR}${PREFIX}/lib
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/libimagequant.h \
+ ${DESTDIR}${PREFIX}/include
+ ${INSTALL_DATA} ${WRKSRC}/imagequant.pc \
+ ${DESTDIR}${PREFIX}/lib/pkg-config
+ ${INSTALL_LIB} ${WRKSRC}/../target/release/libimagequant_sys.a \
+ ${DESTDIR}${PREFIX}/lib/libimagequant.a
.include "../../lang/rust/cargo.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/libimagequant/PLIST b/libimagequant/PLIST
index 35818d03f3..95fdb82abc 100644
--- a/libimagequant/PLIST
+++ b/libimagequant/PLIST
@@ -1,3 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2017/01/29 11:57:03 adam Exp $
+@comment $NetBSD$
include/libimagequant.h
lib/libimagequant.a
+lib/pkg-config/imagequant.pc
Home |
Main Index |
Thread Index |
Old Index