summaryrefslogtreecommitdiff
path: root/www/nspluginwrapper/Makefile
blob: 5f1d6afe168b29d89b0c1f27e5c2af4e98e5f1ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# $NetBSD: Makefile,v 1.4 2007/04/19 16:11:34 xtraeme Exp $
#

DISTNAME=       nspluginwrapper-0.9.91.3
CATEGORIES=     www
MASTER_SITES=   http://gwenole.beauchesne.info/projects/nspluginwrapper/files/
EXTRACT_SUFX=   .tar.bz2
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} ${RPMFILE}

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

HAS_CONFIGURE=	yes
USE_LANGUAGES=	c c++
USE_TOOLS+=	gmake pkg-config
CONFIGURE_ARGS+= --prefix=${PREFIX} --x11=${X11BASE}

RPMFILE=	${DISTNAME:S:-:-i386-:}-1.x86_64.rpm
BUILD_DEPENDS+=	rpm2pkg>=1.2:../../pkgtools/rpm2pkg
RPM2PKG=	${PREFIX}/sbin/rpm2pkg
RPM2PKGARGS=	${DISTDIR}/${DIST_SUBDIR}/${RPMFILE}
LINUXLIBDIR=	${PREFIX}/lib/nspluginwrapper/i386/linux

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

post-extract:
	${RPM2PKG} -d ${WRKDIR} -s 4 ${RPM2PKGARGS}

post-install:
	${MKDIR} ${LINUXLIBDIR}
	${INSTALL_SCRIPT} ${WRKDIR}/i386/linux/libxpcom.so ${LINUXLIBDIR}
	${INSTALL_SCRIPT} ${WRKDIR}/i386/linux/npviewer ${LINUXLIBDIR}
	${INSTALL_SCRIPT} ${WRKDIR}/i386/linux/npviewer.bin ${LINUXLIBDIR}

ONLY_FOR_PLATFORM=	*-*-i386 *-*-x86_64

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