aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/Makefile1
-rw-r--r--www/nspluginwrapper-devel/Makefile37
-rw-r--r--www/nspluginwrapper-devel/distinfo12
-rw-r--r--www/nspluginwrapper-devel/files/patch-configure9
-rw-r--r--www/nspluginwrapper-devel/pkg-plist12
-rw-r--r--www/nspluginwrapper/Makefile2
6 files changed, 39 insertions, 34 deletions
diff --git a/www/Makefile b/www/Makefile
index 46118b44d812..57a89b8aa445 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -578,6 +578,7 @@
SUBDIR += npc
SUBDIR += nscache
SUBDIR += nspluginwrapper
+ SUBDIR += nspluginwrapper-devel
SUBDIR += ocaml-net
SUBDIR += ocsigen
SUBDIR += ojs2
diff --git a/www/nspluginwrapper-devel/Makefile b/www/nspluginwrapper-devel/Makefile
index 2cc5a6b047f6..0073b17b24bd 100644
--- a/www/nspluginwrapper-devel/Makefile
+++ b/www/nspluginwrapper-devel/Makefile
@@ -6,19 +6,22 @@
#
PORTNAME= nspluginwrapper
-PORTVERSION= 1.2.2
-PORTREVISION= 4
+PORTVERSION= 1.3.0
CATEGORIES= www linux emulators
-MASTER_SITES= http://gwenole.beauchesne.info/projects/nspluginwrapper/files/
-DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${RPMFILE}
+MASTER_SITES= http://gwenole.beauchesne.info/projects/nspluginwrapper/files/:hostsrc \
+ LOCAL/jkim:targetbin
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:hostsrc \
+ ${RPMFILE}:targetbin
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
-MAINTAINER= malus.x@gmail.com
-COMMENT= A compatibility plugin for Netscape 4 (NPAPI) plugins
+MAINTAINER= jkim@FreeBSD.org
+COMMENT= A compatibility plugin for Mozilla NPAPI (development version)
EXTRACT_DEPENDS= rpm2cpio:${PORTSDIR}/archivers/rpm
LIB_DEPENDS= curl.5:${PORTSDIR}/ftp/curl
+CONFLICTS= nspluginwrapper-1.2.*
+
RPMFILE= ${PORTNAME}-i386-${PORTVERSION}-1.x86_64.rpm
ONLY_FOR_ARCHS= i386 amd64
@@ -41,19 +44,27 @@ CONFIGURE_ARGS= --enable-generic --prefix=${PREFIX} --target-os=linux \
LIBDIR= ${PREFIX}/lib/${PORTNAME}
-PLIST_SUB= LIBDIR="${LIBDIR:C/^${PREFIX}\///}" ARCH="${ARCH}"
+PLIST_SUB= LIBDIR="${LIBDIR:C/^${PREFIX}\///}" HOST_ARCH="${HOST_ARCH}"
+
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "amd64"
+HOST_ARCH= x86_64
+.else
+HOST_ARCH= ${ARCH}
+.endif
# We must manually extract, modify, and install the Linux version of npviewer.
post-extract:
cd ${WRKSRC} && rpm2cpio ${DISTDIR}/${RPMFILE} | ${CPIO} -id
${REINPLACE_CMD} -e 's|/usr|${PREFIX}|' \
- ${WRKSRC}/usr/lib/nspluginwrapper/i386/linux/npviewer
- ${RM} ${WRKSRC}/usr/lib/nspluginwrapper/i386/linux/npviewer.bak
+ ${WRKSRC}/usr/lib/nspluginwrapper/i386/linux/npviewer
+ @${RM} ${WRKSRC}/usr/lib/nspluginwrapper/i386/linux/npviewer.bak
post-patch:
- @${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},g' \
- ${WRKSRC}/src/npw-config.c
- ${RM} ${WRKSRC}/usr/lib/nspluginwrapper/i386/linux/npviewer.orig
+ ${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},g' \
+ ${WRKSRC}/src/npw-config.c
+ @${RM} ${WRKSRC}/usr/lib/nspluginwrapper/i386/linux/npviewer.orig
post-install:
${MKDIR} ${LIBDIR}/i386/linux
@@ -61,4 +72,4 @@ post-install:
${LIBDIR}/i386/linux/
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/www/nspluginwrapper-devel/distinfo b/www/nspluginwrapper-devel/distinfo
index 07ce5a70e165..cafebb0aa712 100644
--- a/www/nspluginwrapper-devel/distinfo
+++ b/www/nspluginwrapper-devel/distinfo
@@ -1,6 +1,6 @@
-MD5 (nspluginwrapper-1.2.2.tar.bz2) = 197e3439aa7136addb88972e48c2fe4a
-SHA256 (nspluginwrapper-1.2.2.tar.bz2) = 4e6cbb7aeda1c9f0d6e5a17e729160b5d3f3e7048f90353238806289752175c3
-SIZE (nspluginwrapper-1.2.2.tar.bz2) = 327947
-MD5 (nspluginwrapper-i386-1.2.2-1.x86_64.rpm) = a7c7d46d0ae887a0fab6cd14348c36aa
-SHA256 (nspluginwrapper-i386-1.2.2-1.x86_64.rpm) = c9572430351b716ca1c63170150981cfc8546f0cb7e03c7a75f1d0687db99e6f
-SIZE (nspluginwrapper-i386-1.2.2-1.x86_64.rpm) = 69425
+MD5 (nspluginwrapper-1.3.0.tar.bz2) = 188f77bd3427c131ccba4bfdb25892a9
+SHA256 (nspluginwrapper-1.3.0.tar.bz2) = b8900bd5f0bd950f95b963e5c8f5e20d7d15cc70e777b6058289687ad968b21c
+SIZE (nspluginwrapper-1.3.0.tar.bz2) = 336049
+MD5 (nspluginwrapper-i386-1.3.0-1.x86_64.rpm) = 5363d7c27bbd967f2609c3bcbe70bc61
+SHA256 (nspluginwrapper-i386-1.3.0-1.x86_64.rpm) = d8868156e9906badc83aeb0971768d3bbc13807e2deefc4c10da3b231c3fab5c
+SIZE (nspluginwrapper-i386-1.3.0-1.x86_64.rpm) = 73324
diff --git a/www/nspluginwrapper-devel/files/patch-configure b/www/nspluginwrapper-devel/files/patch-configure
index 88e6d7733b5d..4be5021e557c 100644
--- a/www/nspluginwrapper-devel/files/patch-configure
+++ b/www/nspluginwrapper-devel/files/patch-configure
@@ -16,12 +16,3 @@
TMPC="${TMPDIR1}/npw-conf-${RANDOM}-$$-${RANDOM}.c"
TMPO="${TMPDIR1}/npw-conf-${RANDOM}-$$-${RANDOM}.o"
-@@ -728,7 +723,7 @@
- elif test "$host_cpu" = "x86_64" ; then
- echo "ARCH=x86_64" >> $config_mak
- echo "#define HOST_X86_64 1" >> $config_h
-- echo "#define HOST_ARCH \"x86_64\"" >> $config_h
-+ echo "#define HOST_ARCH \"amd64\"" >> $config_h
- elif test "$host_cpu" = "ppc" ; then
- echo "ARCH=ppc" >> $config_mak
- echo "#define HOST_PPC 1" >> $config_h
diff --git a/www/nspluginwrapper-devel/pkg-plist b/www/nspluginwrapper-devel/pkg-plist
index 51cac4bf80d9..c8d8f831012c 100644
--- a/www/nspluginwrapper-devel/pkg-plist
+++ b/www/nspluginwrapper-devel/pkg-plist
@@ -1,16 +1,16 @@
bin/nspluginplayer
bin/nspluginwrapper
-%%LIBDIR%%/%%ARCH%%/freebsd/npconfig
-%%LIBDIR%%/%%ARCH%%/freebsd/npplayer
-%%LIBDIR%%/%%ARCH%%/freebsd/npwrapper.so
+%%LIBDIR%%/%%HOST_ARCH%%/freebsd/npconfig
+%%LIBDIR%%/%%HOST_ARCH%%/freebsd/npplayer
+%%LIBDIR%%/%%HOST_ARCH%%/freebsd/npwrapper.so
%%LIBDIR%%/i386/linux/libnoxshm.so
%%LIBDIR%%/i386/linux/libxpcom.so
%%LIBDIR%%/i386/linux/npviewer
%%LIBDIR%%/i386/linux/npviewer.bin
-%%LIBDIR%%/noarch/npviewer
+%%LIBDIR%%/noarch/npviewer.sh
@dirrm %%LIBDIR%%/noarch
@dirrm %%LIBDIR%%/i386/linux
-@dirrm %%LIBDIR%%/%%ARCH%%/freebsd
+@dirrm %%LIBDIR%%/%%HOST_ARCH%%/freebsd
@dirrm %%LIBDIR%%/i386
-@dirrmtry %%LIBDIR%%/%%ARCH%%
+@dirrmtry %%LIBDIR%%/%%HOST_ARCH%%
@dirrm %%LIBDIR%%
diff --git a/www/nspluginwrapper/Makefile b/www/nspluginwrapper/Makefile
index 2cc5a6b047f6..c49c7414edc2 100644
--- a/www/nspluginwrapper/Makefile
+++ b/www/nspluginwrapper/Makefile
@@ -19,6 +19,8 @@ COMMENT= A compatibility plugin for Netscape 4 (NPAPI) plugins
EXTRACT_DEPENDS= rpm2cpio:${PORTSDIR}/archivers/rpm
LIB_DEPENDS= curl.5:${PORTSDIR}/ftp/curl
+CONFLICTS= nspluginwrapper-1.3.*
+
RPMFILE= ${PORTNAME}-i386-${PORTVERSION}-1.x86_64.rpm
ONLY_FOR_ARCHS= i386 amd64