summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorabs <abs>2007-03-22 22:33:45 +0000
committerabs <abs>2007-03-22 22:33:45 +0000
commitdebbc72cc903a08751b7b60823e3b38d1da42feb (patch)
tree47e098dfc676ce75646d3c074ef781f40e5208e3 /www
parentbca5bc4c350229b7b5097de3dae20e598a1c625b (diff)
downloadpkgsrc-debbc72cc903a08751b7b60823e3b38d1da42feb.tar.gz
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 (limited to 'www')
-rw-r--r--www/nspluginwrapper/DESCR12
-rw-r--r--www/nspluginwrapper/Makefile44
-rw-r--r--www/nspluginwrapper/PLIST15
-rw-r--r--www/nspluginwrapper/distinfo10
-rw-r--r--www/nspluginwrapper/patches/patch-aa42
-rw-r--r--www/nspluginwrapper/patches/patch-ab12
6 files changed, 135 insertions, 0 deletions
diff --git a/www/nspluginwrapper/DESCR b/www/nspluginwrapper/DESCR
new file mode 100644
index 00000000000..d024112dbf7
--- /dev/null
+++ b/www/nspluginwrapper/DESCR
@@ -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 --git a/www/nspluginwrapper/Makefile b/www/nspluginwrapper/Makefile
new file mode 100644
index 00000000000..aedc04d8391
--- /dev/null
+++ b/www/nspluginwrapper/Makefile
@@ -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
+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 --git a/www/nspluginwrapper/PLIST b/www/nspluginwrapper/PLIST
new file mode 100644
index 00000000000..0a0b4e43302
--- /dev/null
+++ b/www/nspluginwrapper/PLIST
@@ -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 --git a/www/nspluginwrapper/distinfo b/www/nspluginwrapper/distinfo
new file mode 100644
index 00000000000..a1bfa8ada1c
--- /dev/null
+++ b/www/nspluginwrapper/distinfo
@@ -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 --git a/www/nspluginwrapper/patches/patch-aa b/www/nspluginwrapper/patches/patch-aa
new file mode 100644
index 00000000000..480cd64b45b
--- /dev/null
+++ b/www/nspluginwrapper/patches/patch-aa
@@ -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 --git a/www/nspluginwrapper/patches/patch-ab b/www/nspluginwrapper/patches/patch-ab
new file mode 100644
index 00000000000..a20a598abbf
--- /dev/null
+++ b/www/nspluginwrapper/patches/patch-ab
@@ -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>