1 # $NetBSD: options.mk,v 1.6 2009/09/16 18:42:31 tnn Exp $
3 PKG_OPTIONS_VAR= PKG_OPTIONS.xulrunner
4 PKG_SUPPORTED_OPTIONS= debug mozilla-jemalloc gnome pulseaudio
6 PLIST_VARS+= jit gnome debug
8 .if ${OPSYS} == "Linux" || ${OPSYS} == "SunOS"
9 PKG_SUGGESTED_OPTIONS+= mozilla-jemalloc
12 .if !empty(MACHINE_ARCH:Mi386) || !empty(MACHINE_ARCH:Msparc) || \
13 !empty(MACHINE_ARCH:Marm) || !empty(MACHINE_ARCH:Mx86_64)
14 PKG_SUPPORTED_OPTIONS+= mozilla-jit
15 PKG_SUGGESTED_OPTIONS+= mozilla-jit
16 NANOJIT_ARCH.i386= i386
18 NANOJIT_ARCH.sparc= Sparc
19 NANOJIT_ARCH.x86_64= X64
22 .include "../../mk/bsd.options.mk"
24 .if !empty(PKG_OPTIONS:Mgnome)
25 .include "../../devel/libgnomeui/buildlink3.mk"
26 .include "../../sysutils/gnome-vfs/buildlink3.mk"
27 .include "../../sysutils/libnotify/buildlink3.mk"
28 CONFIGURE_ARGS+= --enable-gnomevfs --enable-dbus --enable-gnomeui
29 CONFIGURE_ARGS+= --enable-libnotify
32 CONFIGURE_ARGS+= --disable-gnomevfs --disable-dbus --disable-gnomeui
33 CONFIGURE_ARGS+= --disable-libnotify
36 .if !empty(PKG_OPTIONS:Mmozilla-jemalloc)
37 CONFIGURE_ARGS+= --enable-jemalloc
39 CONFIGURE_ARGS+= --disable-jemalloc
42 .if !empty(PKG_OPTIONS:Mdebug)
43 CONFIGURE_ARGS+= --enable-debug
44 CONFIGURE_ARGS+= --disable-install-strip
47 CONFIGURE_ARGS+= --disable-debug
50 .if !empty(PKG_OPTIONS:Mmozilla-jit)
52 PLIST_SUBST+= NANOJIT_ARCH=${NANOJIT_ARCH.${MACHINE_ARCH}}
53 CONFIGURE_ARGS+= --enable-tracejit
55 CONFIGURE_ARGS+= --disable-tracejit
58 .if !empty(PKG_OPTIONS:Mpulseaudio)
59 .include "../../audio/pulseaudio/buildlink3.mk"
60 ALL_ENV+= PKGSRC_PULSEAUDIO=1