summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorsbd <sbd@pkgsrc.org>2012-01-06 07:36:38 +0000
committersbd <sbd@pkgsrc.org>2012-01-06 07:36:38 +0000
commitd586f3d0b5fc0e3d7cd9e31f69e9cc216a10b478 (patch)
tree291976580f3b77fe5678184f4c7b4f79a46b3078 /www
parent948be831d070d48a57ae583b255b77044f20cae9 (diff)
downloadpkgsrc-d586f3d0b5fc0e3d7cd9e31f69e9cc216a10b478.tar.gz
Only add the yasm build dependence on platforms the need it.
Diffstat (limited to 'www')
-rw-r--r--www/firefox/Makefile9
-rw-r--r--www/seamonkey/Makefile11
2 files changed, 14 insertions, 6 deletions
diff --git a/www/firefox/Makefile b/www/firefox/Makefile
index be073b37876..dda1f5e7c01 100644
--- a/www/firefox/Makefile
+++ b/www/firefox/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.91 2012/01/05 08:02:20 sbd Exp $
+# $NetBSD: Makefile,v 1.92 2012/01/06 07:36:38 sbd Exp $
.include "../../devel/xulrunner/dist.mk"
PKGNAME= firefox-${FIREFOX_VER}
@@ -9,8 +9,6 @@ HOMEPAGE= http://www.mozilla.com/en-US/firefox/
COMMENT= Web browser with support for extensions
LICENSE= mpl-1.1
-BUILD_DEPENDS+= yasm>=1.1.0:../../devel/yasm
-
MOZILLA_DIR= # empty
CONFIGURE_ARGS+= --enable-application=browser
@@ -22,6 +20,11 @@ ALL_ENV+= MOZILLA_PKG_NAME=firefox
.include "../../devel/xulrunner/mozilla-common.mk"
.include "options.mk"
+.if (${OPSYS} == "Linux" || ${OPSYS} == "SunOS" || ${OPSYS} == "Darwin") && \
+ (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64")
+BUILD_DEPENDS+= yasm>=1.1.0:../../devel/yasm
+.endif
+
MOZILLA=firefox
MOZILLA_ICON= ${WRKSRC}/dist/firefox/chrome/icons/default/default48.png
.if !empty(PKG_OPTIONS:Mofficial-mozilla-branding)
diff --git a/www/seamonkey/Makefile b/www/seamonkey/Makefile
index 972d8907c91..6526f9b55be 100644
--- a/www/seamonkey/Makefile
+++ b/www/seamonkey/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.57 2012/01/05 08:55:32 sbd Exp $
+# $NetBSD: Makefile,v 1.58 2012/01/06 07:36:38 sbd Exp $
#
DISTNAME= seamonkey-${SM_VER}.source
@@ -12,8 +12,6 @@ MAINTAINER= tnn@NetBSD.org
HOMEPAGE= http://www.seamonkey-project.org/
COMMENT= Full-featured gecko-based browser
-BUILD_DEPENDS+= yasm>=1.1.0:../../devel/yasm
-
WRKSRC= ${WRKDIR}/comm-beta
MOZILLA_DIR= mozilla/
@@ -24,6 +22,13 @@ CONFIGURE_ARGS+= --enable-application=suite
ALL_ENV+= MOZILLA_PKG_NAME=seamonkey
+.include "../../mk/bsd.prefs.mk"
+
+.if (${OPSYS} == "Linux" || ${OPSYS} == "SunOS" || ${OPSYS} == "Darwin") && \
+ (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64")
+BUILD_DEPENDS+= yasm>=1.1.0:../../devel/yasm
+.endif
+
pre-configure:
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} autoconf
cd ${WRKSRC}/mozilla && ${SETENV} ${CONFIGURE_ENV} autoconf