2015-10-24 08:52:43 +02:00
|
|
|
# $NetBSD: options.mk,v 1.3 2015/10/24 06:52:43 tsutsui Exp $
|
2011-11-03 19:14:14 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.adobe-flash-plugin
|
|
|
|
PKG_SUPPORTED_OPTIONS= nspluginwrapper pulseaudio
|
|
|
|
|
|
|
|
# XXXX: If nspluginwrapper is enabled and this package is installed after
|
|
|
|
# firefox (or similar) it will install a system wide wrapped plugin into
|
|
|
|
# @PREFIX/lib/<browser>/plugins. If it is installed before a browser
|
|
|
|
# it will install a plugin for the current user in ~/.mozilla/plugins/
|
|
|
|
# or similar. This is inconsistant and potentially confusing.
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if ${OPSYS} != "Linux"
|
|
|
|
. if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
|
|
|
|
PKG_SUGGESTED_OPTIONS= nspluginwrapper
|
|
|
|
. endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mnspluginwrapper)
|
2015-10-24 08:52:43 +02:00
|
|
|
DEPENDS+= nspluginwrapper>=1.4.4:../../www/nspluginwrapper
|
2011-11-03 19:14:14 +01:00
|
|
|
. if !empty(PKG_OPTIONS:Mpulseaudio)
|
2014-11-03 10:21:16 +01:00
|
|
|
EMUL_MODULES.linux+= pulseaudio
|
2011-11-03 19:14:14 +01:00
|
|
|
MESSAGE_SRC+= ${PKGDIR}/MESSAGE.pulseaudio
|
|
|
|
. else
|
2015-10-24 08:52:43 +02:00
|
|
|
DEPENDS+= libflashsupport>=4.2.2011:../../multimedia/libflashsupport
|
2011-11-03 19:14:14 +01:00
|
|
|
. endif
|
|
|
|
INSTALL_TEMPLATES+= ${PKGDIR}/INSTALL.nspluginwrapper
|
|
|
|
DEINSTALL_TEMPLATES+= ${PKGDIR}/INSTALL.nspluginwrapper
|
|
|
|
.endif
|