update Wed May 26 18:37:00 PDT 2010
[pkgsrc.git] / devel / xulrunner / options.mk
1 # $NetBSD: options.mk,v 1.8 2010/04/26 12:47:08 tnn Exp $
2
3 PKG_OPTIONS_VAR=        PKG_OPTIONS.xulrunner
4 PKG_SUPPORTED_OPTIONS=  debug mozilla-jemalloc gnome
5
6 PLIST_VARS+=    jit gnome debug jemalloc
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)
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 .endif
20
21 .include "../../mk/bsd.options.mk"
22
23 .if !empty(PKG_OPTIONS:Mgnome)
24 .include "../../devel/libgnomeui/buildlink3.mk"
25 .include "../../sysutils/gnome-vfs/buildlink3.mk"
26 .include "../../sysutils/libnotify/buildlink3.mk"
27 CONFIGURE_ARGS+=        --enable-gnomevfs --enable-dbus --enable-gnomeui
28 CONFIGURE_ARGS+=        --enable-libnotify
29 PLIST.gnome=            yes
30 .else
31 CONFIGURE_ARGS+=        --disable-gnomevfs --disable-dbus --disable-gnomeui
32 CONFIGURE_ARGS+=        --disable-libnotify
33 .endif
34
35 .if !empty(PKG_OPTIONS:Mmozilla-jemalloc)
36 CONFIGURE_ARGS+=        --enable-jemalloc
37 PLIST.jemalloc=         yes
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-jit
54 .else
55 CONFIGURE_ARGS+=        --disable-jit
56 .endif