[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / www / nspluginwrapper

File: [cvs.NetBSD.org] / pkgsrc / www / nspluginwrapper / Makefile (download)

Revision 1.37, Wed Feb 6 23:24:02 2013 UTC (6 years, 2 months ago) by jperkin
Branch: MAIN
Changes since 1.36: +2 -2 lines

PKGREVISION bumps for the security/openssl 1.0.1d update.

# $NetBSD: Makefile,v 1.37 2013/02/06 23:24:02 jperkin Exp $
#

DISTNAME=	nspluginwrapper-1.2.2
PKGREVISION=	18
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

MAINTAINER=	abs@NetBSD.org
HOMEPAGE=	http://gwenole.beauchesne.info/projects/nspluginwrapper/
COMMENT=	Use Netscape compatible plugins from other platforms
LICENSE=	gnu-gpl-v2

EMUL_PLATFORMS=		linux-i386
EMUL_MODULES.linux=	base gtk2 x11
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
PLUGIN_INSTDIR=		${PREFIX}/${PLUGIN_SUBDIR}
PLUGIN_SRCDIR=		${WRKDIR}/usr/${PLUGIN_SUBDIR}

LDFLAGS.DragonFly=	-lgmodule-2.0

SUBST_CLASSES+=		npviewer
SUBST_STAGE.npviewer=	post-build
SUBST_FILES.npviewer=	${PLUGIN_SRCDIR}/npviewer
SUBST_SED.npviewer=	-e "s|/usr/|${PREFIX}/|g"

INSTALLATION_DIRS=	${PLUGIN_INSTDIR}

post-install:
	${INSTALL_LIB} ${PLUGIN_SRCDIR}/libxpcom.so ${DESTDIR}${PLUGIN_INSTDIR}
	${INSTALL_SCRIPT} ${PLUGIN_SRCDIR}/npviewer ${DESTDIR}${PLUGIN_INSTDIR}
	${INSTALL_LIB} ${PLUGIN_SRCDIR}/npviewer.bin ${DESTDIR}${PLUGIN_INSTDIR}

.include "../../devel/glib2/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"