summaryrefslogtreecommitdiff
path: root/graphics/png
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2006-04-22 07:07:55 +0000
committerwiz <wiz@pkgsrc.org>2006-04-22 07:07:55 +0000
commite022ecbc45f8c71b8c9f69666181d1b951107b43 (patch)
treeb22e426ab78f6bb0eec54ff129ad7d6c096ef5b6 /graphics/png
parent22fd983ed5940a53c7134b0bcdef08c67b1edde6 (diff)
downloadpkgsrc-e022ecbc45f8c71b8c9f69666181d1b951107b43.tar.gz
Only use assembler code on i386. Fixes amd64 build and PR 33331 by Ben Collver.
Diffstat (limited to 'graphics/png')
-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.