# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
# $MidnightBSD: trunk/multimedia/gstreamer1/Makefile 22038 2016-10-30 17:30:34Z laffer1 $
# $FreeBSD: head/multimedia/gstreamer1/Makefile 393429 2015-08-02 15:03:19Z tijl $

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

MAINTAINER=	ports@MidnightBSD.org
COMMENT=	Media applications framework

LICENSE=	lgpl
LICENSE_FILE=	${WRKSRC}/COPYING

CFLAGS:=	${CFLAGS} -O2 -Wno-format
USES=		bison gettext gmake libtool pathfix pkgconfig tar:xz \
		python:2
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.405.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.mport.options.mk>

USE_GCC=	any

BUILD_DEPENDS+=	${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex
CONFIGURE_ENV+=	FLEX_PATH="${LOCALBASE}/bin/flex"

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

.include <bsd.port.mk>
