pkgsrc/www/seamonkey/options.mk
dmcmahill f15d77af47 Make thunderbird also obey the mozilla-single-profile package option that
is used already for firefox and thunderbird.
2007-10-16 01:53:28 +00:00

41 lines
1.4 KiB
Makefile

# $NetBSD: options.mk,v 1.7 2007/10/16 01:53:28 dmcmahill Exp $
PKG_OPTIONS_VAR = PKG_OPTIONS.gecko
PKG_SUPPORTED_OPTIONS = debug
.if ( ${MOZILLA_BIN} == "firefox-bin" || ${MOZILLA_BIN} == "thunderbird-bin" )
PKG_SUPPORTED_OPTIONS += official-mozilla-branding
.endif
.if ( ${MOZILLA_BIN} == "firefox-bin" || ${MOZILLA_BIN} == "seamonkey-bin" || ${MOZILLA_BIN} == "thunderbird-bin" )
PKG_SUPPORTED_OPTIONS += mozilla-single-profile
.endif
.include "../../mk/bsd.options.mk"
# 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)
CONFIGURE_ARGS+= --enable-official-branding
# XXX LICENSE=?
# Does enabling official branding make the package non-Free?
# Mozilla claims no: http://www.mozilla.org/foundation/trademarks/faq.html
# The resulting binary package cannot be distributed, which seems non-Free.
RESTRICTED= Trademark holder prohibits distribution of modified versions.
NO_BIN_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
.endif