head	1.1;
access;
symbols;
locks; strict;
comment	@# @;


1.1
date	2026.08.27.01.23.15;	author gutteridge;	state Exp;
branches;
next	;
commitid	jHXIs10wmSYxkdTG;


desc
@@


1.1
log
@firefox153: import Firefox 153.1 as www/firefox153

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.

Note: Due to upstream's trademark policies, this package identifies as
"Nightly" rather than "Firefox" by default.

This package provides Firefox 153 Extended Support Release.
@
text
@# $NetBSD: options.mk,v 1.77 2025/10/27 14:24:32 ryoon Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.firefox153

PKG_SUPPORTED_OPTIONS=	official-mozilla-branding
PKG_SUPPORTED_OPTIONS+=	debug debug-info mozilla-jemalloc webrtc
PKG_SUPPORTED_OPTIONS+=	dbus speechd
PKG_SUPPORTED_OPTIONS+=	alsa pulseaudio sunaudio jack

.if ${OPSYS} == "Linux"
PKG_SUGGESTED_OPTIONS+=	dbus
PKG_SUGGESTED_OPTIONS+=	alsa pulseaudio mozilla-jemalloc webrtc
.endif

.if ${OPSYS} == "NetBSD" || ${OPSYS} == "SunOS"
PKG_SUGGESTED_OPTIONS+=	sunaudio
.endif

.if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} >= 090000
PKG_SUGGESTED_OPTIONS+=	webrtc
.endif

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Malsa)
AUDIO_BACKENDS+=	alsa
.include "../../audio/alsa-lib/buildlink3.mk"
.endif

.if !empty(PKG_OPTIONS:Mmozilla-jemalloc)
CONFIGURE_ARGS+=	--enable-jemalloc
CONFIGURE_ARGS+=	--enable-replace-malloc
.else
CONFIGURE_ARGS+=	--disable-jemalloc
#.include "../../devel/jemalloc/buildlink3.mk"
.endif

.if !empty(PKG_OPTIONS:Mdebug)
CONFIGURE_ARGS+=	--enable-debug="-g -Og"
CONFIGURE_ARGS+=	--disable-optimize
CONFIGURE_ARGS+=	--enable-debug-js-modules
CONFIGURE_ARGS+=	--disable-install-strip
CPPFLAGS+=		-DXXH_NO_INLINE_HINTS
.else
.  if !empty(PKG_OPTIONS:Mdebug-info)
CONFIGURE_ARGS+=	--enable-debug-symbols
CONFIGURE_ARGS+=	--enable-optimize=-O2
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)
AUDIO_BACKENDS+=	pulseaudio
.include "../../audio/pulseaudio/buildlink3.mk"
.endif

.if !empty(PKG_OPTIONS:Mdbus)
.include "../../sysutils/dbus-glib/buildlink3.mk"
CONFIGURE_ARGS+=	--enable-dbus
.else
CONFIGURE_ARGS+=	--disable-dbus
.  if ${OPSYS} == "Linux"
CONFIGURE_ARGS+=	--disable-necko-wifi
.  endif
.endif

.if !empty(PKG_OPTIONS:Mofficial-mozilla-branding)
CONFIGURE_ARGS+=	--enable-official-branding
LICENSE+=		AND mozilla-trademark-license
RESTRICTED=		Trademark holder prohibits distribution of modified versions.
NO_BIN_ON_CDROM=	${RESTRICTED}
NO_BIN_ON_FTP=		${RESTRICTED}
.else
CONFIGURE_ARGS+=	--with-branding=browser/branding/unofficial
.endif

.if !empty(PKG_OPTIONS:Msunaudio)
AUDIO_BACKENDS+=	sunaudio
.endif

.if !empty(PKG_OPTIONS:Mjack)
AUDIO_BACKENDS+=	jack
.include "../../audio/jack/buildlink3.mk"
.endif

.if !empty(PKG_OPTIONS:Mwebrtc)
.include "../../graphics/libv4l/buildlink3.mk"
CONFIGURE_ARGS+=	--enable-webrtc
.else
CONFIGURE_ARGS+=	--disable-webrtc
.endif

.if !empty(PKG_OPTIONS:Mspeechd)
.include "../../audio/speech-dispatcher/buildlink3.mk"
CONFIGURE_ARGS+=	--enable-synth-speechd
.else
CONFIGURE_ARGS+=	--disable-synth-speechd
.endif

CONFIGURE_ARGS+=	--audio-backends=${AUDIO_BACKENDS:ts,}
@
