c033832f0d
* Change WebRTC dependency to new graphics/libv4l. Changelog: Fixed Fixed a performance regression when encountering new intermediate CA certificates (bug 1661543) Fixed crashes possibly related to GPU resets (bug 1627616) Fixed rendering on some sites using WebGL (bug 1659225) Fixed the zoom-in keyboard shortcut on Japanese language builds (bug 1661895) Fixed download issues related to extensions and cookies (bug 1655190)
89 lines
2.3 KiB
Makefile
89 lines
2.3 KiB
Makefile
# $NetBSD: options.mk,v 1.60 2020/09/02 10:00:23 ryoon Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.firefox
|
|
|
|
PKG_SUPPORTED_OPTIONS= official-mozilla-branding
|
|
PKG_SUPPORTED_OPTIONS+= debug debug-info mozilla-jemalloc webrtc
|
|
PKG_SUPPORTED_OPTIONS+= alsa pulseaudio dbus
|
|
PLIST_VARS+= jemalloc debug
|
|
|
|
.if ${OPSYS} == "Linux"
|
|
PKG_SUGGESTED_OPTIONS+= pulseaudio mozilla-jemalloc dbus webrtc
|
|
.else
|
|
PKG_SUGGESTED_OPTIONS+= dbus
|
|
.endif
|
|
|
|
.if ${OPSYS} == "NetBSD" && empty(OS_VERSION:M[0-8].*)
|
|
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"
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-alsa
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mmozilla-jemalloc)
|
|
PLIST.jemalloc= yes
|
|
CONFIGURE_ARGS+= --enable-jemalloc
|
|
CONFIGURE_ARGS+= --enable-replace-malloc
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-jemalloc
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mdebug)
|
|
CONFIGURE_ARGS+= --enable-debug="-g -O0"
|
|
CONFIGURE_ARGS+= --disable-optimize
|
|
CONFIGURE_ARGS+= --enable-debug-js-modules
|
|
CONFIGURE_ARGS+= --disable-install-strip
|
|
PLIST.debug= yes
|
|
.else
|
|
. if !empty(PKG_OPTIONS:Mdebug-info)
|
|
CONFIGURE_ARGS+= --enable-debug-symbols
|
|
CONFIGURE_ARGS+= --enable-optimize=-Og
|
|
CONFIGURE_ARGS+= --disable-install-strip
|
|
. else
|
|
CONFIGURE_ARGS+= --disable-debug-symbols
|
|
CONFIGURE_ARGS+= --enable-optimize=-O2
|
|
CONFIGURE_ARGS+= --enable-install-strip
|
|
. endif
|
|
CONFIGURE_ARGS+= --disable-debug
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mpulseaudio)
|
|
.include "../../audio/pulseaudio/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --enable-pulseaudio
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-pulseaudio
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mdbus)
|
|
.include "../../sysutils/dbus-glib/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --enable-dbus
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-dbus
|
|
.endif
|
|
|
|
#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
|
|
PLIST.webrtc= yes
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-webrtc
|
|
.endif
|