pkgsrc/www/seamonkey/options.mk
nia a98be93613 seamonkey: sun audio support for NetBSD/SunOS, use gtk3 by default
cubeb_sun replaces cubeb_oss, adding support for additional channels
on NetBSD, passing tests, and recording support (more useful on firefox
where WebRTC works)

upstream's official builds use gtk3 over gtk2 and doing so enables
support for hidpi displays.

me and several others have been using this for the past ~week, see
https://github.com/kinetiknz/cubeb/pull/510

bump PKGREVISION.
2019-06-13 10:53:11 +00:00

86 lines
2.1 KiB
Makefile

# $NetBSD: options.mk,v 1.41 2019/06/13 10:53:11 nia Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.seamonkey
PKG_OPTIONS_REQUIRED_GROUPS= gtk
PKG_OPTIONS_GROUP.gtk= gtk2 gtk3
PKG_SUPPORTED_OPTIONS= alsa dbus debug mozilla-jemalloc
PKG_SUPPORTED_OPTIONS+= webrtc pulseaudio
PLIST_VARS+= debug gnome jemalloc
PKG_SUGGESTED_OPTIONS= gtk3
PKG_SUGGESTED_OPTIONS.Linux+= mozilla-jemalloc
PKG_SUGGESTED_OPTIONS.SunOS+= mozilla-jemalloc
# 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
.if ${OPSYS} == "Linux"
PKG_SUGGESTED_OPTIONS+= dbus pulseaudio
.else
PKG_SUGGESTED_OPTIONS+= dbus
.endif
.include "../../mk/bsd.options.mk"
PLIST_VARS+= gtk3
.if !empty(PKG_OPTIONS:Mgtk2)
CONFIGURE_ARGS+= --enable-default-toolkit=cairo-gtk2
.include "../../x11/gtk2/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mgtk3)
CONFIGURE_ARGS+= --enable-default-toolkit=cairo-gtk3
.include "../../x11/gtk2/buildlink3.mk"
.include "../../x11/gtk3/buildlink3.mk"
PLIST.gtk3= yes
.endif
.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:Mdbus)
.include "../../sysutils/dbus-glib/buildlink3.mk"
CONFIGURE_ARGS+= --enable-dbus
.else
CONFIGURE_ARGS+= --disable-dbus
.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
.else
CONFIGURE_ARGS+= --disable-pulseaudio
.endif
PLIST_VARS+= webrtc
.if !empty(PKG_OPTIONS:Mwebrtc)
.include "../../graphics/libv4l/buildlink3.mk"
CONFIGURE_ARGS+= --enable-webrtc
.else
CONFIGURE_ARGS+= --disable-webrtc
.endif