summaryrefslogtreecommitdiff
path: root/graphics/png/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/png/Makefile')
-rw-r--r--graphics/png/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/graphics/png/Makefile b/graphics/png/Makefile
index c9e67a0ba95..0b524c8fb13 100644
--- a/graphics/png/Makefile
+++ b/graphics/png/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.76 2006/04/17 12:49:16 tron Exp $
+# $NetBSD: Makefile,v 1.77 2006/04/17 13:44:46 wiz Exp $
DISTNAME= libpng-1.2.9
PKGNAME= ${DISTNAME:S/lib//}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libpng/} \
http://www.libpng.org/pub/png/src/ \
@@ -22,6 +22,12 @@ PKGCONFIG_OVERRIDE= scripts/libpng.pc.in
TEST_TARGET= test
USE_LIBTOOL= yes
+SUBST_CLASSES+= rpathfix
+SUBST_FILES.rpathfix= scripts/libpng-config.in
+SUBST_MESSAGE.rpathfix= Adding rpath to libpng-config.
+SUBST_SED.rpathfix= '/^L_opts=/s|-L\([ ]*[^ ]*\)"|${COMPILER_RPATH_FLAG}\1 -L\1"|g'
+SUBST_STAGE.rpathfix= pre-configure
+
# highly version dependent -- fix up libtool .la file contents, since
# just copying a .la file to a new filename is not enough
# PLIST breakage will show when it needs updating :)