# Created by: Gustau Perez i Querol <gustau.perez@gmail.com>
# $MidnightBSD: trunk/net/grilo/Makefile 20073 2015-08-27 23:38:24Z laffer1 $
# $FreeBSD: head/net/grilo/Makefile 393607 2015-08-05 19:13:24Z kwm $

PORTNAME=	grilo
PORTVERSION=	0.2.12
CATEGORIES=	net
MASTER_SITES=	GNOME

MAINTAINER=	ports@MdinightBSD.org
COMMENT=	Grilo is a framework focused on making media discovery and browsing

LICENSE=	lgpl2.1

BUILD_DEPENDS=	vapigen:${PORTSDIR}/lang/vala
LIB_DEPENDS=	libsoup-2.4.so:${PORTSDIR}/devel/libsoup \
		liboauth.so:${PORTSDIR}/net/liboauth \
		libtotem-plparser.so:${PORTSDIR}/multimedia/totem-pl-parser

USES=		gettext gmake libtool pathfix pkgconfig tar:xz
USE_LDCONFIG=	yes
USE_GNOME=	glib20 intlhack introspection:build libxml2
GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=--enable-vala -disable-debug
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
INSTALL_TARGET=	install-strip

#  --enable-debug include debug symbols
CONFIGURE_ARGS+=--enable-tests #          build unit tests

OPTIONS_SUB=	yes
OPTIONS_DEFINE=	UI

UI_DESC=	Enable testing UI
UI_CONFIGURE_ENABLE=test-ui
UI_USE=		GNOME=gtk30

.include <bsd.port.mk>
