summaryrefslogtreecommitdiff
path: root/www/firefox/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'www/firefox/options.mk')
-rw-r--r--www/firefox/options.mk45
1 files changed, 44 insertions, 1 deletions
diff --git a/www/firefox/options.mk b/www/firefox/options.mk
index f975f69900f..9191d5d5a0c 100644
--- a/www/firefox/options.mk
+++ b/www/firefox/options.mk
@@ -1,10 +1,53 @@
-# $NetBSD: options.mk,v 1.10 2011/07/11 13:17:40 tnn Exp $
+# $NetBSD: options.mk,v 1.11 2013/05/19 08:50:24 ryoon Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.firefox
PKG_SUPPORTED_OPTIONS= official-mozilla-branding
+# XXX for xulrunner integrated firefox.
+PKG_SUPPORTED_OPTIONS+= debug mozilla-jemalloc gnome pulseaudio
+PLIST_VARS+= gnome jemalloc debug
+
+.if ${OPSYS} == "Linux" || ${OPSYS} == "SunOS"
+PKG_SUGGESTED_OPTIONS+= mozilla-jemalloc
+.endif
+
.include "../../mk/bsd.options.mk"
+.if !empty(PKG_OPTIONS:Mgnome)
+.include "../../devel/libgnomeui/buildlink3.mk"
+.include "../../sysutils/gnome-vfs/buildlink3.mk"
+.include "../../sysutils/libnotify/buildlink3.mk"
+CONFIGURE_ARGS+= --enable-gnomevfs --enable-dbus --enable-gnomeui
+CONFIGURE_ARGS+= --enable-libnotify
+CONFIGURE_ARGS+= --enable-extensions
+PLIST.gnome= yes
+.else
+CONFIGURE_ARGS+= --disable-gnomevfs --disable-dbus --disable-gnomeui
+CONFIGURE_ARGS+= --disable-libnotify
+.endif
+
+.if !empty(PKG_OPTIONS:Mmozilla-jemalloc)
+PLIST.jemalloc= yes
+CONFIGURE_ARGS+= --enable-jemalloc
+.else
+CONFIGURE_ARGS+= --disable-jemalloc
+.endif
+
+.if !empty(PKG_OPTIONS:Mdebug)
+CONFIGURE_ARGS+= --enable-debug --enable-debug-symbols
+CONFIGURE_ARGS+= --disable-install-strip
+PLIST.debug= yes
+.else
+CONFIGURE_ARGS+= --disable-debug --disable-debug-symbols
+CONFIGURE_ARGS+= --enable-install-strip
+.endif
+
+.if !empty(PKG_OPTIONS:Mpulseaudio)
+.include "../../audio/pulseaudio/buildlink3.mk"
+CONFIGURE_ARGS+= --enable-pulseaudio
+.endif
+# XXX end
+
PLIST_VARS+= nobranding
.if !empty(PKG_OPTIONS:Mofficial-mozilla-branding)
CONFIGURE_ARGS+= --enable-official-branding