aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2007-12-21 05:11:40 +0800
committerache <ache@FreeBSD.org>2007-12-21 05:11:40 +0800
commitdd53d5e6983028208e718542552c1fbc050e4be3 (patch)
tree36a313662c1da28d4f7917f4b665dcf4eee67658 /graphics
parenta6de70903a1d2acdded191dac33167fe6b44091e (diff)
downloadfreebsd-ports-gnome-dd53d5e6983028208e718542552c1fbc050e4be3.tar.gz
freebsd-ports-gnome-dd53d5e6983028208e718542552c1fbc050e4be3.tar.zst
freebsd-ports-gnome-dd53d5e6983028208e718542552c1fbc050e4be3.zip
Install libpng.pc as symlink to libpng12.pc, some ports search it.
Submitted by: Tim Bishop <tim@bishnet.net> (partially)
Diffstat (limited to 'graphics')
-rw-r--r--graphics/png/Makefile2
-rw-r--r--graphics/png/pkg-plist2
2 files changed, 4 insertions, 0 deletions
diff --git a/graphics/png/Makefile b/graphics/png/Makefile
index 475f08b4472f..b22656a65ca6 100644
--- a/graphics/png/Makefile
+++ b/graphics/png/Makefile
@@ -7,6 +7,7 @@
PORTNAME= png
PORTVERSION= 1.2.23
+PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= lib${PORTNAME}
@@ -49,5 +50,6 @@ post-install:
> ${WRKSRC}/scripts/libpng.pc
${INSTALL_DATA} ${WRKSRC}/scripts/libpng.pc \
${PREFIX}/libdata/pkgconfig/libpng12.pc
+ ${LN} -sf libpng12.pc ${PREFIX}/libdata/pkgconfig/libpng.pc
.include <bsd.port.post.mk>
diff --git a/graphics/png/pkg-plist b/graphics/png/pkg-plist
index 2f8148c6beb9..5041f1bbd175 100644
--- a/graphics/png/pkg-plist
+++ b/graphics/png/pkg-plist
@@ -11,4 +11,6 @@ lib/libpng.a
lib/libpng.so
lib/libpng.so.%%SHLIB_VER%%
libdata/pkgconfig/libpng12.pc
+@exec ln -sf %f %D/libdata/pkgconfig/libpng.pc
+@unexec rm -f %D/libdata/pkgconfig/libpng.pc
@dirrm include/libpng