# Created by: Jason Helfman <jgh@FreeBSD.org>
# $FreeBSD: branches/RELENG_9_2_0/devel/libvirt-glib/Makefile 322571 2013-07-09 20:28:08Z jgh $

PORTNAME=	libvirt-glib
PORTVERSION=	0.1.7
CATEGORIES=	devel
MASTER_SITES=	ftp://libvirt.org/libvirt/glib/

MAINTAINER=	jgh@FreeBSD.org
COMMENT=	Glib bindings for Libvirt virtualization API

BUILD_DEPENDS=	gobject-introspection>=1.34.2:${PORTSDIR}/devel/gobject-introspection \
		intltool-update:${PORTSDIR}/textproc/intltool
LIB_DEPENDS=	virt.1001:${PORTSDIR}/devel/libvirt

GNU_CONFIGURE=	yes
USES=	pathfix pkgconfig gmake
USE_LDCONFIG=	yes
USE_AUTOTOOLS=	libtool
USE_GNOME=	glib20
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib -fstack-protector
CONFIGURE_ARGS+=	--enable-introspection

post-patch-script:
	@${REINPLACE_CMD} 's}--quiet}--quiet --libtool=${LIBTOOL}}' \
		${WRKSRC}/libvirt-*/Makefile.in

.include <bsd.port.mk>
