pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
libimagequant: clean up
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By: wiz
Date: Sat May 20 17:51:52 2023 +0200
Changeset: 514b9f2ade90786e36c3446a0164aad118bca212
Modified Files:
libimagequant/Makefile
libimagequant/PLIST
Log Message:
libimagequant: clean up
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=514b9f2ade90786e36c3446a0164aad118bca212
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
libimagequant/Makefile | 15 +++------------
libimagequant/PLIST | 1 -
2 files changed, 3 insertions(+), 13 deletions(-)
diffs:
diff --git a/libimagequant/Makefile b/libimagequant/Makefile
index 5632b8d0b3..db7e366fd3 100644
--- a/libimagequant/Makefile
+++ b/libimagequant/Makefile
@@ -14,22 +14,13 @@ BUILD_DEPENDS+= cargo-c>=0.9.19:../../devel/cargo-c
WRKSRC= ${WRKDIR}/${DISTNAME}/imagequant-sys
-.include "cargo-depends.mk"
-
-INSTALLATION_DIRS= include lib/pkg-config
+PKGCONFIG_OVERRIDE= ${DESTDIR}${PREFIX}/lib/pkgconfig/imagequant.pc
+PKGCONFIG_OVERRIDE_STAGE= post-install
-post-build:
- cd ${WRKSRC} && \
- ${SED} 's|@PREFIX@|${PREFIX}|;s|@VERSION@|${VERSION}|' < imagequant.pc.in > imagequant.pc
+.include "cargo-depends.mk"
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 \
- ${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 8836138d22..16908bee44 100644
--- a/libimagequant/PLIST
+++ b/libimagequant/PLIST
@@ -4,5 +4,4 @@ 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
Home |
Main Index |
Thread Index |
Old Index