Thunderbird is a free email, news, and chat application with support for add-ons, derived from the Mozilla Firefox web browser.
77 lines
2 KiB
Makefile
77 lines
2 KiB
Makefile
# $NetBSD: options.mk,v 1.1 2020/09/03 20:22:25 ryoon Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.thunderbird
|
|
|
|
PKG_SUPPORTED_OPTIONS= alsa dbus debug mozilla-jemalloc \
|
|
official-mozilla-branding pulseaudio \
|
|
mozilla-lightning
|
|
PKG_SUGGESTED_OPTIONS+= mozilla-lightning
|
|
|
|
PLIST_VARS+= branding nobranding debug jemalloc
|
|
|
|
.if ${OPSYS} == "Linux"
|
|
PKG_SUGGESTED_OPTIONS+= alsa pulseaudio mozilla-jemalloc dbus
|
|
.else
|
|
PKG_SUGGESTED_OPTIONS+= dbus
|
|
.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
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-jemalloc
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mdebug)
|
|
CONFIGURE_ARGS+= --enable-debug --enable-debug-symbols --disable-optimize
|
|
CONFIGURE_ARGS+= --disable-install-strip
|
|
PLIST.debug= yes
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-debug
|
|
CONFIGURE_ARGS+= --enable-optimize=-O2
|
|
CONFIGURE_ARGS+= --enable-install-strip
|
|
BUILDLINK_TRANSFORM+= rm:-g
|
|
.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:Mmozilla-lightning)
|
|
CONFIGURE_ARGS+= --enable-calendar
|
|
PLIST_SRC+= PLIST.lightning
|
|
XPI_FILES+= ${WRKSRC}/${OBJDIR}/bin/distribution/extensions/lightning.xpi
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-calendar
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mdbus)
|
|
.include "../../sysutils/dbus-glib/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --enable-dbus
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-dbus
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mofficial-mozilla-branding)
|
|
CONFIGURE_ARGS+= --enable-official-branding
|
|
PLIST.branding= yes
|
|
LICENSE= mozilla-trademark-license
|
|
RESTRICTED= Trademark holder prohibits distribution of modified versions.
|
|
NO_BIN_ON_CDROM= ${RESTRICTED}
|
|
NO_BIN_ON_FTP= ${RESTRICTED}
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-official-branding
|
|
PLIST.nobranding= yes
|
|
.endif
|