summaryrefslogtreecommitdiffstats
path: root/multimedia/totem-pl-parser/Makefile
blob: 88b59b87f885209de8c8aa4fc0ecc64c2ee53b9d (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 18610 2013-06-30 16:33:05Z 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=    libgmime-2.6.so:${PORTSDIR}/mail/gmime26 \
        libsoup-gnome-2.4.so:${PORTSDIR}/devel/libsoup-gnome

NO_STAGE=   yes
USE_XZ=     yes
USES=       gettext gmake pathfix
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+=   libquvi.so:${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>