pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/nspluginwrapper Import www/nspluginwrapper-0.9.91....



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0e34b9026999
branches:  trunk
changeset: 526991:0e34b9026999
user:      abs <abs%pkgsrc.org@localhost>
date:      Thu Mar 22 22:33:45 2007 +0000

description:
Import www/nspluginwrapper-0.9.91.3 into pkgsrc:

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 and FreeBSD platforms.

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

This is working at least under NetBSD/i386 4.0_BETA with native and modular
x11.

diffstat:

 www/nspluginwrapper/DESCR            |  12 +++++++++
 www/nspluginwrapper/Makefile         |  44 ++++++++++++++++++++++++++++++++++++
 www/nspluginwrapper/PLIST            |  15 ++++++++++++
 www/nspluginwrapper/distinfo         |  10 ++++++++
 www/nspluginwrapper/patches/patch-aa |  42 ++++++++++++++++++++++++++++++++++
 www/nspluginwrapper/patches/patch-ab |  12 +++++++++
 6 files changed, 135 insertions(+), 0 deletions(-)

diffs (159 lines):

diff -r 91058f3f637f -r 0e34b9026999 www/nspluginwrapper/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/nspluginwrapper/DESCR Thu Mar 22 22:33:45 2007 +0000
@@ -0,0 +1,12 @@
+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 and FreeBSD platforms.
+
+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
diff -r 91058f3f637f -r 0e34b9026999 www/nspluginwrapper/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/nspluginwrapper/Makefile      Thu Mar 22 22:33:45 2007 +0000
@@ -0,0 +1,44 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/03/22 22:33:45 abs Exp $
+#
+
+DISTNAME=       nspluginwrapper-0.9.91.3
+CATEGORIES=     www
+MASTER_SITES=   http://gwenole.beauchesne.info/projects/nspluginwrapper/files/
+EXTRACT_SUFX=   .tar.bz2
+DISTFILES=     ${DISTNAME}${EXTRACT_SUFX} ${RPMFILE}
+
+MAINTAINER=     abs%NetBSD.org@localhost
+HOMEPAGE=       http://gwenole.beauchesne.info/projects/nspluginwrapper/
+COMMENT=        Use Netscape compatible plugins from other platforms
+
+HAS_CONFIGURE= yes
+USE_LANGUAGES= c c++
+USE_TOOLS+=    gmake
+CONFIGURE_ARGS+= --prefix=${PREFIX} --x11=${X11BASE}
+
+RPMFILE=       ${DISTNAME:S:-:-i386-:}-1.x86_64.rpm
+BUILD_DEPENDS+=        rpm2pkg>=1.2:../../pkgtools/rpm2pkg
+RPM2PKG=       rpm2pkg
+RPM2PKGARGS=   ${DISTDIR}/${DIST_SUBDIR}/${RPMFILE}
+LINUXLIBDIR=   ${PREFIX}/lib/nspluginwrapper/i386/linux
+
+SUBST_CLASSES+=                npviewer
+SUBST_STAGE.npviewer=  post-build
+SUBST_FILES.npviewer=  ../i386/linux/npviewer
+SUBST_SED.npviewer=    -e "s|/usr/|${PREFIX}/|g"
+
+post-extract:
+       ${RPM2PKG} -d ${WRKDIR} -s 4 ${RPM2PKGARGS}
+
+post-install:
+       ${MKDIR} ${LINUXLIBDIR}
+       ${INSTALL_SCRIPT} ${WRKDIR}/i386/linux/libxpcom.so ${LINUXLIBDIR}
+       ${INSTALL_SCRIPT} ${WRKDIR}/i386/linux/npviewer ${LINUXLIBDIR}
+       ${INSTALL_SCRIPT} ${WRKDIR}/i386/linux/npviewer.bin ${LINUXLIBDIR}
+
+ONLY_FOR_PLATFORM=     *-*-i386
+
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXt/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 91058f3f637f -r 0e34b9026999 www/nspluginwrapper/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/nspluginwrapper/PLIST Thu Mar 22 22:33:45 2007 +0000
@@ -0,0 +1,15 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/03/22 22:33:45 abs Exp $
+bin/nspluginwrapper
+lib/nspluginwrapper/${MACHINE_ARCH}/${LOWER_OPSYS}/npconfig
+lib/nspluginwrapper/${MACHINE_ARCH}/${LOWER_OPSYS}/npwrapper.so
+lib/nspluginwrapper/i386/linux/libxpcom.so
+lib/nspluginwrapper/i386/linux/npviewer
+lib/nspluginwrapper/i386/linux/npviewer.bin
+lib/nspluginwrapper/noarch/mkruntime
+lib/nspluginwrapper/noarch/npviewer
+@dirrm lib/nspluginwrapper/noarch
+@dirrm lib/nspluginwrapper/${MACHINE_ARCH}/${LOWER_OPSYS}
+@dirrm lib/nspluginwrapper/i386/linux
+@dirrm lib/nspluginwrapper/i386
+@dirrm lib/nspluginwrapper/${MACHINE_ARCH}
+@dirrm lib/nspluginwrapper
diff -r 91058f3f637f -r 0e34b9026999 www/nspluginwrapper/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/nspluginwrapper/distinfo      Thu Mar 22 22:33:45 2007 +0000
@@ -0,0 +1,10 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/03/22 22:33:45 abs Exp $
+
+SHA1 (nspluginwrapper-0.9.91.3.tar.bz2) = bcd1e1a2260de022c6d5bc2bff802c8d381805d2
+RMD160 (nspluginwrapper-0.9.91.3.tar.bz2) = 660d928b508c342003f9ff3483ce8b8d25919e90
+Size (nspluginwrapper-0.9.91.3.tar.bz2) = 257648 bytes
+SHA1 (nspluginwrapper-i386-0.9.91.3-1.x86_64.rpm) = 7e242b356f417d6e60cb00eaec1b214010737c11
+RMD160 (nspluginwrapper-i386-0.9.91.3-1.x86_64.rpm) = 62835a2d318363fe97ca79842f2caebbd0f9b94a
+Size (nspluginwrapper-i386-0.9.91.3-1.x86_64.rpm) = 50757 bytes
+SHA1 (patch-aa) = 85b18c77b333eb41a2ce40a178f7edf31b6803da
+SHA1 (patch-ab) = 84082438c3cdac30de337137e06a707223ef85ce
diff -r 91058f3f637f -r 0e34b9026999 www/nspluginwrapper/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/nspluginwrapper/patches/patch-aa      Thu Mar 22 22:33:45 2007 +0000
@@ -0,0 +1,42 @@
+$NetBSD: patch-aa,v 1.1.1.1 2007/03/22 22:33:45 abs Exp $
+
+--- configure.orig     2007-03-04 15:01:22.000000000 +0000
++++ configure
+@@ -108,6 +108,9 @@ case "$opt" in
+ --with-cxx=*)
+     cxx=`echo $opt | cut -d '=' -f 2`
+     ;;
++--x11=*)
++    x_base_dirs=`echo $opt | cut -d '=' -f 2`
++    ;;
+ esac
+ done
+ 
+@@ -278,11 +281,15 @@ EOF
+     rm -f $TMPC $TMPE
+ fi
+ 
++if test -z "$x_base_dirs"; then
++    x_base_dirs="
++    /usr
++    /usr/X11R6
++    /usr/local/X11R6
++    $prefix
++    "
++fi
+ # check for X11 base dir
+-x_base_dirs='
+-/usr
+-/usr/X11R6
+-/usr/local/X11R6'
+ for dir in $x_base_dirs; do
+     x_include_dir="$dir/include"
+     if test -f $x_include_dir/X11/Intrinsic.h; then
+@@ -415,6 +422,7 @@ echo "  --with-lib64=NAME           use 
+ echo "  --with-biarch               build both 32-bit and 64-bit components at once"
+ echo "  --with-cc=CC                use C compiler CC [$cc]"
+ echo "  --with-cxx=CXX              use C++ compiler CXX [$cxx]"
++echo "  --x11=PREFIX                use X11 dir"
+ echo ""
+ echo "NOTE: The object files are built at the place where configure is launched"
+ exit 1
diff -r 91058f3f637f -r 0e34b9026999 www/nspluginwrapper/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/nspluginwrapper/patches/patch-ab      Thu Mar 22 22:33:45 2007 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-ab,v 1.1.1.1 2007/03/22 22:33:45 abs Exp $
+
+--- src/npw-wrapper.c.orig     2007-03-04 15:01:22.000000000 +0000
++++ src/npw-wrapper.c
+@@ -25,6 +25,7 @@
+ #include <string.h>
+ #include <limits.h>
+ #include <errno.h>
++#include <signal.h>
+ #include <unistd.h>
+ #include <pthread.h>
+ #include <semaphore.h>



Home | Main Index | Thread Index | Old Index