Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / devel / xulrunner10 / options.mk
blob0bbb0faa96d91385ba0e8b956b856c8b74101dcc
1 # $NetBSD: options.mk,v 1.1.1.1 2012/03/15 08:58:27 ryoon Exp $
3 PKG_OPTIONS_VAR= PKG_OPTIONS.xulrunner
4 PKG_SUPPORTED_OPTIONS= debug mozilla-jemalloc gnome pulseaudio
6 PLIST_VARS+= gnome jemalloc debug
8 .if ${OPSYS} == "Linux" || ${OPSYS} == "SunOS"
9 PKG_SUGGESTED_OPTIONS+= mozilla-jemalloc
10 .endif
12 .include "../../mk/bsd.options.mk"
14 .if !empty(PKG_OPTIONS:Mgnome)
15 .include "../../devel/libgnomeui/buildlink3.mk"
16 .include "../../sysutils/gnome-vfs/buildlink3.mk"
17 .include "../../sysutils/libnotify/buildlink3.mk"
18 CONFIGURE_ARGS+= --enable-gnomevfs --enable-dbus --enable-gnomeui
19 CONFIGURE_ARGS+= --enable-libnotify
20 PLIST.gnome= yes
21 .else
22 CONFIGURE_ARGS+= --disable-gnomevfs --disable-dbus --disable-gnomeui
23 CONFIGURE_ARGS+= --disable-libnotify
24 .endif
26 .if !empty(PKG_OPTIONS:Mmozilla-jemalloc)
27 PLIST.jemalloc= yes
28 CONFIGURE_ARGS+= --enable-jemalloc
29 .else
30 CONFIGURE_ARGS+= --disable-jemalloc
31 .endif
33 .if !empty(PKG_OPTIONS:Mdebug)
34 CONFIGURE_ARGS+= --enable-debug --enable-debug-symbols
35 CONFIGURE_ARGS+= --disable-install-strip
36 PLIST.debug= yes
37 .else
38 CONFIGURE_ARGS+= --disable-debug --disable-debug-symbols
39 CONFIGURE_ARGS+= --enable-install-strip
40 .endif
42 .if !empty(PKG_OPTIONS:Mpulseaudio)
43 .include "../../audio/pulseaudio/buildlink3.mk"
44 ALL_ENV+= PKGSRC_PULSEAUDIO=1
45 .endif