pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/firefox add mozilla-jit option



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1f22736d5630
branches:  trunk
changeset: 397243:1f22736d5630
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sun Aug 09 21:13:39 2009 +0000

description:
add mozilla-jit option

diffstat:

 www/firefox/options.mk |  20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diffs (43 lines):

diff -r 907528e9a8db -r 1f22736d5630 www/firefox/options.mk
--- a/www/firefox/options.mk    Sun Aug 09 21:13:34 2009 +0000
+++ b/www/firefox/options.mk    Sun Aug 09 21:13:39 2009 +0000
@@ -1,16 +1,22 @@
-# $NetBSD: options.mk,v 1.1.1.1 2009/08/05 02:37:10 tnn Exp $
+# $NetBSD: options.mk,v 1.2 2009/08/09 21:13:39 tnn Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.firefox
 PKG_SUPPORTED_OPTIONS= debug official-mozilla-branding mozilla-jemalloc
 
-PLIST_VARS+=           jemalloc branding
-
-.include "../../mk/bsd.options.mk"
+PLIST_VARS+=           branding
 
 .if ${OPSYS} == "Linux" || ${OPSYS} == "SunOS"
 PKG_SUGGESTED_OPTIONS+=        mozilla-jemalloc
 .endif
 
+.if !empty(MACHINE_ARCH:Mi386) || !empty(MACHINE_ARCH:Msparc) || \
+       !empty(MACHINE_ARCH:Marm)
+PKG_SUPPORTED_OPTIONS+= mozilla-jit
+PKG_SUGGESTED_OPTIONS+= mozilla-jit
+.endif
+
+.include "../../mk/bsd.options.mk"
+
 .if !empty(PKG_OPTIONS:Mmozilla-jemalloc)
 CONFIGURE_ARGS+=       --enable-jemalloc
 . if ${OPSYS} == "SunOS"
@@ -26,6 +32,12 @@
 CONFIGURE_ARGS+=       --disable-debug
 .endif
 
+.if !empty(PKG_OPTIONS:Mmozilla-jit)
+CONFIGURE_ARGS+=       --enable-jit
+.else
+CONFIGURE_ARGS+=       --disable-jit
+.endif
+
 .if !empty(PKG_OPTIONS:Mofficial-mozilla-branding)
 CONFIGURE_ARGS+=       --enable-official-branding
 PLIST.branding=                yes



Home | Main Index | Thread Index | Old Index