summaryrefslogtreecommitdiff
path: root/graphics/png/Makefile
diff options
context:
space:
mode:
authorben <ben>2004-03-29 16:02:08 +0000
committerben <ben>2004-03-29 16:02:08 +0000
commita5a0f429af4ba8dde7edea2322c43e0642275e70 (patch)
tree27d8d6b690f91e925b986fe890684ac966acfa3b /graphics/png/Makefile
parentda49246a34887d2423ec25846aebe97ee9c1c924 (diff)
downloadpkgsrc-a5a0f429af4ba8dde7edea2322c43e0642275e70.tar.gz
Install lib/pkgconfig/libpng12.pc, otherwise "pkg-config --list-all" will
fail with an error if imlib2 is installed.
Diffstat (limited to 'graphics/png/Makefile')
-rw-r--r--graphics/png/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/graphics/png/Makefile b/graphics/png/Makefile
index 0e28f43c75d..ab8af99f8bf 100644
--- a/graphics/png/Makefile
+++ b/graphics/png/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.56 2004/03/19 18:36:46 ben Exp $
+# $NetBSD: Makefile,v 1.57 2004/03/29 16:02:08 ben Exp $
# On update, don't forget to increase shared library major/minor's in
# accordance with changes (patch-aa).
@@ -35,10 +35,20 @@ PLIST_SUBST+= LIBPNG_SO_MINOR=${LIBPNG_SO_MINOR}
INSTALLATION_DIRS= include lib man/man3 man/man5
+PKGCONFIG_OVERRIDE= scripts/libpng12.pc.in
+
+SUBST_CLASSES= pc
+SUBST_STAGE.pc= post-patch
+SUBST_FILES.pc= scripts/libpng.pc.in
+SUBST_SED.pc= s\!@PREFIX@!${PREFIX}!
+SUBST_MESSAGE.pc= "Fixing libpng.pc.in."
+
post-install:
${INSTALL_MAN} ${WRKSRC}/libpng.3 ${PREFIX}/man/man3
${INSTALL_MAN} ${WRKSRC}/libpngpf.3 ${PREFIX}/man/man3
${INSTALL_MAN} ${WRKSRC}/png.5 ${PREFIX}/man/man5
+ ${INSTALL_DATA} ${WRKSRC}/scripts/libpng.pc.in \
+ ${PREFIX}/lib/pkgconfig/libpng12.pc
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"