./www/nspluginwrapper, Use Netscape compatible plugins from other platforms

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]

Branch: CURRENT, Version: 1.4.4nb6, Package name: nspluginwrapper-1.4.4nb6, Maintainer: tsutsui

nspluginwrapper is an Open Source compatibility plugin for Netscape
4 (NPAPI) plugins. It separates the execution environment of the
plugin from the browser, allowing a plugin compiled for one ABI to
be used in a browser compiled for another.

For example the linux 32bit Adobe Flash plugin can be used in a
native Firefox under Linux/x86_64, NetBSD, DragonFlyBSD and FreeBSD

To install the Linux flash player into a native Firefox browser:
- Also install multimedia/ns-flash and multimedia/libflashsupport
- Run "nspluginwrapper -i /usr/pkg/lib/netscape/plugins/libflashplayer.so"
- Run Firefox

You do not need nspluginwrapper if the ABI of the plugin and browser are the
same, such as running a 32 bit Linux firefox and flash plugin under NetBSD.

Required to run:
[www/curl] [devel/glib2] [x11/gtk2] [emulators/suse121_base] [emulators/suse121_x11] [emulators/suse121_gtk2]

Required to build:
[pkgtools/x11-links] [x11/compositeproto] [x11/glproto] [x11/renderproto] [x11/xproto] [x11/xf86vidmodeproto] [x11/xf86driproto] [x11/damageproto] [x11/inputproto] [x11/xextproto] [x11/randrproto] [x11/dri2proto] [x11/xcb-proto] [x11/fixesproto4] [pkgtools/cwrappers]

Master sites: (Expand)

SHA1: ffb271a741215874808d4a77d0a0dd65588a8440
RMD160: 6acd93653aa8466e1e3703c2b794f32691c10d12
Filesize: 402.845 KB

Version history: (Expand)

CVS history: (Expand)

   2017-01-01 17:06:40 by Adam Ciarcinski | Files touched by this commit (616) | Package updated
Log message:
Revbump after boost update
   2016-10-15 17:18:01 by Izumi Tsutsui | Files touched by this commit (3) | Package updated
Log message:
Make npplayer search default pkgsrc dirs.

Now npplayer works without MOZ_PLUGIN_PATH env as
/usr/pkg/lib/nspluginwrapper/i386/netbsd/npplayer \


XXX: probably we should move the default dir for adobe-flash-plugins11
     from historical ${PREFIX}/lib/netscape to ${PREFIX}/lib/mozilla
   2016-10-07 20:26:14 by Adam Ciarcinski | Files touched by this commit (611) | Package updated
Log message:
Revbump post boost update
   2016-09-17 21:02:52 by Izumi Tsutsui | Files touched by this commit (3) | Package updated
Log message:
Remove duplicated entry in plugin dirs.

Fixes duplicated output of nspluginwrapper -l.
   2016-08-03 12:23:40 by Adam Ciarcinski | Files touched by this commit (1248) | Package updated
Log message:
Revbump after graphics/gd update
   2016-06-27 13:03:29 by Tobias Nygren | Files touched by this commit (2)
Log message:
Fix build on -current
   2016-03-05 12:29:49 by Jonathan Perkin | Files touched by this commit (1813) | Package updated
Log message:
Bump PKGREVISION for security/openssl ABI bump.
   2015-10-24 08:30:40 by Izumi Tsutsui | Files touched by this commit (7) | Package updated
Log message:
Update nspluginwrapper-1.4.4.

pkgsrc changes:
- use private Linux npviewer.bin binaries built by me (tsutsui@) on
  openSUSE 12.1 on 32 bit (i386) and 64 bit (x86_64) on VirtualBox
- enable EMUL_PLATFORMS=linux-x86_64 using the native 64 bit Linux
  npviewer.bin binary, which allows using 64 bit native adobe-flash-plugin
  on NetBSD/amd64 hosts
- also explicitly set EMUL_REQD= suse>=12.1 (NetBSD 6.x can use it anyway)
- tweak some pkgsrc ${PREFIX}
- update HOMEPAGE
- take maintainership

- major Linux distributions provided nspluginwrapper binaries to use
  the 32 bit plugin binaries without sources on their 64 bit systems,
  so there is no 64 bit wrapper binary (npviewer.bin) to use native 64 bit
  plugin binaries on other systems (like NetBSD) via binary emulation
- nowadays adobe provides 64 bit native adobe-flash-plugin11 binaries
  and NPAPI plugins are being deprecated by vendors, so I guess there is
  very few motivation to update nspluginwrapper project for Linux people
- Linux binaries in distfiles are built with following changes to
  make npviewer.bin works on non-Linux hosts:
 - configure with the following options, to enable "generic" RPC calls
   (The default Linux native binaries use their specific "anonymous \ 
  -  for i386:
     % ./configure --enable-generic
  - for x86_64:
     % ./configure --target-cpu=x86_64 --disable-biarch --enable-generic \ 
--enable-viewer --enable-player
 - disable USE_NPIDENTIFIER_CACHE in npviewer (as patch-src_npw-viewer.c),
   which doesn't seems tested with the "generic" RPC interfaces

OK from abs@, and no particular objection to PR pkg/49705 and pkgsrc-users@.
Also thanks to Onno van der Linden for his first analysis about
newer nspluginwrapper APIs in PR pkg/47208.

Upstream changes (in NEWS file):

Version 1.4.4 - 30.Jun.2011
* Fix crash in some cases when the number of watched file descriptors decreases

Version 1.4.2 - 04.Jun.2011
* Fix crash in WebKit/GTK when npwrapper.so is incorrectly treated as a plugin
* Fix symbol versioning issues with _Unwind_GetIPInfo on some systems
* Fix install process with parallel make

Version 1.4.0 - 15.May.2011
* Report capabilities over RPC to fix logic based on NULL plugin/browser hooks
* Fix initialization bug that causes Flash 10.3 to report a version of 0
* Implement ClearSiteData NPAPI extension for managing Flash LSOs
* Work around bug in Konqueror that prevents plug-ins from functioning properly

Version 1.3.2 (BETA) - 23.Apr.2011
* Work around lack of client-side windows in Flash
* Fix race condition when NPP_Destroy was called while viewer is busy
* Fix build on modern Linux platforms
* Support NPAPI 0.24, in particular, Flash can now query for private browsing
* Don't export any symbols but those necessary
* Support XEmbeding npplayer into another application
* Remove NPClass::HasMethod cache; it was incorrect
* Fix initializing two wrapped plugins with the same name in the same process
* Work around Qt bug that breaks npplayer when Kopete is installed
* Release implicit grabs before forwarding events to fix Flash context menu hang
* Work around Firefox quirk that broke windowless Flash in Firefox 4
* Bind wrapper and viewer event loops together to avoid many many race conditions
* Redesign NPRuntime bridge to avoid leaking proxy objects
* Incorportate release number into ident string so update works on distro patches

Version 1.3.0 (BETA) - 02.Jan.2009
* Don't poll for Xt events in Gtk (XEMBED) plug-ins
* Use 40 Hz timer for Xt events only when necessary (Xt input sources)
* Add NPIdentifier and NPClass::HasMethod caches, i.e. lower RPC traffic
* Add support for multiple viewer paths, see --viewer-paths=PATH-EXPR
* Add basic checks for malloc()'ed buffer underflow/overflow
* Add checks for single-threaded calls into the browser (NPN_*() functions)