blob: d93635e69eebfe2aefe61c2aac76c5e348d56344 (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Ports collection makefile for: swfdec-plugin
# Date created: Jun 14, 2005
# Whom: anholt
#
# $FreeBSD$
#
PORTNAME= swfdec-plugin
PORTVERSION= 0.3.5
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://www.schleef.org/swfdec/download/
DISTNAME= swfdec-${PORTVERSION}
MAINTAINER= anholt@FreeBSD.org
COMMENT= Flash rendering plugin
LIB_DEPENDS= swfdec-0.3.0:${PORTSDIR}/graphics/swfdec
.if defined(WITH_MOZILLA) && ${WITH_MOZILLA}=="firefox"
BUILD_DEPENDS= ${X11BASE}/libdata/pkgconfig/firefox-plugin.pc:${PORTSDIR}/www/firefox
RUN_DEPENDS= ${X11BASE}/libdata/pkgconfig/firefox-plugin.pc:${PORTSDIR}/www/firefox
.else
BUILD_DEPENDS= ${X11BASE}/libdata/pkgconfig/mozilla-plugin${HEADERS_SUFX}.pc:${PORTSDIR}/www/mozilla${HEADERS_SUFX}
RUN_DEPENDS= ${X11BASE}/libdata/pkgconfig/mozilla-plugin${HEADERS_SUFX}.pc:${PORTSDIR}/www/mozilla${HEADERS_SUFX}
.endif
BROKEN= Does not compile
USE_REINPLACE= yes
USE_X_PREFIX= yes
USE_SDL= sdl
USE_GNOME= gnomehack gtk20 libartlgpl2
USE_GSTREAMER= gconf
USE_GETOPT_LONG= yes
USE_REINPLACE= yes
USE_AUTOTOOLS= libtool:15
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -I${LOCALBASE}/include/nspr" \
LDFLAGS="-L${LOCALBASE}/lib"
.if defined(WITH_MOZILLA) && ${WITH_MOZILLA}=="firefox"
CONFIGURE_ENV+= MOZILLA_CONFIG="${X11BASE}/bin/firefox-config"
.else
CONFIGURE_ENV+= MOZILLA_CONFIG="${X11BASE}/lib/mozilla/mozilla-config"
.endif
INSTALLS_SHLIB= yes
INSTALL_WRKSRC= ${WRKSRC}/plugin
PLIST_SUB= VERSION=${PORTVERSION:R}
post-patch:
@${REINPLACE_CMD} -e "s,int16_t,__int16_t," ${WRKSRC}/libswfdec/swfdec_shape.c
@${REINPLACE_CMD} -e "s,mozilla/plugins/,browser_plugins/," ${WRKSRC}/plugin/Makefile.in
.include <bsd.port.mk>
|