summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'graphics')
-rw-r--r--graphics/png/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/graphics/png/Makefile b/graphics/png/Makefile
index 0b524c8fb13..bb9ee968c5e 100644
--- a/graphics/png/Makefile
+++ b/graphics/png/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.77 2006/04/17 13:44:46 wiz Exp $
+# $NetBSD: Makefile,v 1.78 2006/04/22 07:07:55 wiz Exp $
DISTNAME= libpng-1.2.9
PKGNAME= ${DISTNAME:S/lib//}
@@ -22,6 +22,12 @@ PKGCONFIG_OVERRIDE= scripts/libpng.pc.in
TEST_TARGET= test
USE_LIBTOOL= yes
+.include "../../mk/bsd.prefs.mk"
+
+.if ${MACHINE_ARCH} != "i386"
+CPPFLAGS+= -DPNG_NO_ASSEMBLER_CODE
+.endif
+
SUBST_CLASSES+= rpathfix
SUBST_FILES.rpathfix= scripts/libpng-config.in
SUBST_MESSAGE.rpathfix= Adding rpath to libpng-config.