| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
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. |
| @@ -48,26 +48,28 @@ CONFIGURE_ARGS+= --disable-jemalloc | | | @@ -48,26 +48,28 @@ CONFIGURE_ARGS+= --disable-jemalloc |
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 |