2017-01-01 17:14:07 +01:00
|
|
|
# $NetBSD: options.mk,v 1.34 2017/01/01 16:14:07 ryoon Exp $
|
2006-03-30 21:15:38 +02:00
|
|
|
|
2009-11-29 01:40:42 +01:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.seamonkey
|
2017-01-01 17:14:07 +01:00
|
|
|
PKG_SUPPORTED_OPTIONS= alsa dbus debug mozilla-jemalloc
|
2014-06-22 10:54:39 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS+= mozilla-lightning webrtc mozilla-chatzilla pulseaudio
|
2006-10-03 14:09:14 +02:00
|
|
|
|
2013-08-11 05:18:46 +02:00
|
|
|
PLIST_VARS+= debug gnome jemalloc
|
2009-11-29 01:40:42 +01:00
|
|
|
|
2016-02-26 11:57:45 +01:00
|
|
|
PKG_SUGGESTED_OPTIONS.Linux+= mozilla-jemalloc
|
|
|
|
PKG_SUGGESTED_OPTIONS.SunOS+= mozilla-jemalloc
|
2007-06-16 03:14:47 +02:00
|
|
|
|
2013-07-12 14:24:10 +02:00
|
|
|
# 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
|
|
|
|
|
2014-06-22 10:54:39 +02:00
|
|
|
.if ${OPSYS} == "Linux"
|
2017-01-01 17:14:07 +01:00
|
|
|
PKG_SUGGESTED_OPTIONS+= alsa dbus
|
2014-06-22 10:54:39 +02:00
|
|
|
.else
|
2017-01-01 17:14:07 +01:00
|
|
|
PKG_SUGGESTED_OPTIONS+= dbus pulseaudio
|
2014-06-22 10:54:39 +02:00
|
|
|
.endif
|
|
|
|
|
2006-03-30 21:15:38 +02:00
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2014-06-22 10:54:39 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Malsa)
|
|
|
|
CONFIGURE_ARGS+= --enable-alsa
|
|
|
|
.include "../../audio/alsa-lib/buildlink3.mk"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-alsa
|
|
|
|
.endif
|
|
|
|
|
2017-01-01 17:14:07 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mdbus)
|
|
|
|
.include "../../sysutils/dbus-glib/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --enable-dbus
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-dbus
|
|
|
|
.endif
|
|
|
|
|
2013-11-23 03:39:25 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mmozilla-chatzilla)
|
|
|
|
PLIST_SRC+= PLIST.chatzilla
|
|
|
|
CONFIGURE_ARGS+= --enable-extensions=default,irc
|
2015-01-02 05:26:21 +01:00
|
|
|
XPI_FILES+= ${WRKSRC}/${OBJDIR}/dist/xpi-stage/chatzilla*.xpi
|
2017-01-01 17:14:07 +01:00
|
|
|
XPI_FILES+= ${WRKSRC}/${OBJDIR}/dist/xpi-stage/quitter*.xpi
|
2009-11-29 01:40:42 +01:00
|
|
|
.endif
|
|
|
|
|
2008-12-17 19:27:53 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mmozilla-jemalloc)
|
2012-04-29 00:48:06 +02:00
|
|
|
PLIST.jemalloc= yes
|
2008-12-17 19:27:53 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-jemalloc
|
|
|
|
.else
|
2008-09-15 20:22:15 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-jemalloc
|
|
|
|
.endif
|
|
|
|
|
2008-12-17 19:27:53 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mdebug)
|
2011-09-12 11:19:06 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-debug --enable-debug-symbols
|
|
|
|
CONFIGURE_ARGS+= --disable-install-strip
|
2013-08-11 05:18:46 +02:00
|
|
|
PLIST.debug= yes
|
2008-12-17 19:27:53 +01:00
|
|
|
.else
|
2011-09-12 11:19:06 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-debug --disable-debug-symbols
|
|
|
|
CONFIGURE_ARGS+= --enable-install-strip
|
2006-03-30 21:15:38 +02:00
|
|
|
.endif
|
2006-09-24 18:21:33 +02:00
|
|
|
|
2012-03-19 21:28:11 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mmozilla-lightning)
|
|
|
|
CONFIGURE_ARGS+= --enable-calendar
|
|
|
|
PLIST_SRC+= PLIST.lightning
|
2015-01-02 05:26:21 +01:00
|
|
|
XPI_FILES+= ${WRKSRC}/${OBJDIR}/dist/xpi-stage/gdata-provider*.xpi
|
|
|
|
XPI_FILES+= ${WRKSRC}/${OBJDIR}/dist/xpi-stage/lightning*.xpi
|
|
|
|
XPI_FILES+= ${WRKSRC}/${OBJDIR}/dist/xpi-stage/quitter*.xpi
|
2012-03-19 21:28:11 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-calendar
|
|
|
|
.endif
|
2013-07-12 14:24:10 +02:00
|
|
|
|
2014-06-22 10:54:39 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mpulseaudio)
|
|
|
|
.include "../../audio/pulseaudio/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --enable-pulseaudio
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-pulseaudio
|
|
|
|
.endif
|
|
|
|
|
2013-07-12 14:24:10 +02:00
|
|
|
PLIST_VARS+= webrtc
|
|
|
|
.if !empty(PKG_OPTIONS:Mwebrtc)
|
|
|
|
.include "../../graphics/libv4l/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --enable-webrtc
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-webrtc
|
|
|
|
.endif
|