summaryrefslogtreecommitdiff
path: root/multimedia/adobe-flash-player/options.mk
diff options
context:
space:
mode:
authortsutsui <tsutsui>2017-03-17 21:56:29 +0000
committertsutsui <tsutsui>2017-03-17 21:56:29 +0000
commit03bdb32a66e7815a1bdd0a607ff45aa11ef9ecb9 (patch)
treeb99fae942d5fa4e3fd2644b4d1e4d58a2f199abf /multimedia/adobe-flash-player/options.mk
parentcf856c398a55ac4107b8c9edfa356b12a613c229 (diff)
downloadpkgsrc-03bdb32a66e7815a1bdd0a607ff45aa11ef9ecb9.tar.gz
Re-import multimedia/adobe-flash-player24 as multimedia/adobe-flash-player
for future major version bump with compatibility. We had multiple adobe-flash-plugin versions in the past because newer 11.x versions didn't work on older (4.x) NetBSD systems. However I guess Adobe will not put aggressive changes that require newer Linux kernel version (i.e. emul.linux.kern.osrelease on NetBSD) in future periodical major updates, as per their announcements: https://blogs.adobe.com/flashplayer/2016/08/beta-news-flash-player-npapi-for-linux.html > Because this change is primarily a security initiative, some features > (like GPU 3D acceleration and premium video DRM) will not be fully > implemented. No objection on pkgsrc-users@: http://mail-index.netbsd.org/pkgsrc-users/2017/03/14/msg024523.html Also ok'ed by gdt@ in private mail. --- NPAPI Adobe Flash player plugin for the Firefox browser. This package contains a plugin that enables web browsers to render the Flash format. The nspluginwrapper option (enabled by default on non Linux platforms) permits the use of the the Linux x86 and x86_64 flash player in Firefox browsers on other x86 systems and x86_64 systems. For NetBSD this package requires NetBSD 6.2 or 7.1 (and later versions) which include procfs fixes for Linux binaries.
Diffstat (limited to 'multimedia/adobe-flash-player/options.mk')
-rw-r--r--multimedia/adobe-flash-player/options.mk27
1 files changed, 27 insertions, 0 deletions
diff --git a/multimedia/adobe-flash-player/options.mk b/multimedia/adobe-flash-player/options.mk
new file mode 100644
index 00000000000..1585a7b73db
--- /dev/null
+++ b/multimedia/adobe-flash-player/options.mk
@@ -0,0 +1,27 @@
+# $NetBSD: options.mk,v 1.1 2017/03/17 21:56:29 tsutsui Exp $
+#
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.adobe-flash-plugin
+PKG_SUPPORTED_OPTIONS= nspluginwrapper pulseaudio
+
+.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)
+DEPENDS+= nspluginwrapper>=1.4.4:../../www/nspluginwrapper
+. if !empty(PKG_OPTIONS:Mpulseaudio)
+EMUL_MODULES.linux+= pulseaudio
+MESSAGE_SRC+= ${PKGDIR}/MESSAGE.pulseaudio
+. else
+DEPENDS+= libflashsupport>=4.2.2011:../../multimedia/libflashsupport
+. endif
+INSTALL_TEMPLATES+= ${PKGDIR}/INSTALL.nspluginwrapper
+DEINSTALL_TEMPLATES+= ${PKGDIR}/INSTALL.nspluginwrapper
+.endif