summaryrefslogtreecommitdiff
path: root/devel/xulrunner10/options.mk
diff options
context:
space:
mode:
authorryoon <ryoon>2012-03-15 08:58:26 +0000
committerryoon <ryoon>2012-03-15 08:58:26 +0000
commiteaefdd1cbbfccf6b6ae472401057c0b0e9927b4b (patch)
tree6de06953ccbd45ca4f5f665b618096d241a6c65b /devel/xulrunner10/options.mk
parentb5b2bf71ecc1f4681b595ee718e84dc06fc712af (diff)
downloadpkgsrc-eaefdd1cbbfccf6b6ae472401057c0b0e9927b4b.tar.gz
Import xulrunner-10.0.3 as devel/xulrunner
* Successor of devel/xulrunner, xulrunner-10.0.2. * This is ESR (Extended Support Release) version. * Fix security bugs
Diffstat (limited to 'devel/xulrunner10/options.mk')
-rw-r--r--devel/xulrunner10/options.mk64
1 files changed, 64 insertions, 0 deletions
diff --git a/devel/xulrunner10/options.mk b/devel/xulrunner10/options.mk
new file mode 100644
index 00000000000..968ee53c6b9
--- /dev/null
+++ b/devel/xulrunner10/options.mk
@@ -0,0 +1,64 @@
+# $NetBSD: options.mk,v 1.1.1.1 2012/03/15 08:58:27 ryoon Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.xulrunner
+PKG_SUPPORTED_OPTIONS= debug mozilla-jemalloc gnome pulseaudio
+
+PLIST_VARS+= jit gnome jemalloc debug
+
+.if ${OPSYS} == "Linux" || ${OPSYS} == "SunOS"
+PKG_SUGGESTED_OPTIONS+= mozilla-jemalloc
+.endif
+
+.if !empty(MACHINE_ARCH:Mi386) || !empty(MACHINE_ARCH:Msparc*) || \
+ !empty(MACHINE_ARCH:Marm) || !empty(MACHINE_ARCH:Mx86_64)
+PKG_SUPPORTED_OPTIONS+= mozilla-jit
+PKG_SUGGESTED_OPTIONS+= mozilla-jit
+NANOJIT_ARCH.i386= i386
+NANOJIT_ARCH.arm= ARM
+NANOJIT_ARCH.sparc= Sparc
+NANOJIT_ARCH.sparc64= Sparc
+NANOJIT_ARCH.x86_64= X64
+.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
+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:Mmozilla-jit)
+PLIST.jit= yes
+PLIST_SUBST+= NANOJIT_ARCH=${NANOJIT_ARCH.${MACHINE_ARCH}}
+CONFIGURE_ARGS+= --enable-tracejit
+.else
+CONFIGURE_ARGS+= --disable-tracejit
+.endif
+
+.if !empty(PKG_OPTIONS:Mpulseaudio)
+.include "../../audio/pulseaudio/buildlink3.mk"
+ALL_ENV+= PKGSRC_PULSEAUDIO=1
+.endif