summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authortsutsui <tsutsui@pkgsrc.org>2017-02-24 18:33:38 +0000
committertsutsui <tsutsui@pkgsrc.org>2017-02-24 18:33:38 +0000
commitb901a2e5a92067fe0015bf3381835a60fe54672f (patch)
tree6221c12efab4b5483f56b60c9ebc1dec26c313a7 /multimedia
parentb23122c0f029ae2acacc2b715d11b52452b86fa9 (diff)
downloadpkgsrc-b901a2e5a92067fe0015bf3381835a60fe54672f.tar.gz
Import adobe-flash-player 24.0.0.221 as multimedia/adobe-flash-player24.
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-player24/DESCR10
-rw-r--r--multimedia/adobe-flash-player24/INSTALL.nspluginwrapper19
-rw-r--r--multimedia/adobe-flash-player24/MESSAGE.pulseaudio10
-rw-r--r--multimedia/adobe-flash-player24/Makefile55
-rw-r--r--multimedia/adobe-flash-player24/PLIST2
-rw-r--r--multimedia/adobe-flash-player24/distinfo10
-rw-r--r--multimedia/adobe-flash-player24/options.mk27
7 files changed, 133 insertions, 0 deletions
diff --git a/multimedia/adobe-flash-player24/DESCR b/multimedia/adobe-flash-player24/DESCR
new file mode 100644
index 00000000000..2b35a9639dc
--- /dev/null
+++ b/multimedia/adobe-flash-player24/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-player24/INSTALL.nspluginwrapper b/multimedia/adobe-flash-player24/INSTALL.nspluginwrapper
new file mode 100644
index 00000000000..a11afee85be
--- /dev/null
+++ b/multimedia/adobe-flash-player24/INSTALL.nspluginwrapper
@@ -0,0 +1,19 @@
+#!/bin/sh
+# $NetBSD: INSTALL.nspluginwrapper,v 1.1 2017/02/24 18:33:38 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-player24/MESSAGE.pulseaudio b/multimedia/adobe-flash-player24/MESSAGE.pulseaudio
new file mode 100644
index 00000000000..42c7acb2f34
--- /dev/null
+++ b/multimedia/adobe-flash-player24/MESSAGE.pulseaudio
@@ -0,0 +1,10 @@
+===========================================================================
+$NetBSD: MESSAGE.pulseaudio,v 1.1 2017/02/24 18:33:38 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-player24/Makefile b/multimedia/adobe-flash-player24/Makefile
new file mode 100644
index 00000000000..7fdfff42bb5
--- /dev/null
+++ b/multimedia/adobe-flash-player24/Makefile
@@ -0,0 +1,55 @@
+# $NetBSD: Makefile,v 1.1 2017/02/24 18:33:38 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-player24/PLIST b/multimedia/adobe-flash-player24/PLIST
new file mode 100644
index 00000000000..f0e83dc3e42
--- /dev/null
+++ b/multimedia/adobe-flash-player24/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2017/02/24 18:33:38 tsutsui Exp $
+lib/netscape/plugins/libflashplayer.so
diff --git a/multimedia/adobe-flash-player24/distinfo b/multimedia/adobe-flash-player24/distinfo
new file mode 100644
index 00000000000..7211419a780
--- /dev/null
+++ b/multimedia/adobe-flash-player24/distinfo
@@ -0,0 +1,10 @@
+$NetBSD: distinfo,v 1.1 2017/02/24 18:33:38 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
+SHA1 (adobe-flash-player-24.0.0.221/flash_player_npapi_linux.x86_64.tar.gz) = 70a56b541f0e980ed64f054799e23f92a91feceb
+RMD160 (adobe-flash-player-24.0.0.221/flash_player_npapi_linux.x86_64.tar.gz) = ef90cedbe7c93522e4712bd68a6e776bef9adb9a
+SHA512 (adobe-flash-player-24.0.0.221/flash_player_npapi_linux.x86_64.tar.gz) = c3f0702e247488d82543a364cda9d143e0f9f4262b36db1e4bc0d59f2d85f87afe8d741081965056c90de2460e166d93d6f9731043a3afe3ed6953f60225aa6b
+Size (adobe-flash-player-24.0.0.221/flash_player_npapi_linux.x86_64.tar.gz) = 9698349 bytes
diff --git a/multimedia/adobe-flash-player24/options.mk b/multimedia/adobe-flash-player24/options.mk
new file mode 100644
index 00000000000..5ee9cfc6ac0
--- /dev/null
+++ b/multimedia/adobe-flash-player24/options.mk
@@ -0,0 +1,27 @@
+# $NetBSD: options.mk,v 1.1 2017/02/24 18:33:38 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