aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/gstreamer1/Makefile
blob: 66ec48497880dbba334a1b806cb5c8b00801d973 (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
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
# $FreeBSD$

PORTNAME=   gstreamer
PORTVERSION=    1.6.2
CATEGORIES= multimedia
MASTER_SITES=   http://gstreamer.freedesktop.org/src/gstreamer/
PKGNAMESUFFIX=  1

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

LICENSE=    LGPL20
LICENSE_FILE=   ${WRKSRC}/COPYING

PORTSCOUT=  limitw:1,even

CFLAGS:=    ${CFLAGS} -O2 -Wno-format
USES=       bison gettext gmake libtool pathfix pkgconfig tar:xz
USE_GNOME=  glib20 introspection:build
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-tests \
        --disable-examples \
        --disable-failing-tests \
        --disable-fatal-warnings \
        --disable-gtk-doc
CONFIGURE_ENV=  ac_cv_func_register_printf_function="no"
INSTALL_TARGET= install-strip
PLIST_SUB=  VERSION=${GST10_VERSION} \
        SOVERSION=0.602.0
USE_LDCONFIG=   yes
GST10_VERSION=  1.0

OPTIONS_SUB=    yes
OPTIONS_DEFINE= LIBCHECK
LIBCHECK_DESC=  Unit tests support
LIBCHECK_CONFIGURE_ENABLE=  check
LIBCHECK_LIB_DEPENDS=   libcheck.so:${PORTSDIR}/devel/libcheck

.include <bsd.port.options.mk>

.if ${OSVERSION} < 1000033
BUILD_DEPENDS+= ${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex
CONFIGURE_ENV+= FLEX_PATH="${LOCALBASE}/bin/flex"
.endif

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

.include <bsd.port.mk>