2008-11-18 09:33:51 +01:00
|
|
|
# $NetBSD: Makefile,v 1.10 2008/11/18 08:33:51 abs Exp $
|
2007-03-22 23:33:45 +01:00
|
|
|
#
|
|
|
|
|
2008-07-06 00:27:51 +02:00
|
|
|
DISTNAME= nspluginwrapper-1.0.0
|
2008-11-18 09:33:51 +01:00
|
|
|
PKGREVISION= 1
|
2007-03-22 23:33:45 +01:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= http://gwenole.beauchesne.info/projects/nspluginwrapper/files/
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2007-07-31 19:53:56 +02:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME:S/-/-i386-/}-1.x86_64.rpm
|
2007-03-22 23:33:45 +01:00
|
|
|
|
|
|
|
MAINTAINER= abs@NetBSD.org
|
|
|
|
HOMEPAGE= http://gwenole.beauchesne.info/projects/nspluginwrapper/
|
|
|
|
COMMENT= Use Netscape compatible plugins from other platforms
|
|
|
|
|
2007-07-31 19:59:28 +02:00
|
|
|
EMUL_PLATFORMS= linux-i386
|
|
|
|
EMUL_MODULES.linux= base gtk2 x11
|
|
|
|
NOT_FOR_PLATFORM= Linux-*-*
|
|
|
|
|
2007-07-31 19:53:56 +02:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
USE_LANGUAGES= c c++
|
|
|
|
USE_TOOLS+= gmake pkg-config
|
2008-09-27 00:52:17 +02:00
|
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX}
|
|
|
|
CONFIGURE_ARGS+= --with-x11-prefix=${X11BASE}
|
2007-03-22 23:33:45 +01:00
|
|
|
|
2007-07-31 19:53:56 +02:00
|
|
|
PLUGIN_SUBDIR= lib/nspluginwrapper/i386/linux
|
|
|
|
PLUGIN_INSTDIR= ${PREFIX}/${PLUGIN_SUBDIR}
|
|
|
|
PLUGIN_SRCDIR= ${WRKDIR}/usr/${PLUGIN_SUBDIR}
|
2007-03-22 23:33:45 +01:00
|
|
|
|
|
|
|
SUBST_CLASSES+= npviewer
|
|
|
|
SUBST_STAGE.npviewer= post-build
|
2007-07-31 19:53:56 +02:00
|
|
|
SUBST_FILES.npviewer= ${PLUGIN_SRCDIR}/npviewer
|
2007-03-22 23:33:45 +01:00
|
|
|
SUBST_SED.npviewer= -e "s|/usr/|${PREFIX}/|g"
|
|
|
|
|
|
|
|
post-install:
|
2007-07-31 19:53:56 +02:00
|
|
|
${INSTALL_LIB_DIR} ${PLUGIN_INSTDIR}
|
|
|
|
${INSTALL_LIB} ${PLUGIN_SRCDIR}/libxpcom.so ${PLUGIN_INSTDIR}
|
|
|
|
${INSTALL_SCRIPT} ${PLUGIN_SRCDIR}/npviewer ${PLUGIN_INSTDIR}
|
|
|
|
${INSTALL_LIB} ${PLUGIN_SRCDIR}/npviewer.bin ${PLUGIN_INSTDIR}
|
2007-03-22 23:33:45 +01:00
|
|
|
|
|
|
|
.include "../../devel/glib2/buildlink3.mk"
|
|
|
|
.include "../../x11/libX11/buildlink3.mk"
|
|
|
|
.include "../../x11/libXt/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|