# New ports collection makefile for:	gupnp
# Date created:		2009-12-26
# Whom:			Martin Wilke <miwi@FreeBSD.org>
#
# $FreeBSD: branches/RELENG_9_1_0/net/gupnp/Makefile 302816 2012-08-20 15:53:57Z sunpoet $
#

PORTNAME=	gupnp
PORTVERSION=	0.18.4
CATEGORIES=	net
MASTER_SITES=	GNOME

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Framework for UPnP devices

LICENSE=	LGPL20

BUILD_DEPENDS=	gobject-introspection>=0.6.4:${PORTSDIR}/devel/gobject-introspection
LIB_DEPENDS=	gssdp-1.0:${PORTSDIR}/net/gssdp \
		soup-2.4:${PORTSDIR}/devel/libsoup \
		uuid:${PORTSDIR}/misc/e2fsprogs-libuuid

CONFIGURE_ARGS=	--enable-introspection=yes
GNU_CONFIGURE=	yes
USE_GMAKE=	yes
USE_GNOME=	glib20 gnomehack
USE_LDCONFIG=	yes
USE_PYTHON=	yes
USE_XZ=		yes

post-patch:
	@${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|' \
		${WRKSRC}/tools/gupnp-binding-tool

.include <bsd.port.mk>
