diff options
Diffstat (limited to 'multimedia/adobe-flash-plugin')
-rw-r--r-- | multimedia/adobe-flash-plugin/DESCR | 10 | ||||
-rw-r--r-- | multimedia/adobe-flash-plugin/INSTALL.nspluginwrapper | 20 | ||||
-rw-r--r-- | multimedia/adobe-flash-plugin/Makefile | 50 | ||||
-rw-r--r-- | multimedia/adobe-flash-plugin/PLIST | 3 | ||||
-rw-r--r-- | multimedia/adobe-flash-plugin/distinfo | 5 | ||||
-rw-r--r-- | multimedia/adobe-flash-plugin/options.mk | 24 |
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 |