summaryrefslogtreecommitdiff
path: root/multimedia
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
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')
-rw-r--r--multimedia/adobe-flash-player/DESCR10
-rw-r--r--multimedia/adobe-flash-player/INSTALL.nspluginwrapper19
-rw-r--r--multimedia/adobe-flash-player/MESSAGE.pulseaudio10
-rw-r--r--multimedia/adobe-flash-player/Makefile55
-rw-r--r--multimedia/adobe-flash-player/PLIST2
-rw-r--r--multimedia/adobe-flash-player/distinfo6
-rw-r--r--multimedia/adobe-flash-player/options.mk27
7 files changed, 129 insertions, 0 deletions
diff --git a/multimedia/adobe-flash-player/DESCR b/multimedia/adobe-flash-player/DESCR
new file mode 100644
index 00000000000..2b35a9639dc
--- /dev/null
+++ b/multimedia/adobe-flash-player/DESCR
@@ -0,0 +1,10 @@
+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.
diff --git a/multimedia/adobe-flash-player/INSTALL.nspluginwrapper b/multimedia/adobe-flash-player/INSTALL.nspluginwrapper
new file mode 100644
index 00000000000..f1414865aed
--- /dev/null
+++ b/multimedia/adobe-flash-player/INSTALL.nspluginwrapper
@@ -0,0 +1,19 @@
+#!/bin/sh
+# $NetBSD: INSTALL.nspluginwrapper,v 1.1 2017/03/17 21:56:29 tsutsui Exp $
+
+PATH=@PREFIX@/bin:$PATH
+
+case $STAGE in
+ POST-INSTALL)
+ nspluginwrapper -i @PREFIX@/lib/netscape/plugins/libflashplayer.so
+ ;;
+esac
+
+
+case $STAGE in
+ DEINSTALL)
+ for wrapped in `nspluginwrapper -l | grep ^/` ; do
+ nspluginwrapper -r $wrapped
+ done
+ ;;
+esac
diff --git a/multimedia/adobe-flash-player/MESSAGE.pulseaudio b/multimedia/adobe-flash-player/MESSAGE.pulseaudio
new file mode 100644
index 00000000000..01b9dea8d7b
--- /dev/null
+++ b/multimedia/adobe-flash-player/MESSAGE.pulseaudio
@@ -0,0 +1,10 @@
+===========================================================================
+$NetBSD: MESSAGE.pulseaudio,v 1.1 2017/03/17 21:56:29 tsutsui Exp $
+
+The flash plugin requires tmpfs to be mounted on /dev/shm for PulseAudio.
+
+This can be automated by adding the following to your /etc/fstab:
+
+tmpfs /emul/linux/dev/shm tmpfs rw,-m1777
+
+===========================================================================
diff --git a/multimedia/adobe-flash-player/Makefile b/multimedia/adobe-flash-player/Makefile
new file mode 100644
index 00000000000..90466c8d586
--- /dev/null
+++ b/multimedia/adobe-flash-player/Makefile
@@ -0,0 +1,55 @@
+# $NetBSD: Makefile,v 1.1 2017/03/17 21:56:29 tsutsui Exp $
+
+FLASH_VERSION= 24.0.0.221
+DISTNAME= flash_player_npapi_linux.${FLASH_ARCH}
+PKGNAME= adobe-flash-player-${FLASH_VERSION}
+DIST_SUBDIR= ${PKGNAME_NOREV}
+CATEGORIES= multimedia www
+MASTER_SITES= http://fpdownload.macromedia.com/get/flashplayer/pdc/${FLASH_VERSION}/
+
+MAINTAINER= tsutsui@NetBSD.org
+HOMEPAGE= http://www.adobe.com/products/flashplayer.html
+COMMENT= Adobe Flash Player Browser NPAPI plugin
+LICENSE= flash-license
+
+RESTRICTED= Redistribution not permitted
+NO_BIN_ON_CDROM= ${RESTRICTED}
+NO_BIN_ON_FTP= ${RESTRICTED}
+NO_SRC_ON_CDROM= ${RESTRICTED}
+NO_SRC_ON_FTP= ${RESTRICTED}
+
+# On NetBSD, requires sufficiently new compat_linux and
+# procfs_map.c fixes pulled after 6.1 and 7.0.
+NOT_FOR_PLATFORM= NetBSD-[0-5]*-* NetBSD-6.[0-1].*-* NetBSD-7.0.*-*
+
+WRKSRC= ${WRKDIR}
+BUILD_DIRS= # empty
+
+CRYPTO= yes
+
+EMUL_PLATFORMS= linux-i386 linux-x86_64
+EMUL_MODULES.linux= gtk2 x11 glx krb5 alsa curl nss nspr
+# flashplayer 24 still supports OpenSUSE 11.3, but NetBSD 6.x uses 12.1
+# by default so I won't bother to test with 11.3.
+EMUL_REQD= suse>=12.1
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${EMUL_PLATFORM} == "linux-i386"
+FLASH_ARCH= i386
+.elif ${EMUL_PLATFORM} == "linux-x86_64"
+FLASH_ARCH= x86_64
+.endif
+
+CONFLICTS= adobe-flash-plugin-[0-9]*
+
+NS_PLUGINS_DIR= ${PREFIX}/lib/netscape/plugins
+
+.include "options.mk"
+
+do-install:
+ ${INSTALL_DATA_DIR} ${DESTDIR}${NS_PLUGINS_DIR}
+ ${INSTALL_DATA} ${WRKSRC}/libflashplayer.so \
+ ${DESTDIR}${NS_PLUGINS_DIR}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/multimedia/adobe-flash-player/PLIST b/multimedia/adobe-flash-player/PLIST
new file mode 100644
index 00000000000..52d7994fc6d
--- /dev/null
+++ b/multimedia/adobe-flash-player/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2017/03/17 21:56:29 tsutsui Exp $
+lib/netscape/plugins/libflashplayer.so
diff --git a/multimedia/adobe-flash-player/distinfo b/multimedia/adobe-flash-player/distinfo
new file mode 100644
index 00000000000..416b7d92baf
--- /dev/null
+++ b/multimedia/adobe-flash-player/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/03/17 21:56:29 tsutsui Exp $
+
+SHA1 (adobe-flash-player-24.0.0.221/flash_player_npapi_linux.i386.tar.gz) = f2fa63b6a18f3141a3b66e95e8cd003ca97aab15
+RMD160 (adobe-flash-player-24.0.0.221/flash_player_npapi_linux.i386.tar.gz) = 67e25b3d6dd85ca9df1733032acd9f5959e797c0
+SHA512 (adobe-flash-player-24.0.0.221/flash_player_npapi_linux.i386.tar.gz) = 54595f8baad3f9531e8f261ac89246f6a428b9c7be50019580618a8c14d650d7dea00b602f8b15881a2b8c9749df05fba38231cd7fffcd6eb66427d68539eea8
+Size (adobe-flash-player-24.0.0.221/flash_player_npapi_linux.i386.tar.gz) = 9161831 bytes
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