summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2013-01-18 18:29:54 +0000
committerryoon <ryoon@pkgsrc.org>2013-01-18 18:29:54 +0000
commit72e38d7c90096fcd09bd49b688cf672b13ec497e (patch)
tree57233dfa2f1ebb3732887cb167697302ee4ba6fe /devel
parent1f513afb3b568c427ff946344702960bce4d6253 (diff)
downloadpkgsrc-72e38d7c90096fcd09bd49b688cf672b13ec497e.tar.gz
Add dependency to yasm on i386 and amd64 platform.
Fix build on i386 and amd64. Thank you, wiz@.
Diffstat (limited to 'devel')
-rw-r--r--devel/xulrunner/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/devel/xulrunner/Makefile b/devel/xulrunner/Makefile
index 8835128cfc6..e2961d76859 100644
--- a/devel/xulrunner/Makefile
+++ b/devel/xulrunner/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.88 2013/01/10 15:01:29 ryoon Exp $
+# $NetBSD: Makefile,v 1.89 2013/01/18 18:29:54 ryoon Exp $
.include "dist.mk"
PKGNAME= xulrunner-${MOZ_BRANCH}${MOZ_BRANCH_MINOR:S/esr//}
@@ -33,6 +33,14 @@ LDFLAGS+= -Wl,-rpath,${PREFIX}/lib/xulrunner -Wl,-rpath,${PREFIX}/lib
.include "mozilla-common.mk"
.include "options.mk"
+# When MACHINAE_ARCH == "arm", linjpeg-turbo should be enabled.
+.if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64")
+BUILD_DEPENDS+= yasm>=1.1.0:../../devel/yasm
+CONFIGURE_ARGS+= --enable-libjpeg-turbo
+.else
+CONFIGURE_ARGS+= --diable-libjpeg-turbo
+.endif
+
PLIST_VARS+= sps webrtc vorbis tremor
.if !empty(MACHINE_PLATFORM:S/i386/x86/:MLinux-*-x86*) || ${OPSYS} == "Darwin"