pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/multimedia/adobe-flash-player Re-import multimedia/ado...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1b23a4d31a53
branches:  trunk
changeset: 359786:1b23a4d31a53
user:      tsutsui <tsutsui%pkgsrc.org@localhost>
date:      Fri Mar 17 21:56:29 2017 +0000

description:
Re-import multimedia/adobe-flash-player24 as multimedia/adobe-flash-player
for future major version bump with compatibility.

We had multiple adobe-flash-plugin versions in the past because
newer 11.x versions didn't work on older (4.x) NetBSD systems.
However I guess Adobe will not put aggressive changes that require
newer Linux kernel version (i.e. emul.linux.kern.osrelease on NetBSD)
in future periodical major updates, as per their announcements:
 https://blogs.adobe.com/flashplayer/2016/08/beta-news-flash-player-npapi-for-linux.html
> Because this change is primarily a security initiative, some features
> (like GPU 3D acceleration and premium video DRM) will not be fully
> implemented.

No objection on pkgsrc-users@:
 http://mail-index.netbsd.org/pkgsrc-users/2017/03/14/msg024523.html
Also ok'ed by gdt@ in private mail.

---

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:

 multimedia/adobe-flash-player/DESCR                   |  10 +++
 multimedia/adobe-flash-player/INSTALL.nspluginwrapper |  19 ++++++
 multimedia/adobe-flash-player/MESSAGE.pulseaudio      |  10 +++
 multimedia/adobe-flash-player/Makefile                |  55 +++++++++++++++++++
 multimedia/adobe-flash-player/PLIST                   |   2 +
 multimedia/adobe-flash-player/distinfo                |   6 ++
 multimedia/adobe-flash-player/options.mk              |  27 +++++++++
 7 files changed, 129 insertions(+), 0 deletions(-)

diffs (157 lines):

diff -r d3429e2a0ae5 -r 1b23a4d31a53 multimedia/adobe-flash-player/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/adobe-flash-player/DESCR       Fri Mar 17 21:56:29 2017 +0000
@@ -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 -r d3429e2a0ae5 -r 1b23a4d31a53 multimedia/adobe-flash-player/INSTALL.nspluginwrapper
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/adobe-flash-player/INSTALL.nspluginwrapper     Fri Mar 17 21:56:29 2017 +0000
@@ -0,0 +1,19 @@
+#!/bin/sh
+# $NetBSD: INSTALL.nspluginwrapper,v 1.1 2017/03/17 21:56:29 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 -r d3429e2a0ae5 -r 1b23a4d31a53 multimedia/adobe-flash-player/MESSAGE.pulseaudio
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/adobe-flash-player/MESSAGE.pulseaudio  Fri Mar 17 21:56:29 2017 +0000
@@ -0,0 +1,10 @@
+===========================================================================
+$NetBSD: MESSAGE.pulseaudio,v 1.1 2017/03/17 21:56:29 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 -r d3429e2a0ae5 -r 1b23a4d31a53 multimedia/adobe-flash-player/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/adobe-flash-player/Makefile    Fri Mar 17 21:56:29 2017 +0000
@@ -0,0 +1,55 @@
+# $NetBSD: Makefile,v 1.1 2017/03/17 21:56:29 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@localhost
+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 -r d3429e2a0ae5 -r 1b23a4d31a53 multimedia/adobe-flash-player/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/adobe-flash-player/PLIST       Fri Mar 17 21:56:29 2017 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2017/03/17 21:56:29 tsutsui Exp $
+lib/netscape/plugins/libflashplayer.so
diff -r d3429e2a0ae5 -r 1b23a4d31a53 multimedia/adobe-flash-player/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/adobe-flash-player/distinfo    Fri Mar 17 21:56:29 2017 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/03/17 21:56:29 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
diff -r d3429e2a0ae5 -r 1b23a4d31a53 multimedia/adobe-flash-player/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/adobe-flash-player/options.mk  Fri Mar 17 21:56:29 2017 +0000
@@ -0,0 +1,27 @@
+# $NetBSD: options.mk,v 1.1 2017/03/17 21:56:29 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



Home | Main Index | Thread Index | Old Index