2013-11-24 13:37:40 +01:00
|
|
|
# $NetBSD: options.mk,v 1.3 2013/11/24 12:37:40 richard Exp $
|
Import firefox24-24.1.0 as www/firefox24.
Mozilla Firefox is a free, open-source and cross-platform web browser
for Windows, Linux, MacOS X and many other operating systems.
It is fast and easy to use, and offers many advantages over other web
browsers, such as tabbed browsing and the ability to block pop-up
windows.
Firefox also offers excellent bookmark and history management, and it
can be extended by developers using industry standards such as XML,
CSS, JavaScript, C++, etc. Many extensions are available.
This package tracks 24 extended support release branch.
2013-11-03 05:51:59 +01:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.firefox24
|
|
|
|
PKG_SUPPORTED_OPTIONS= official-mozilla-branding
|
|
|
|
PKG_SUPPORTED_OPTIONS+= alsa debug mozilla-jemalloc gnome pulseaudio webrtc
|
2013-11-24 13:37:40 +01:00
|
|
|
PKG_SUPPORTED_OPTIONS+= dtrace
|
Import firefox24-24.1.0 as www/firefox24.
Mozilla Firefox is a free, open-source and cross-platform web browser
for Windows, Linux, MacOS X and many other operating systems.
It is fast and easy to use, and offers many advantages over other web
browsers, such as tabbed browsing and the ability to block pop-up
windows.
Firefox also offers excellent bookmark and history management, and it
can be extended by developers using industry standards such as XML,
CSS, JavaScript, C++, etc. Many extensions are available.
This package tracks 24 extended support release branch.
2013-11-03 05:51:59 +01:00
|
|
|
PLIST_VARS+= gnome jemalloc debug
|
|
|
|
|
|
|
|
.if ${OPSYS} == "Linux"
|
|
|
|
PKG_SUGGESTED_OPTIONS+= alsa mozilla-jemalloc
|
|
|
|
.else
|
|
|
|
PKG_SUGGESTED_OPTIONS+= pulseaudio
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# On NetBSD/amd64 6.99.21 libxul.so is invalid when --enable-webrtc is set.
|
|
|
|
.if (${OPSYS} == "FreeBSD") || (${OPSYS} == "Linux") || (${OPSYS} == "OpenBSD")
|
|
|
|
PKG_SUGGESTED_OPTIONS+= webrtc
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Malsa)
|
|
|
|
CONFIGURE_ARGS+= --enable-alsa
|
|
|
|
.include "../../audio/alsa-lib/buildlink3.mk"
|
2013-11-16 03:01:46 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-alsa
|
Import firefox24-24.1.0 as www/firefox24.
Mozilla Firefox is a free, open-source and cross-platform web browser
for Windows, Linux, MacOS X and many other operating systems.
It is fast and easy to use, and offers many advantages over other web
browsers, such as tabbed browsing and the ability to block pop-up
windows.
Firefox also offers excellent bookmark and history management, and it
can be extended by developers using industry standards such as XML,
CSS, JavaScript, C++, etc. Many extensions are available.
This package tracks 24 extended support release branch.
2013-11-03 05:51:59 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.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="-g -O0" --enable-debug-symbols --disable-optimize
|
|
|
|
CONFIGURE_ARGS+= --disable-install-strip
|
|
|
|
PLIST.debug= yes
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-debug --disable-debug-symbols
|
|
|
|
CONFIGURE_ARGS+= --enable-install-strip
|
|
|
|
CONFIGURE_ARGS+= --enable-optimize=-O2
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mpulseaudio)
|
|
|
|
.include "../../audio/pulseaudio/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --enable-pulseaudio
|
|
|
|
.endif
|
|
|
|
# XXX end
|
|
|
|
|
|
|
|
PLIST_VARS+= branding 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}
|
|
|
|
PLIST.branding= yes
|
|
|
|
.else
|
|
|
|
PLIST.nobranding= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
PLIST_VARS+= webrtc
|
|
|
|
.if !empty(PKG_OPTIONS:Mwebrtc)
|
|
|
|
.include "../../graphics/libv4l/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --enable-webrtc
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-webrtc
|
|
|
|
.endif
|
2013-11-24 13:37:40 +01:00
|
|
|
|
|
|
|
PLIST_VARS+= dtrace
|
|
|
|
.if !empty(PKG_OPTIONS:Mdtrace)
|
|
|
|
CONFIGURE_ARGS+= --enable-dtrace
|
|
|
|
PLIST.dtrace= yes
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-dtrace
|
|
|
|
.endif
|