summaryrefslogtreecommitdiffstats
path: root/multimedia/totem-pl-parser/Makefile
blob: dcc39891b56ea3ee79ab3c529cac0306b21c5e28 (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
# Created by: Michael Johnson <ahze@FreeBSD.org>
# $FreeBSD$
#   $MCom: ports/trunk/multimedia/totem-pl-parser/Makefile 17268 2013-04-01 05:13:11Z marcus $

PORTNAME=   totem-pl-parser
PORTVERSION=    3.4.5
CATEGORIES= multimedia gnome
MASTER_SITES=   GNOME
DIST_SUBDIR=    gnome2

MAINTAINER= gnome@FreeBSD.org
COMMENT=    GObject-based library to parse a host of playlist formats

LIB_DEPENDS=    gmime-2.6:${PORTSDIR}/mail/gmime26 \
        soup-gnome-2.4:${PORTSDIR}/devel/libsoup-gnome

USE_XZ=     yes
USE_GMAKE=  yes
USES=       pathfix gettext
USE_GNOME=  gnomeprefix glib20 libxml2 intlhack ltverhack gnomehier \
        introspection:build
USE_LDCONFIG=   yes
USE_AUTOTOOLS=  libtool
CONFIGURE_ARGS= --enable-libarchive
CONFIGURE_ENV=  ARCHIVE_CFLAGS="-I/usr/include" \
        ARCHIVE_LIBS="-L/usr/lib -larchive"
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

OPTIONS_DEFINE= QUVI
OPTIONS_DEFAULT=QUVI
QUVI_DESC=  Flash media stream URL support

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MQUVI}
LIB_DEPENDS+=   quvi:${PORTSDIR}/multimedia/libquvi
CONFIGURE_ARGS+=--enable-quvi
.else
CONFIGURE_ARGS+=--enable-quvi=no
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|pkg_modules libarchive"|pkg_modules"|g' \
        ${WRKSRC}/configure

.include <bsd.port.mk>