summaryrefslogtreecommitdiff
path: root/graphics/png
diff options
context:
space:
mode:
authortron <tron>2008-08-18 21:35:37 +0000
committertron <tron>2008-08-18 21:35:37 +0000
commit153176930909d49cbdb1560c4ca590e7c1acbb6c (patch)
tree23246322726bf374ffc7918c355b2f99beac1fb1 /graphics/png
parentaf8d356842c183a5eef741311ed6e358afeb8f15 (diff)
downloadpkgsrc-153176930909d49cbdb1560c4ca590e7c1acbb6c.tar.gz
Work arond the broken libtool archive "/usr/X11/lib/libpng12.la" under
Mac OS X Leopard. This fixes build problems in e.g. the "libwmf" package.
Diffstat (limited to 'graphics/png')
-rw-r--r--graphics/png/buildlink3.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/graphics/png/buildlink3.mk b/graphics/png/buildlink3.mk
index 446d1c13e94..7d17890b35d 100644
--- a/graphics/png/buildlink3.mk
+++ b/graphics/png/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.21 2007/10/26 03:53:39 bjs Exp $
+# $NetBSD: buildlink3.mk,v 1.22 2008/08/18 21:35:37 tron Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
PNG_BUILDLINK3_MK:= ${PNG_BUILDLINK3_MK}+
@@ -28,6 +28,13 @@ CPPFLAGS+= -DPNG_NO_ASSEMBLER_CODE
. endif
.endif # PNG_BUILDLINK3_MK
+# Work around broken libtool archive "/usr/X11/lib/libpng12.la" under
+# Mac OS 10.5.4 or newer which references a non-existing version of the
+# PNG shared library.
+.if !empty(MACHINE_PLATFORM:MDarwin-9.*-*)
+BUILDLINK_TRANSFORM+= rename:-lpng12.0.26.0:-lpng
+.endif
+
.include "../../devel/zlib/buildlink3.mk"
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}