summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorabs <abs>2011-11-03 18:14:14 +0000
committerabs <abs>2011-11-03 18:14:14 +0000
commitfd338913ddeca077750cb8746d5183033643e201 (patch)
tree4b81b916e3b362708c85a321c7da309e38fe19d7 /multimedia
parente940a6aec193e1923007e4cb8140e8536d325414 (diff)
downloadpkgsrc-fd338913ddeca077750cb8746d5183033643e201.tar.gz
Added multimedia/adobe-flash-plugin11 version 11.0.1.152
This is based on Ryo ONODERA's wip package with some pkglint and MESSAGE shuffling from me (any issues seen are likely to be due to that rather than the original package). Netscape compatible plugin for Adobe Flash player. 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 flash player in Firefox browsers on other x86 systems and x86_64 systems. For NetBSD this package requires emul.linux.kern.osrelease = 2.6.18 or later, which means it will not work on NetBSD 5.x or older systems.
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/adobe-flash-plugin11/DESCR11
-rw-r--r--multimedia/adobe-flash-plugin11/INSTALL.nspluginwrapper19
-rw-r--r--multimedia/adobe-flash-plugin11/MESSAGE.pulseaudio10
-rw-r--r--multimedia/adobe-flash-plugin11/Makefile58
-rw-r--r--multimedia/adobe-flash-plugin11/PLIST2
-rw-r--r--multimedia/adobe-flash-plugin11/distinfo5
-rw-r--r--multimedia/adobe-flash-plugin11/options.mk33
7 files changed, 138 insertions, 0 deletions
diff --git a/multimedia/adobe-flash-plugin11/DESCR b/multimedia/adobe-flash-plugin11/DESCR
new file mode 100644
index 00000000000..322bc74f3c0
--- /dev/null
+++ b/multimedia/adobe-flash-plugin11/DESCR
@@ -0,0 +1,11 @@
+Netscape compatible plugin for Adobe Flash player. 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 flash player in Firefox browsers
+on other x86 systems and x86_64 systems.
+
+For NetBSD this package requires emul.linux.kern.osrelease = 2.6.18
+or later, which means it will not work on NetBSD 5.x or older
+systems.
diff --git a/multimedia/adobe-flash-plugin11/INSTALL.nspluginwrapper b/multimedia/adobe-flash-plugin11/INSTALL.nspluginwrapper
new file mode 100644
index 00000000000..8bd715ab945
--- /dev/null
+++ b/multimedia/adobe-flash-plugin11/INSTALL.nspluginwrapper
@@ -0,0 +1,19 @@
+#!/bin/sh
+# $NetBSD: INSTALL.nspluginwrapper,v 1.1.1.1 2011/11/03 18:14:14 abs 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-plugin11/MESSAGE.pulseaudio b/multimedia/adobe-flash-plugin11/MESSAGE.pulseaudio
new file mode 100644
index 00000000000..b1159b8ca12
--- /dev/null
+++ b/multimedia/adobe-flash-plugin11/MESSAGE.pulseaudio
@@ -0,0 +1,10 @@
+===========================================================================
+$NetBSD: MESSAGE.pulseaudio,v 1.1.1.1 2011/11/03 18:14:15 abs 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-plugin11/Makefile b/multimedia/adobe-flash-plugin11/Makefile
new file mode 100644
index 00000000000..6b8e7751482
--- /dev/null
+++ b/multimedia/adobe-flash-plugin11/Makefile
@@ -0,0 +1,58 @@
+# $NetBSD: Makefile,v 1.1.1.1 2011/11/03 18:14:14 abs Exp $
+
+DISTNAME= flash-plugin-${FLASH_VERSION}-release.${FLASH_ARCH}
+PKGNAME= adobe-${DISTNAME:C/-release.*//}
+CATEGORIES= multimedia www
+MASTER_SITES= http://fpdownload.macromedia.com/get/flashplayer/current/
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.adobe.com/products/flashplayer.html
+COMMENT= Adobe Flash Player Browser 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}
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+NOT_FOR_PLATFORM= NetBSD-[0-4]*-* NetBSD-5.[0-9].*-*
+
+WRKSRC= ${WRKDIR}
+BUILD_DIRS= # empty
+EXTRACT_SUFX= .rpm
+
+CRYPTO= yes
+
+# XXX At present, it seems www/nspluginwrapper does not support native x86_64
+# plugin. --2011-10-08 ryoon
+EMUL_PLATFORMS= linux-i386 #linux-x86_64
+EMUL_MODULES.linux= gtk2 x11 krb5 alsa curl
+EMUL_REQD= suse>=11.3
+
+FLASH_VERSION= 11.0.1.152
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${EMUL_PLATFORM} == "linux-i386"
+FLASH_ARCH= i386
+FLASH_LIBDIR= lib
+.elif ${EMUL_PLATFORM} == "linux-x86_64"
+FLASH_ARCH= x86_64
+FLASH_LIBDIR= lib64
+.endif
+
+CONFLICTS= ns-flash-[0-9]*
+
+NS_PLUGINS_DIR= ${PREFIX}/lib/netscape/plugins
+
+.include "options.mk"
+
+do-install:
+ ${INSTALL_DATA_DIR} ${DESTDIR}${NS_PLUGINS_DIR}
+ ${INSTALL_DATA} ${WRKSRC}/usr/${FLASH_LIBDIR}/flash-plugin/libflashplayer.so \
+ ${DESTDIR}${NS_PLUGINS_DIR}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/multimedia/adobe-flash-plugin11/PLIST b/multimedia/adobe-flash-plugin11/PLIST
new file mode 100644
index 00000000000..c0681b37e6c
--- /dev/null
+++ b/multimedia/adobe-flash-plugin11/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2011/11/03 18:14:14 abs Exp $
+lib/netscape/plugins/libflashplayer.so
diff --git a/multimedia/adobe-flash-plugin11/distinfo b/multimedia/adobe-flash-plugin11/distinfo
new file mode 100644
index 00000000000..bd6f0187aee
--- /dev/null
+++ b/multimedia/adobe-flash-plugin11/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2011/11/03 18:14:14 abs Exp $
+
+SHA1 (flash-plugin-11.0.1.152-release.i386.rpm) = 696e2a0ec53562bbad1b7f6af8358454eb591fc1
+RMD160 (flash-plugin-11.0.1.152-release.i386.rpm) = 4173da9f78bfb501ed7c16910f5f9e9947a48a21
+Size (flash-plugin-11.0.1.152-release.i386.rpm) = 6729680 bytes
diff --git a/multimedia/adobe-flash-plugin11/options.mk b/multimedia/adobe-flash-plugin11/options.mk
new file mode 100644
index 00000000000..21aef8dc7a3
--- /dev/null
+++ b/multimedia/adobe-flash-plugin11/options.mk
@@ -0,0 +1,33 @@
+# $NetBSD: options.mk,v 1.1.1.1 2011/11/03 18:14:15 abs Exp $
+#
+
+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)
+DEPENDS+= nspluginwrapper>0:../../www/nspluginwrapper
+. if !empty(PKG_OPTIONS:Mpulseaudio)
+# usr/lib/libpulse.so.0 provided by suse32_gtk2
+MESSAGE_SRC+= ${PKGDIR}/MESSAGE.pulseaudio
+. else
+DEPENDS+= libflashsupport>0:../../multimedia/libflashsupport
+. endif
+INSTALL_TEMPLATES+= ${PKGDIR}/INSTALL.nspluginwrapper
+DEINSTALL_TEMPLATES+= ${PKGDIR}/INSTALL.nspluginwrapper
+.endif