Lines 6-24
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= nspluginwrapper |
8 |
PORTNAME= nspluginwrapper |
9 |
PORTVERSION= 1.2.2 |
9 |
PORTVERSION= 1.3.0 |
10 |
PORTREVISION= 4 |
|
|
11 |
CATEGORIES= www linux emulators |
10 |
CATEGORIES= www linux emulators |
12 |
MASTER_SITES= http://gwenole.beauchesne.info/projects/nspluginwrapper/files/ |
11 |
MASTER_SITES= http://gwenole.beauchesne.info/projects/nspluginwrapper/files/:hostsrc \ |
13 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${RPMFILE} |
12 |
LOCAL/jkim:targetbin |
|
|
13 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:hostsrc \ |
14 |
${RPMFILE}:targetbin |
14 |
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} |
15 |
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} |
15 |
|
16 |
|
16 |
MAINTAINER= malus.x@gmail.com |
17 |
MAINTAINER= jkim@FreeBSD.org |
17 |
COMMENT= A compatibility plugin for Netscape 4 (NPAPI) plugins |
18 |
COMMENT= A compatibility plugin for Mozilla NPAPI (development version) |
18 |
|
19 |
|
19 |
EXTRACT_DEPENDS= rpm2cpio:${PORTSDIR}/archivers/rpm |
20 |
EXTRACT_DEPENDS= rpm2cpio:${PORTSDIR}/archivers/rpm |
20 |
LIB_DEPENDS= curl.5:${PORTSDIR}/ftp/curl |
21 |
LIB_DEPENDS= curl.5:${PORTSDIR}/ftp/curl |
21 |
|
22 |
|
|
|
23 |
CONFLICTS= nspluginwrapper-1.2.* |
24 |
|
22 |
RPMFILE= ${PORTNAME}-i386-${PORTVERSION}-1.x86_64.rpm |
25 |
RPMFILE= ${PORTNAME}-i386-${PORTVERSION}-1.x86_64.rpm |
23 |
|
26 |
|
24 |
ONLY_FOR_ARCHS= i386 amd64 |
27 |
ONLY_FOR_ARCHS= i386 amd64 |
Lines 41-59
Link Here
|
41 |
|
44 |
|
42 |
LIBDIR= ${PREFIX}/lib/${PORTNAME} |
45 |
LIBDIR= ${PREFIX}/lib/${PORTNAME} |
43 |
|
46 |
|
44 |
PLIST_SUB= LIBDIR="${LIBDIR:C/^${PREFIX}\///}" ARCH="${ARCH}" |
47 |
PLIST_SUB= LIBDIR="${LIBDIR:C/^${PREFIX}\///}" HOST_ARCH="${HOST_ARCH}" |
|
|
48 |
|
49 |
.include <bsd.port.pre.mk> |
50 |
|
51 |
.if ${ARCH} == "amd64" |
52 |
HOST_ARCH= x86_64 |
53 |
.else |
54 |
HOST_ARCH= ${ARCH} |
55 |
.endif |
45 |
|
56 |
|
46 |
# We must manually extract, modify, and install the Linux version of npviewer. |
57 |
# We must manually extract, modify, and install the Linux version of npviewer. |
47 |
post-extract: |
58 |
post-extract: |
48 |
cd ${WRKSRC} && rpm2cpio ${DISTDIR}/${RPMFILE} | ${CPIO} -id |
59 |
cd ${WRKSRC} && rpm2cpio ${DISTDIR}/${RPMFILE} | ${CPIO} -id |
49 |
${REINPLACE_CMD} -e 's|/usr|${PREFIX}|' \ |
60 |
${REINPLACE_CMD} -e 's|/usr|${PREFIX}|' \ |
50 |
${WRKSRC}/usr/lib/nspluginwrapper/i386/linux/npviewer |
61 |
${WRKSRC}/usr/lib/nspluginwrapper/i386/linux/npviewer |
51 |
${RM} ${WRKSRC}/usr/lib/nspluginwrapper/i386/linux/npviewer.bak |
62 |
@${RM} ${WRKSRC}/usr/lib/nspluginwrapper/i386/linux/npviewer.bak |
52 |
|
63 |
|
53 |
post-patch: |
64 |
post-patch: |
54 |
@${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},g' \ |
65 |
${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},g' \ |
55 |
${WRKSRC}/src/npw-config.c |
66 |
${WRKSRC}/src/npw-config.c |
56 |
${RM} ${WRKSRC}/usr/lib/nspluginwrapper/i386/linux/npviewer.orig |
67 |
@${RM} ${WRKSRC}/usr/lib/nspluginwrapper/i386/linux/npviewer.orig |
57 |
|
68 |
|
58 |
post-install: |
69 |
post-install: |
59 |
${MKDIR} ${LIBDIR}/i386/linux |
70 |
${MKDIR} ${LIBDIR}/i386/linux |
Lines 61-64
Link Here
|
61 |
${LIBDIR}/i386/linux/ |
72 |
${LIBDIR}/i386/linux/ |
62 |
@${CAT} ${PKGMESSAGE} |
73 |
@${CAT} ${PKGMESSAGE} |
63 |
|
74 |
|
64 |
.include <bsd.port.mk> |
75 |
.include <bsd.port.post.mk> |