summaryrefslogtreecommitdiff
path: root/www/nspluginwrapper/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/nspluginwrapper/Makefile')
-rw-r--r--www/nspluginwrapper/Makefile36
1 files changed, 24 insertions, 12 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}