summaryrefslogtreecommitdiffstats
path: root/multimedia/gstreamer1/Makefile
blob: 1195d7783b96bad7e7885bd63b131d1e5ed5b7c6 (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
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
# $FreeBSD$
#    $MCom: ports/multimedia/gstreamer1/Makefile,v 1.3 2012/10/15 16:15:02 kwm Exp $

PORTNAME=   gstreamer1
PORTVERSION=    1.0.3
CATEGORIES= multimedia
MASTER_SITES=   http://gstreamer.freedesktop.org/src/gstreamer/
DISTNAME=   ${PORTNAME:S/1//}-${PORTVERSION}

MAINTAINER= multimedia@FreeBSD.org
COMMENT=    Media applications framework

LICENSE=    LGPL20

BUILD_DEPENDS=  ${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex \
        gobject-introspection>=1.31.1:${PORTSDIR}/devel/gobject-introspection
RUN_DEPENDS=    ${LOCALBASE}/share/gir-1.0/GLib-2.0.gir:${PORTSDIR}/devel/gobject-introspection

CFLAGS:=    ${CFLAGS} -O2 -Wno-format
USE_BISON=  build
USE_XZ=     yes
USE_GMAKE=  yes
MAKE_JOBS_SAVE= yes
USE_GNOME=  gnomehack glib20 ltverhack:0 ltasneededhack
USE_PKGCONFIG=  build
USE_GETTEXT=    yes
USE_AUTOTOOLS=  libtool
CONFIGURE_ARGS= --disable-tests \
        --disable-examples \
        --disable-failing-tests \
        --disable-fatal-warnings \
        --disable-gtk-doc
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ENV=  ac_cv_func_register_printf_function="no" \
        FLEX_PATH="${LOCALBASE}/bin/flex"
PLIST_SUB=  VERSION="${GST10_VERSION}"
USE_LDCONFIG=   yes
GST10_VERSION=  1.0

MAN1=   gst-inspect-${GST10_VERSION}.1 gst-launch-${GST10_VERSION}.1 \
    gst-typefind-${GST10_VERSION}.1

OPTIONS_DEFINE= CHECK
CHECK_DESC= Support unit tests

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MCHECK}
LIB_DEPENDS+=   check:${PORTSDIR}/devel/libcheck
CONFIGURE_ARGS+=--enable-check
PLIST_SUB+= CHECK=""
.else
CONFIGURE_ARGS+=--disable-check
PLIST_SUB+= CHECK="@comment "
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|-Wmissing-include-dirs||g' \
        ${WRKSRC}/configure

.include <bsd.port.mk>