summaryrefslogtreecommitdiff
path: root/multimedia/adobe-flash-plugin
diff options
context:
space:
mode:
authorjmcneill <jmcneill@pkgsrc.org>2008-12-18 23:00:45 +0000
committerjmcneill <jmcneill@pkgsrc.org>2008-12-18 23:00:45 +0000
commit214372276daa324f7c5a92546f06603d74914a5f (patch)
tree1cca246dd7e511957db05fd4d3ef4b4a4f238ada /multimedia/adobe-flash-plugin
parentd581db33c8853b780efd719d250f5a0bdf42aa85 (diff)
downloadpkgsrc-214372276daa324f7c5a92546f06603d74914a5f.tar.gz
Import adobe-flash-plugin version 10.0.0.525.
Netscape plugin for Adobe Flash player. This package contains a plugin that enables Netscape to render the Flash format. The nspluginwrapper option (enabled by default) permits the use of the the Linux x86 flash player in Firefox browsers on other x86 systems. Systems tested with nspluginwrapper: - NetBSD 5.0 - works - firefox 3.0.x - works
Diffstat (limited to 'multimedia/adobe-flash-plugin')
-rw-r--r--multimedia/adobe-flash-plugin/DESCR10
-rw-r--r--multimedia/adobe-flash-plugin/INSTALL.nspluginwrapper20
-rw-r--r--multimedia/adobe-flash-plugin/Makefile50
-rw-r--r--multimedia/adobe-flash-plugin/PLIST3
-rw-r--r--multimedia/adobe-flash-plugin/distinfo5
-rw-r--r--multimedia/adobe-flash-plugin/options.mk24
6 files changed, 112 insertions, 0 deletions
diff --git a/multimedia/adobe-flash-plugin/DESCR b/multimedia/adobe-flash-plugin/DESCR
new file mode 100644
index 00000000000..bbc0cc2a911
--- /dev/null
+++ b/multimedia/adobe-flash-plugin/DESCR
@@ -0,0 +1,10 @@
+Netscape plugin for Adobe Flash player. This package contains
+a plugin that enables Netscape to render the Flash format.
+
+The nspluginwrapper option (enabled by default) permits the use of
+the the Linux x86 flash player in Firefox browsers on other x86
+systems.
+
+Systems tested with nspluginwrapper:
+ - NetBSD 5.0 - works
+ - firefox 3.0.x - works
diff --git a/multimedia/adobe-flash-plugin/INSTALL.nspluginwrapper b/multimedia/adobe-flash-plugin/INSTALL.nspluginwrapper
new file mode 100644
index 00000000000..a56a16ccad1
--- /dev/null
+++ b/multimedia/adobe-flash-plugin/INSTALL.nspluginwrapper
@@ -0,0 +1,20 @@
+#!/bin/sh
+# $NetBSD: INSTALL.nspluginwrapper,v 1.1.1.1 2008/12/18 23:00:45 jmcneill 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-plugin/Makefile b/multimedia/adobe-flash-plugin/Makefile
new file mode 100644
index 00000000000..1c723b0155d
--- /dev/null
+++ b/multimedia/adobe-flash-plugin/Makefile
@@ -0,0 +1,50 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/12/18 23:00:45 jmcneill Exp $
+
+CATEGORIES= multimedia www
+MASTER_SITES= http://download.macromedia.com/pub/labs/flashplayer10/
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.adobe.com/
+COMMENT= Adobe Flash Player Browser plugin
+
+LICENSE= flash-license
+RESTRICTED= Redistribution not permitted
+NO_SRC_ON_FTP= ${RESTRICTED}
+NO_SRC_ON_CDROM= ${RESTRICTED}
+NO_BIN_ON_FTP= ${RESTRICTED}
+NO_BIN_ON_CDROM= ${RESTRICTED}
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+WRKSRC= ${WRKDIR}/${WRKNAME}
+BUILD_DIRS= # empty
+DIST_SUBDIR= flash/${FLASH_VERS}
+
+CRYPTO= yes
+
+EMUL_PLATFORMS= linux-i386
+EMUL_MODULES.linux= compat gtk2 mozilla x11
+EMUL_REQD= suse>=10.0
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${EMUL_PLATFORM} == "linux-i386"
+# Defaults so lintpkgsrc is happy
+FLASH_VERS= 10.0.0.525
+DISTUNAME= linux
+DISTNAME= flashplayer10_install_${DISTUNAME}_070208
+WRKNAME= install_flash_player_10_${DISTUNAME}
+.endif
+
+CONFLICTS= ns-flash-[0-9]*
+PKGNAME= adobe-flash-plugin-${FLASH_VERS:S/r/./}
+
+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-plugin/PLIST b/multimedia/adobe-flash-plugin/PLIST
new file mode 100644
index 00000000000..a984b759d60
--- /dev/null
+++ b/multimedia/adobe-flash-plugin/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/12/18 23:00:45 jmcneill Exp $
+lib/netscape/plugins/libflashplayer.so
+@unexec ${RMDIR} %D/lib/netscape/plugins 2>/dev/null || ${TRUE}
diff --git a/multimedia/adobe-flash-plugin/distinfo b/multimedia/adobe-flash-plugin/distinfo
new file mode 100644
index 00000000000..f65383b3cd1
--- /dev/null
+++ b/multimedia/adobe-flash-plugin/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/12/18 23:00:45 jmcneill Exp $
+
+SHA1 (flash/10.0.0.525/flashplayer10_install_linux_070208.tar.gz) = 11343a93020898db71793ff9ed0a2f35d9ece564
+RMD160 (flash/10.0.0.525/flashplayer10_install_linux_070208.tar.gz) = fdbcb33f387335c3aa84ff95aef64dca292910af
+Size (flash/10.0.0.525/flashplayer10_install_linux_070208.tar.gz) = 3888574 bytes
diff --git a/multimedia/adobe-flash-plugin/options.mk b/multimedia/adobe-flash-plugin/options.mk
new file mode 100644
index 00000000000..157e280d96a
--- /dev/null
+++ b/multimedia/adobe-flash-plugin/options.mk
@@ -0,0 +1,24 @@
+# $NetBSD: options.mk,v 1.1.1.1 2008/12/18 23:00:45 jmcneill Exp $
+#
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.ns-flash
+PKG_SUPPORTED_OPTIONS= nspluginwrapper
+
+# 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.
+
+.if ${MACHINE_ARCH} == "i386" && ${OPSYS} != "Linux"
+PKG_SUGGESTED_OPTIONS= nspluginwrapper
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mnspluginwrapper)
+DEPENDS+= nspluginwrapper>0:../../www/nspluginwrapper
+DEPENDS+= libflashsupport>0:../../multimedia/libflashsupport
+INSTALL_TEMPLATES+= ${PKGDIR}/INSTALL.nspluginwrapper
+DEINSTALL_TEMPLATES+= ${PKGDIR}/INSTALL.nspluginwrapper
+.endif