blob: 68900dad02b4fd48dc3683519f992ae20b936f92 (
plain) (
blame)
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
|
# New ports collection makefile for: flashplugin-mozilla
# Date created: 25 October 2001
# Whom: Leland Wang <llwang@infor.org>
#
# $FreeBSD$
#
PORTNAME?= flashplugin-mozilla
PORTVERSION= 0.4.13
PORTREVISION= 3
CATEGORIES= www
MASTER_SITES= SF/gplflash
DISTNAME= gplflash-${PORTVERSION}
MAINTAINER= llwang@infor.org
COMMENT= A GPL standalone Flash (TM) plugin for Mozilla web browser
LIB_DEPENDS= flash.0:${PORTSDIR}/graphics/libflash
WRKSRC= ${WRKDIR}/${DISTNAME}/plugin
USE_XORG= xt x11 xext
USE_BZIP2= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-plugin-dir="${WEBPLUGINS_DIR}"
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -lXt"
CONFIGURE_WRKSRC= ${WRKDIR}/${DISTNAME}
USE_WEBPLUGINS= native
WEBPLUGINS_FILES=libnpflash.so
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/www/firefox/Makefile.webplugins"
post-patch:
@${REINPLACE_CMD} -e "s,-L../lib/.libs,-L${LOCALBASE}/lib," \
-e "s/libnpflash.so.0.0.0/libnpflash.so.0/" \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|stdint.h|inttypes.h|' ${WRKSRC}/npapi.h
@${REINPLACE_CMD} -e 's|echo aout|echo elf|' ${CONFIGURE_WRKSRC}/configure ${CONFIGURE_WRKSRC}/ltconfig
.include <bsd.port.post.mk>
|