1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00

A compatibility plugin for Mozilla NPAPI (development version).

Note: The Linux/i386 RPM was built by me on Fedora 10 via VirtualBox
because the author did not provide them.  For more information about
the development branch, please read:

http://gwenole.beauchesne.info/en/blog/2009/01/02/nspluginwrapper_1.3.0

PR:		ports/141179
This commit is contained in:
Jung-uk Kim 2009-12-07 18:02:19 +00:00
parent 7930becaf6
commit c0ef7b3caa
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=245345
6 changed files with 39 additions and 34 deletions

View File

@ -578,6 +578,7 @@
SUBDIR += npc
SUBDIR += nscache
SUBDIR += nspluginwrapper
SUBDIR += nspluginwrapper-devel
SUBDIR += ocaml-net
SUBDIR += ocsigen
SUBDIR += ojs2

View File

@ -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>

View File

@ -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

View File

@ -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

View File

@ -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%%

View File

@ -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