pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/adobe-flash-plugin Import adobe-flash-plugi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d0a79e6716c5
branches:  trunk
changeset: 551676:d0a79e6716c5
user:      jmcneill <jmcneill%pkgsrc.org@localhost>
date:      Thu Dec 18 23:00:45 2008 +0000

description:
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:

 multimedia/adobe-flash-plugin/DESCR                   |  10 +++
 multimedia/adobe-flash-plugin/INSTALL.nspluginwrapper |  20 +++++++
 multimedia/adobe-flash-plugin/Makefile                |  50 +++++++++++++++++++
 multimedia/adobe-flash-plugin/PLIST                   |   3 +
 multimedia/adobe-flash-plugin/distinfo                |   5 +
 multimedia/adobe-flash-plugin/options.mk              |  24 +++++++++
 6 files changed, 112 insertions(+), 0 deletions(-)

diffs (136 lines):

diff -r ee49f86c404f -r d0a79e6716c5 multimedia/adobe-flash-plugin/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/adobe-flash-plugin/DESCR       Thu Dec 18 23:00:45 2008 +0000
@@ -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 -r ee49f86c404f -r d0a79e6716c5 multimedia/adobe-flash-plugin/INSTALL.nspluginwrapper
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/adobe-flash-plugin/INSTALL.nspluginwrapper     Thu Dec 18 23:00:45 2008 +0000
@@ -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 -r ee49f86c404f -r d0a79e6716c5 multimedia/adobe-flash-plugin/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/adobe-flash-plugin/Makefile    Thu Dec 18 23:00:45 2008 +0000
@@ -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@localhost
+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 -r ee49f86c404f -r d0a79e6716c5 multimedia/adobe-flash-plugin/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/adobe-flash-plugin/PLIST       Thu Dec 18 23:00:45 2008 +0000
@@ -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 -r ee49f86c404f -r d0a79e6716c5 multimedia/adobe-flash-plugin/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/adobe-flash-plugin/distinfo    Thu Dec 18 23:00:45 2008 +0000
@@ -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 -r ee49f86c404f -r d0a79e6716c5 multimedia/adobe-flash-plugin/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/adobe-flash-plugin/options.mk  Thu Dec 18 23:00:45 2008 +0000
@@ -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



Home | Main Index | Thread Index | Old Index