summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/nspluginwrapper/Makefile36
-rw-r--r--www/nspluginwrapper/PLIST10
-rw-r--r--www/nspluginwrapper/distinfo25
-rw-r--r--www/nspluginwrapper/patches/patch-Makefile16
-rw-r--r--www/nspluginwrapper/patches/patch-ac12
-rw-r--r--www/nspluginwrapper/patches/patch-src_npw-player.c15
-rw-r--r--www/nspluginwrapper/patches/patch-src_npw-viewer.c18
7 files changed, 68 insertions, 64 deletions
diff --git a/www/nspluginwrapper/Makefile b/www/nspluginwrapper/Makefile
index 7b43fa6a7ba..fb8366e95f0 100644
--- a/www/nspluginwrapper/Makefile
+++ b/www/nspluginwrapper/Makefile
@@ -1,34 +1,46 @@
-# $NetBSD: Makefile,v 1.46 2015/04/25 14:25:02 tnn Exp $
+# $NetBSD: Makefile,v 1.47 2015/10/24 06:30:40 tsutsui Exp $
#
-DISTNAME= nspluginwrapper-1.2.2
-PKGREVISION= 27
+DISTNAME= nspluginwrapper-1.4.4
CATEGORIES= www
-MASTER_SITES= http://gwenole.beauchesne.info/projects/nspluginwrapper/files/
-EXTRACT_SUFX= .tar.bz2
-DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME:S/-/-i386-/}-1.x86_64.rpm
+MASTER_SITES= http://nspluginwrapper.org/download/ \
+ http://teokurebsd.org/netbsd/packages/distfiles/nspluginwrapper/
+DISTFILES= ${DISTNAME}.tar.gz ${DISTNAME}-suse121-generic.${WRAPPER_ARCH}.tar.gz
-MAINTAINER= abs@NetBSD.org
-HOMEPAGE= http://gwenole.beauchesne.info/projects/nspluginwrapper/
+MAINTAINER= tsutsui@NetBSD.org
+HOMEPAGE= http://nspluginwrapper.org/
COMMENT= Use Netscape compatible plugins from other platforms
LICENSE= gnu-gpl-v2
-EMUL_PLATFORMS= linux-i386
+EMUL_PLATFORMS= linux-i386 linux-x86_64
EMUL_MODULES.linux= base gtk2 x11
+EMUL_REQD= suse>=12.1
NOT_FOR_PLATFORM= Linux-*-*
HAS_CONFIGURE= yes
USE_LANGUAGES= c c++
USE_TOOLS+= gmake pkg-config
CONFIGURE_ARGS+= --prefix=${PREFIX}
-CONFIGURE_ARGS+= --with-x11-prefix=${X11BASE}
-PLUGIN_SUBDIR= lib/nspluginwrapper/i386/linux
+.include "../../mk/bsd.prefs.mk"
+
+.if ${EMUL_PLATFORM} == "linux-i386"
+WRAPPER_ARCH= i386
+.elif ${EMUL_PLATFORM} == "linux-x86_64"
+WRAPPER_ARCH= x86_64
+.endif
+
+PLUGIN_SUBDIR= lib/nspluginwrapper/${WRAPPER_ARCH}/linux
PLUGIN_INSTDIR= ${PREFIX}/${PLUGIN_SUBDIR}
PLUGIN_SRCDIR= ${WRKDIR}/usr/${PLUGIN_SUBDIR}
LDFLAGS.DragonFly= -lgmodule-2.0
+SUBST_CLASSES+= npw-config
+SUBST_STAGE.npw-config= post-patch
+SUBST_FILES.npw-config= src/npw-config.c
+SUBST_SED.npw-config= -e "s|/usr/pkg/|${PREFIX}/|g"
+
SUBST_CLASSES+= npviewer
SUBST_STAGE.npviewer= post-build
SUBST_FILES.npviewer= ${PLUGIN_SRCDIR}/npviewer
@@ -37,7 +49,7 @@ SUBST_SED.npviewer= -e "s|/usr/|${PREFIX}/|g"
INSTALLATION_DIRS= ${PLUGIN_INSTDIR}
post-install:
- ${INSTALL_LIB} ${PLUGIN_SRCDIR}/libxpcom.so ${DESTDIR}${PLUGIN_INSTDIR}
+ ${INSTALL_LIB} ${PLUGIN_SRCDIR}/libnoxshm.so ${DESTDIR}${PLUGIN_INSTDIR}
${INSTALL_SCRIPT} ${PLUGIN_SRCDIR}/npviewer ${DESTDIR}${PLUGIN_INSTDIR}
${INSTALL_LIB} ${PLUGIN_SRCDIR}/npviewer.bin ${DESTDIR}${PLUGIN_INSTDIR}
diff --git a/www/nspluginwrapper/PLIST b/www/nspluginwrapper/PLIST
index 11bf143a404..85d200f3fbe 100644
--- a/www/nspluginwrapper/PLIST
+++ b/www/nspluginwrapper/PLIST
@@ -1,10 +1,10 @@
-@comment $NetBSD: PLIST,v 1.4 2009/06/14 22:00:29 joerg Exp $
+@comment $NetBSD: PLIST,v 1.5 2015/10/24 06:30:40 tsutsui Exp $
bin/nspluginplayer
bin/nspluginwrapper
lib/nspluginwrapper/${MACHINE_ARCH}/${LOWER_OPSYS}/npconfig
lib/nspluginwrapper/${MACHINE_ARCH}/${LOWER_OPSYS}/npplayer
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/npviewer
+lib/nspluginwrapper/${MACHINE_ARCH}/linux/libnoxshm.so
+lib/nspluginwrapper/${MACHINE_ARCH}/linux/npviewer
+lib/nspluginwrapper/${MACHINE_ARCH}/linux/npviewer.bin
+lib/nspluginwrapper/noarch/npviewer.sh
diff --git a/www/nspluginwrapper/distinfo b/www/nspluginwrapper/distinfo
index 89a8779d010..dfe351d96d2 100644
--- a/www/nspluginwrapper/distinfo
+++ b/www/nspluginwrapper/distinfo
@@ -1,13 +1,18 @@
-$NetBSD: distinfo,v 1.11 2013/10/12 12:39:15 wiz Exp $
+$NetBSD: distinfo,v 1.12 2015/10/24 06:30:40 tsutsui Exp $
-SHA1 (nspluginwrapper-1.2.2.tar.bz2) = be581c39dcc1a8d9a5b3f81e4650f553a30cf249
-RMD160 (nspluginwrapper-1.2.2.tar.bz2) = d5aa265966f87c51bb9ea4f2a079a87b74fdcbf3
-Size (nspluginwrapper-1.2.2.tar.bz2) = 327947 bytes
-SHA1 (nspluginwrapper-i386-1.2.2-1.x86_64.rpm) = 0d49757623c62da52292e48a0173024c14aa12cd
-RMD160 (nspluginwrapper-i386-1.2.2-1.x86_64.rpm) = 9cf3e6ac3e5171c2bbda71c082b6b9fc30d69a84
-Size (nspluginwrapper-i386-1.2.2-1.x86_64.rpm) = 69425 bytes
-SHA1 (patch-Makefile) = 1bdcc3e90713b5aa08eda0efca4929a5903f1fbb
+SHA1 (nspluginwrapper-1.4.4-suse121-generic.i386.tar.gz) = cc093d1c6d6729434ec90e216afeae1601e0b3b4
+RMD160 (nspluginwrapper-1.4.4-suse121-generic.i386.tar.gz) = a9d79dcd31efc4b1a9b71e29694eff9c8555b10d
+SHA512 (nspluginwrapper-1.4.4-suse121-generic.i386.tar.gz) = 5b514f3a8dd2aad5f395181984995bdaa2cbe9f357d2767c88f2ac5f4c28f513b3023144ea9135ad2e7d0f854efa209dafe3fe00314bb7f0742174d7fc3769c1
+Size (nspluginwrapper-1.4.4-suse121-generic.i386.tar.gz) = 179439 bytes
+SHA1 (nspluginwrapper-1.4.4-suse121-generic.x86_64.tar.gz) = a8286f351979746b8887421ad04e32759c60331a
+RMD160 (nspluginwrapper-1.4.4-suse121-generic.x86_64.tar.gz) = a5fc4473a462f91f838f8b34faa2bb7bdcab9494
+SHA512 (nspluginwrapper-1.4.4-suse121-generic.x86_64.tar.gz) = a95295cf3a63cf982e8b04794c5010554d5ea1ab741ae5b3e89acc7c014d3deafe152ffca1abed966052b1c424a94e8440c9371529dd870a9efb1fd1caad9735
+Size (nspluginwrapper-1.4.4-suse121-generic.x86_64.tar.gz) = 161846 bytes
+SHA1 (nspluginwrapper-1.4.4.tar.gz) = ffb271a741215874808d4a77d0a0dd65588a8440
+RMD160 (nspluginwrapper-1.4.4.tar.gz) = 6acd93653aa8466e1e3703c2b794f32691c10d12
+SHA512 (nspluginwrapper-1.4.4.tar.gz) = 41126d98284cae6d25d23233b08ccca0dea841d457d4e41210282c6ab4c0fbf020f2ab4173ce39db8a47a1db20840bcc856f9c7309aa2e6ef2a777e3f2ebf503
+Size (nspluginwrapper-1.4.4.tar.gz) = 412513 bytes
SHA1 (patch-aa) = 28f9e18e519337852cb47d04ed0c1cea76b3416d
SHA1 (patch-ab) = 20dc1b6ff4036a0946dd469860eb9b6c129fdb7a
-SHA1 (patch-ac) = b42a1241abcbfc9344c810797785222cd79681ac
-SHA1 (patch-src_npw-player.c) = 14828d0644ce3823b89b373b36afdf29f9a563a1
+SHA1 (patch-ac) = 87cb838f6b203947d9efc4350313e410d06d486e
+SHA1 (patch-src_npw-viewer.c) = eb8855ae6d1015eb7627ada5c39af5e0d80f0e75
diff --git a/www/nspluginwrapper/patches/patch-Makefile b/www/nspluginwrapper/patches/patch-Makefile
deleted file mode 100644
index 25f91ca011c..00000000000
--- a/www/nspluginwrapper/patches/patch-Makefile
+++ /dev/null
@@ -1,16 +0,0 @@
-$NetBSD: patch-Makefile,v 1.1 2013/10/12 12:39:15 wiz Exp $
-
-Link against libraries whose functions are used, don't depend on
-them being pulled in by the linker.
-
---- Makefile.orig 2009-01-02 08:54:10.000000000 +0000
-+++ Makefile
-@@ -148,7 +148,7 @@ npplayer_SOURCES = npw-player.c debug.c
- npplayer_OBJECTS = $(npplayer_SOURCES:%.c=npplayer-%.o)
- npplayer_CFLAGS = $(GTK_CFLAGS) $(MOZILLA_CFLAGS) $(CURL_CFLAGS) $(X_CFLAGS)
- npplayer_LDFLAGS = $(GTK_LDFLAGS) $(CURL_LDFLAGS) $(X_LDFLAGS)
--npplayer_LDFLAGS += -lgthread-2.0 $(libpthread_LDFLAGS) $(libsocket_LDFLAGS)
-+npplayer_LDFLAGS += -lgthread-2.0 -lgmodule-2.0 $(libpthread_LDFLAGS) $(libsocket_LDFLAGS)
-
- libxpcom_LIBRARY = libxpcom.so
- libxpcom_RAWSRCS = libxpcom.c debug.c
diff --git a/www/nspluginwrapper/patches/patch-ac b/www/nspluginwrapper/patches/patch-ac
index 53f554fd4f9..6fa164b5cc1 100644
--- a/www/nspluginwrapper/patches/patch-ac
+++ b/www/nspluginwrapper/patches/patch-ac
@@ -1,13 +1,13 @@
-$NetBSD: patch-ac,v 1.4 2012/05/03 06:09:55 wiz Exp $
+$NetBSD: patch-ac,v 1.5 2015/10/24 06:30:40 tsutsui Exp $
--- src/npw-viewer.sh.orig 2008-12-14 12:24:19.000000000 +0100
-+++ src/npw-viewer.sh 2011-01-19 12:20:26.000000000 +0100
-@@ -40,6 +40,13 @@
- ;;
- esac
++++ src/npw-viewer.sh
+@@ -83,6 +83,13 @@
+ NPW_USE_VALGRIND=${NPW_USE_VALGRIND:-no}
+ can_use_valgrind="no"
+case $OS in
-+FreeBSD|NetBSD)
++freebsd|netbsd)
+ # preset LD_PRELOAD is most likely for the native emul
+ unset LD_PRELOAD
+ ;;
diff --git a/www/nspluginwrapper/patches/patch-src_npw-player.c b/www/nspluginwrapper/patches/patch-src_npw-player.c
deleted file mode 100644
index 64a2aaa434d..00000000000
--- a/www/nspluginwrapper/patches/patch-src_npw-player.c
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-src_npw-player.c,v 1.1 2012/05/03 06:09:55 wiz Exp $
-
-Adapt for glib-2.32.
-
---- src/npw-player.c.orig 2009-01-02 08:54:10.000000000 +0000
-+++ src/npw-player.c
-@@ -21,8 +21,6 @@
- #include "sysdeps.h"
- #include <unistd.h>
- #include <glib.h>
--#include <glib/gstdio.h>
--#include <glib/gthread.h>
- #include <gtk/gtk.h>
- #include <gdk/gdkx.h>
- #include <gdk/gdkkeysyms.h>
diff --git a/www/nspluginwrapper/patches/patch-src_npw-viewer.c b/www/nspluginwrapper/patches/patch-src_npw-viewer.c
new file mode 100644
index 00000000000..6940c1395b3
--- /dev/null
+++ b/www/nspluginwrapper/patches/patch-src_npw-viewer.c
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_npw-viewer.c,v 1.1 2015/10/24 06:30:40 tsutsui Exp $
+
+Disable use_cache which seems to cause weird behavior.
+
+--- src/npw-viewer.c.orig 2011-07-01 03:18:57.000000000 +0000
++++ src/npw-viewer.c
+@@ -56,7 +56,11 @@
+ #define USE_XEMBED_HACK 1
+
+ // Define to use NPIdentifier cache
++#if defined(BUILD_GENERIC)
++#define USE_NPIDENTIFIER_CACHE 0
++#else
+ #define USE_NPIDENTIFIER_CACHE 1
++#endif
+ #define NPIDENTIFIER_CACHE_SIZE 256
+
+ // RPC global connections