| @@ -1,82 +1,84 @@ | | | @@ -1,82 +1,84 @@ |
1 | # $NetBSD: options.mk,v 1.19 2013/11/16 02:01:46 ryoon Exp $ | | 1 | # $NetBSD: options.mk,v 1.20 2014/04/20 23:07:55 ryoon Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.firefox | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.firefox |
4 | PKG_SUPPORTED_OPTIONS= official-mozilla-branding | | 4 | PKG_SUPPORTED_OPTIONS= official-mozilla-branding |
5 | PKG_SUPPORTED_OPTIONS+= alsa debug mozilla-jemalloc gnome pulseaudio webrtc | | 5 | PKG_SUPPORTED_OPTIONS+= alsa debug mozilla-jemalloc gnome pulseaudio webrtc |
6 | PLIST_VARS+= gnome jemalloc debug | | 6 | PLIST_VARS+= gnome jemalloc debug |
7 | | | 7 | |
8 | .if ${OPSYS} == "Linux" | | 8 | .if ${OPSYS} == "Linux" |
9 | PKG_SUGGESTED_OPTIONS+= alsa mozilla-jemalloc | | 9 | PKG_SUGGESTED_OPTIONS+= alsa mozilla-jemalloc |
10 | .else | | 10 | .else |
11 | PKG_SUGGESTED_OPTIONS+= pulseaudio | | 11 | PKG_SUGGESTED_OPTIONS+= pulseaudio |
12 | .endif | | 12 | .endif |
13 | | | 13 | |
14 | # On NetBSD/amd64 6.99.21 libxul.so is invalid when --enable-webrtc is set. | | 14 | # On NetBSD/amd64 6.99.21 libxul.so is invalid when --enable-webrtc is set. |
15 | .if (${OPSYS} == "FreeBSD") || (${OPSYS} == "Linux") || (${OPSYS} == "OpenBSD") | | 15 | .if (${OPSYS} == "FreeBSD") || (${OPSYS} == "Linux") || (${OPSYS} == "OpenBSD") |
16 | PKG_SUGGESTED_OPTIONS+= webrtc | | 16 | PKG_SUGGESTED_OPTIONS+= webrtc |
17 | .endif | | 17 | .endif |
18 | | | 18 | |
19 | .include "../../mk/bsd.options.mk" | | 19 | .include "../../mk/bsd.options.mk" |
20 | | | 20 | |
21 | .if !empty(PKG_OPTIONS:Malsa) | | 21 | .if !empty(PKG_OPTIONS:Malsa) |
22 | CONFIGURE_ARGS+= --enable-alsa | | 22 | CONFIGURE_ARGS+= --enable-alsa |
23 | .include "../../audio/alsa-lib/buildlink3.mk" | | 23 | .include "../../audio/alsa-lib/buildlink3.mk" |
24 | .else | | 24 | .else |
25 | CONFIGURE_ARGS+= --disable-alsa | | 25 | CONFIGURE_ARGS+= --disable-alsa |
26 | .endif | | 26 | .endif |
27 | | | 27 | |
28 | .if !empty(PKG_OPTIONS:Mgnome) | | 28 | .if !empty(PKG_OPTIONS:Mgnome) |
29 | .include "../../devel/libgnomeui/buildlink3.mk" | | 29 | .include "../../devel/libgnomeui/buildlink3.mk" |
30 | .include "../../sysutils/gnome-vfs/buildlink3.mk" | | 30 | .include "../../sysutils/gnome-vfs/buildlink3.mk" |
31 | .include "../../sysutils/libnotify/buildlink3.mk" | | 31 | .include "../../sysutils/libnotify/buildlink3.mk" |
32 | CONFIGURE_ARGS+= --enable-gnomevfs --enable-dbus --enable-gnomeui | | 32 | CONFIGURE_ARGS+= --enable-gnomevfs --enable-dbus --enable-gnomeui |
33 | CONFIGURE_ARGS+= --enable-libnotify | | 33 | CONFIGURE_ARGS+= --enable-libnotify |
34 | CONFIGURE_ARGS+= --enable-extensions=gnomevfs | | 34 | CONFIGURE_ARGS+= --enable-extensions=gnomevfs |
35 | PLIST.gnome= yes | | 35 | PLIST.gnome= yes |
36 | .else | | 36 | .else |
37 | CONFIGURE_ARGS+= --disable-gnomevfs --disable-dbus --disable-gnomeui | | 37 | CONFIGURE_ARGS+= --disable-gnomevfs --disable-dbus --disable-gnomeui |
38 | CONFIGURE_ARGS+= --disable-libnotify | | 38 | CONFIGURE_ARGS+= --disable-libnotify |
39 | .endif | | 39 | .endif |
40 | | | 40 | |
41 | .if !empty(PKG_OPTIONS:Mmozilla-jemalloc) | | 41 | .if !empty(PKG_OPTIONS:Mmozilla-jemalloc) |
42 | PLIST.jemalloc= yes | | 42 | PLIST.jemalloc= yes |
43 | CONFIGURE_ARGS+= --enable-jemalloc | | 43 | CONFIGURE_ARGS+= --enable-jemalloc |
44 | .else | | 44 | .else |
45 | CONFIGURE_ARGS+= --disable-jemalloc | | 45 | CONFIGURE_ARGS+= --disable-jemalloc |
46 | .endif | | 46 | .endif |
47 | | | 47 | |
48 | .if !empty(PKG_OPTIONS:Mdebug) | | 48 | .if !empty(PKG_OPTIONS:Mdebug) |
49 | CONFIGURE_ARGS+= --enable-debug="-g -O0" --enable-debug-symbols --disable-optimize | | 49 | CONFIGURE_ARGS+= --enable-debug="-g -O0" --enable-debug-symbols --disable-optimize |
50 | CONFIGURE_ARGS+= --disable-install-strip | | 50 | CONFIGURE_ARGS+= --disable-install-strip |
51 | PLIST.debug= yes | | 51 | PLIST.debug= yes |
52 | .else | | 52 | .else |
53 | CONFIGURE_ARGS+= --disable-debug --disable-debug-symbols | | 53 | CONFIGURE_ARGS+= --disable-debug --disable-debug-symbols |
54 | CONFIGURE_ARGS+= --enable-install-strip | | 54 | CONFIGURE_ARGS+= --enable-install-strip |
55 | CONFIGURE_ARGS+= --enable-optimize=-O2 | | 55 | CONFIGURE_ARGS+= --enable-optimize=-O2 |
56 | .endif | | 56 | .endif |
57 | | | 57 | |
58 | .if !empty(PKG_OPTIONS:Mpulseaudio) | | 58 | .if !empty(PKG_OPTIONS:Mpulseaudio) |
59 | .include "../../audio/pulseaudio/buildlink3.mk" | | 59 | .include "../../audio/pulseaudio/buildlink3.mk" |
60 | CONFIGURE_ARGS+= --enable-pulseaudio | | 60 | CONFIGURE_ARGS+= --enable-pulseaudio |
| | | 61 | .else |
| | | 62 | CONFIGURE_ARGS+= --disable-pulseaudio |
61 | .endif | | 63 | .endif |
62 | # XXX end | | 64 | # XXX end |
63 | | | 65 | |
64 | PLIST_VARS+= branding nobranding | | 66 | PLIST_VARS+= branding nobranding |
65 | .if !empty(PKG_OPTIONS:Mofficial-mozilla-branding) | | 67 | .if !empty(PKG_OPTIONS:Mofficial-mozilla-branding) |
66 | CONFIGURE_ARGS+= --enable-official-branding | | 68 | CONFIGURE_ARGS+= --enable-official-branding |
67 | LICENSE= mozilla-trademark-license | | 69 | LICENSE= mozilla-trademark-license |
68 | RESTRICTED= Trademark holder prohibits distribution of modified versions. | | 70 | RESTRICTED= Trademark holder prohibits distribution of modified versions. |
69 | NO_BIN_ON_CDROM= ${RESTRICTED} | | 71 | NO_BIN_ON_CDROM= ${RESTRICTED} |
70 | NO_BIN_ON_FTP= ${RESTRICTED} | | 72 | NO_BIN_ON_FTP= ${RESTRICTED} |
71 | PLIST.branding= yes | | 73 | PLIST.branding= yes |
72 | .else | | 74 | .else |
73 | PLIST.nobranding= yes | | 75 | PLIST.nobranding= yes |
74 | .endif | | 76 | .endif |
75 | | | 77 | |
76 | PLIST_VARS+= webrtc | | 78 | PLIST_VARS+= webrtc |
77 | .if !empty(PKG_OPTIONS:Mwebrtc) | | 79 | .if !empty(PKG_OPTIONS:Mwebrtc) |
78 | .include "../../graphics/libv4l/buildlink3.mk" | | 80 | .include "../../graphics/libv4l/buildlink3.mk" |
79 | CONFIGURE_ARGS+= --enable-webrtc | | 81 | CONFIGURE_ARGS+= --enable-webrtc |
80 | .else | | 82 | .else |
81 | CONFIGURE_ARGS+= --disable-webrtc | | 83 | CONFIGURE_ARGS+= --disable-webrtc |
82 | .endif | | 84 | .endif |