need dependency on bash for REPLACE_BASH to work properly.
[pkgsrcv2.git] / devel / xulrunner / options.mk
1 # $NetBSD: options.mk,v 1.6 2009/09/16 18:42:31 tnn Exp $
2
3 PKG_OPTIONS_VAR=        PKG_OPTIONS.xulrunner
4 PKG_SUPPORTED_OPTIONS=  debug mozilla-jemalloc gnome pulseaudio
5
6 PLIST_VARS+=    jit gnome debug
7
8 .if ${OPSYS} == "Linux" || ${OPSYS} == "SunOS"
9 PKG_SUGGESTED_OPTIONS+= mozilla-jemalloc
10 .endif
11
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
17 NANOJIT_ARCH.arm=       ARM
18 NANOJIT_ARCH.sparc=     Sparc
19 NANOJIT_ARCH.x86_64=    X64
20 .endif
21
22 .include "../../mk/bsd.options.mk"
23
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
30 PLIST.gnome=            yes
31 .else
32 CONFIGURE_ARGS+=        --disable-gnomevfs --disable-dbus --disable-gnomeui
33 CONFIGURE_ARGS+=        --disable-libnotify
34 .endif
35
36 .if !empty(PKG_OPTIONS:Mmozilla-jemalloc)
37 CONFIGURE_ARGS+=        --enable-jemalloc
38 .else
39 CONFIGURE_ARGS+=        --disable-jemalloc
40 .endif
41
42 .if !empty(PKG_OPTIONS:Mdebug)
43 CONFIGURE_ARGS+=        --enable-debug
44 CONFIGURE_ARGS+=        --disable-install-strip
45 PLIST.debug=            yes
46 .else
47 CONFIGURE_ARGS+=        --disable-debug
48 .endif
49
50 .if !empty(PKG_OPTIONS:Mmozilla-jit)
51 PLIST.jit=              yes
52 PLIST_SUBST+=           NANOJIT_ARCH=${NANOJIT_ARCH.${MACHINE_ARCH}}
53 CONFIGURE_ARGS+=        --enable-tracejit
54 .else
55 CONFIGURE_ARGS+=        --disable-tracejit
56 .endif
57
58 .if !empty(PKG_OPTIONS:Mpulseaudio)
59 .include "../../audio/pulseaudio/buildlink3.mk"
60 ALL_ENV+=       PKGSRC_PULSEAUDIO=1
61 .endif