blob: fda72726e1e3f568e32ad9dace1be5102b2cb9f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# $NetBSD: options.mk,v 1.13 2008/09/18 21:14:59 adrianp Exp $
# used by www/firefox/Makefile.common
# used by www/firefox3/Makefile.common
# used by www/seamonkey/Makefile.common
PKG_OPTIONS_VAR= PKG_OPTIONS.gecko
PKG_SUPPORTED_OPTIONS= debug official-mozilla-branding
.if ( ${MOZILLA_BIN} == "firefox-bin" || ${MOZILLA_BIN} == "seamonkey-bin" || ${MOZILLA_BIN} == "thunderbird-bin" )
PKG_SUPPORTED_OPTIONS += mozilla-single-profile
.endif
.if ( ${MOZILLA} == "firefox3" )
PKG_SUPPORTED_OPTIONS += mozilla-jemalloc
PKG_SUGGESTED_OPTIONS += mozilla-jemalloc
.endif
.include "../../mk/bsd.options.mk"
# including jemalloc can cause issues on some platforms (e.g. SunOS 5.11)
# so expose an option to allow users to build FF without it.
# NOTE: This currently has only been known to happen on SunOS 5.11 x86
# as a full list of systems is unknown the default is to still use it
.if empty(PKG_OPTIONS:Mmozilla-jemalloc)
CONFIGURE_ARGS+= --disable-jemalloc
.endif
# this .if test looks backward, but the missing options disables debug,
# so it is correct
.if empty(PKG_OPTIONS:Mdebug)
CONFIGURE_ARGS+= --disable-debug
.else
CONFIGURE_ARGS+= --enable-debug
.endif
.if !empty(PKG_OPTIONS:Mmozilla-single-profile)
CONFIGURE_ARGS+= --enable-single-profile
.endif
# Enable Official mozilla.org Branding for Firefox or Thunderbird.
# Note that you cannot distribute builds with Official Branding
# without permission of the Mozilla Foundation.
# See http://www.mozilla.org/foundation/trademarks/
.if !empty(PKG_OPTIONS:Mofficial-mozilla-branding) && ${MOZILLA_BIN} != "seamonkey-bin"
CONFIGURE_ARGS+= --enable-official-branding
# Mozilla prohibits distribution of packages with their trademarks.
# It is an open question if this makes the package non-Free. Mozilla
# claims not, but currently pkgsrc has a "open source implies no
# redistribution restrictions" notion.
LICENSE= mozilla-trademark-license
RESTRICTED= Trademark holder prohibits distribution of modified versions.
NO_BIN_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
.endif
|