58 lines
1.7 KiB
Makefile
58 lines
1.7 KiB
Makefile
# $NetBSD: options.mk,v 1.8 2013/05/24 03:28:03 makoto Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.firefox
|
|
PKG_SUPPORTED_OPTIONS= official-mozilla-branding
|
|
PKG_SUPPORTED_OPTIONS+= debug mozilla-jemalloc gnome pulseaudio
|
|
PLIST_VARS+= gnome jemalloc debug
|
|
|
|
.if ${OPSYS} == "Linux" || ${OPSYS} == "SunOS"
|
|
PKG_SUGGESTED_OPTIONS+= mozilla-jemalloc
|
|
.endif
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
.if !empty(PKG_OPTIONS:Mgnome)
|
|
.include "../../devel/libgnomeui/buildlink3.mk"
|
|
.include "../../sysutils/gnome-vfs/buildlink3.mk"
|
|
.include "../../sysutils/libnotify/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --enable-gnomevfs --enable-dbus --enable-gnomeui
|
|
CONFIGURE_ARGS+= --enable-libnotify
|
|
CONFIGURE_ARGS+= --enable-extensions=gnomevfs
|
|
PLIST.gnome= yes
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-gnomevfs --disable-dbus --disable-gnomeui
|
|
CONFIGURE_ARGS+= --disable-libnotify
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mmozilla-jemalloc)
|
|
PLIST.jemalloc= yes
|
|
CONFIGURE_ARGS+= --enable-jemalloc
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-jemalloc
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mdebug)
|
|
CONFIGURE_ARGS+= --enable-debug --enable-debug-symbols
|
|
CONFIGURE_ARGS+= --disable-install-strip
|
|
PLIST.debug= yes
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-debug --disable-debug-symbols
|
|
CONFIGURE_ARGS+= --enable-install-strip
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mpulseaudio)
|
|
.include "../../audio/pulseaudio/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --enable-pulseaudio
|
|
.endif
|
|
# XXX end
|
|
|
|
PLIST_VARS+= nobranding
|
|
.if !empty(PKG_OPTIONS:Mofficial-mozilla-branding)
|
|
CONFIGURE_ARGS+= --enable-official-branding
|
|
LICENSE= mozilla-trademark-license
|
|
RESTRICTED= Trademark holder prohibits distribution of modified versions.
|
|
NO_BIN_ON_CDROM= ${RESTRICTED}
|
|
NO_BIN_ON_FTP= ${RESTRICTED}
|
|
.else
|
|
PLIST.nobranding= yes
|
|
.endif
|