aboutsummaryrefslogtreecommitdiffstats
path: root/www/gecko-mediaplayer/Makefile
blob: 46b9d96785f0f2e0912e7631b27de8dfc182539c (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Created by: Alexander Logvinov <ports@logvinov.com>
# $FreeBSD$

PORTNAME=   gecko-mediaplayer
PORTVERSION=    1.0.8
CATEGORIES= www multimedia gnome
MASTER_SITES=   GOOGLE_CODE

MAINTAINER= ports@FreeBSD.org
COMMENT=    Multimedia browser plugin for Gecko based browsers

LICENSE=    GPLv2

LIB_DEPENDS=    dbus-glib-1:${PORTSDIR}/devel/dbus-glib \
        nspr4:${PORTSDIR}/devel/nspr \
        curl:${PORTSDIR}/ftp/curl \
        gmlib:${PORTSDIR}/multimedia/gmtk
RUN_DEPENDS=    gnome-mplayer:${PORTSDIR}/multimedia/gnome-mplayer

OPTIONS_DEFINE= CACHE DOCS NLS
OPTIONS_DEFAULT=CACHE
CACHE_DESC= Enable caching of remote media to local storage

GNU_CONFIGURE=  yes
USES=       pkgconfig
USE_GNOME=  glib20
USE_GECKO=  libxul libxul19
USE_WEBPLUGINS= native

WEBPLUGINS_FILES=   ${PORTNAME}.so
.for p in dvx rm qt wmp
WEBPLUGINS_FILES+=  ${PORTNAME}-${p}.so
.endfor

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ARGS+=--with-plugin_dir="${WEBPLUGINS_DIR}"

PORTDOCS=   README COPYING AUTHORS ChangeLog INSTALL NEWS javascript.txt

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MCACHE}
CONFIGURE_ARGS+=    --enable-caching
.else
CONFIGURE_ARGS+=    --disable-caching
.endif

.if ${PORT_OPTIONS:MNLS}
USE_GETTEXT=    yes
PLIST_SUB=  NLS=""
.else
USE_GETTEXT=    build
PLIST_SUB=  NLS="@comment "
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|-ldl||' \
        ${WRKSRC}/configure \
        ${WRKSRC}/src/Makefile.in
.if empty(PORT_OPTIONS:MDOCS)
    @${REINPLACE_CMD} -e \
        's|install-gecko_mediaplayerdocDATA install-schemaDATA|install-schemaDATA|' \
        ${WRKSRC}/Makefile.in
.endif
.if empty(PORT_OPTIONS:MNLS)
    @${REINPLACE_CMD} -e 's/^ALL_LINGUAS=".*"/ALL_LINGUAS=""/' \
        ${WRKSRC}/configure
.endif

.include "${PORTSDIR}/www/firefox/Makefile.webplugins"
.include <bsd.port.mk>