summaryrefslogtreecommitdiffstats
path: root/multimedia/gstreamer/Makefile
blob: 99e6c1b63e1ce35ab3e106056a5941fed713c30e (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
73
# New ports collection makefile for:    gstreamer
# Date created:     Tue Jul 9 20:24:02 UTC 2002
# Whom:         Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD: ports/multimedia/gstreamer/Makefile,v 1.7 2002/11/28 00:09:47 lioux Exp $
#

PORTNAME=   gstreamer
PORTVERSION=    0.5.2
CATEGORIES= multimedia
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= lioux@FreeBSD.org

BUILD_DEPENDS=  pkg-config:${PORTSDIR}/devel/pkgconfig
LIB_DEPENDS=    glib-2.0.200:${PORTSDIR}/devel/glib20 \
        popt.0:${PORTSDIR}/devel/popt \
        xml2.5:${PORTSDIR}/textproc/libxml2

USE_X_PREFIX=   yes
USE_BISON=  yes
USE_BZIP2=  yes
USE_GMAKE=  yes
USE_LIBTOOL=    yes
USE_REINPLACE=  yes
USE_GNOMENG=    yes
USE_GNOME=  gnomehack \
        gnomeprefix
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-tests \
        --disable-failing-tests
CONFIGURE_ENV=  PKG_CONFIG=${PKG_CONFIG} \
        CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
        LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
CONFIGURE_TARGET=
INSTALLS_SHLIB= yes

MAN1=   gst-complete.1 gst-compprep.1 gst-inspect.1 gst-launch.1 \
    gst-feedback.1 gst-md5sum.1 \
    gst-register.1 gst-xmllaunch.1

PKG_CONFIG?="${LOCALBASE}/bin/pkg-config"

.include <bsd.port.pre.mk>

.if exists(${X11BASE}/libdata/pkgconfig/libgnomeui-2.0.pc)
LIB_DEPENDS+=   gnomeui-2.200:${PORTSDIR}/x11-toolkits/libgnomeui
.endif

post-patch:
# use proper dir
# remove version number from include dir name
    @${FIND} ${WRKSRC} -type f -name Makefile.in | \
        ${XARGS} -n 10 ${REINPLACE_CMD} -E \
        's|^(lib[[:alpha:]]+includedir.+)-@VERSION@|\1|'
# remove version number from include dir name AND
# help dependent ports find popt.h
    @${REINPLACE_CMD} -E -e \
        's|-@VERSION@||; \
        s|(-I\$${includedir})|\1 -I${LOCALBASE}/include|' \
        ${WRKSRC}/gstreamer.pc.in

post-configure:
# remove version number postfix from library names
    @${REINPLACE_CMD} -E -e 's|-release ${PORTVERSION}||' \
        ${WRKSRC}/gst/Makefile ${WRKSRC}/libs/gst/control/Makefile

post-install:
# register plugins
    @${PREFIX}/bin/gst-register 2>/dev/null

.include <bsd.port.post.mk>