# Created by: Jason Helfman <jgh@FreeBSD.org>
# $FreeBSD: tags/RELEASE_10_2_0/net-mgmt/virt-viewer/Makefile 386280 2015-05-14 00:04:19Z jgh $

PORTNAME=	virt-viewer
PORTVERSION=	2.0
PORTREVISION=	1
CATEGORIES=	net-mgmt
MASTER_SITES=	http://virt-manager.org/download/sources/${PORTNAME}/

MAINTAINER=	jgh@FreeBSD.org
COMMENT=	Provides a graphical viewer for a guest OS display

LICENSE=	GPLv2

BUILD_DEPENDS=	xml2-config:${PORTSDIR}/textproc/libxml2 \
		intltoolize:${PORTSDIR}/textproc/intltool \
		spice-protocol>=0.12.7:${PORTSDIR}/devel/spice-protocol
LIB_DEPENDS=	libvirt.so:${PORTSDIR}/devel/libvirt \
		libgtk-vnc-2.0.so:${PORTSDIR}/net/gtk-vnc \
		libspice-client-glib-2.0.so:${PORTSDIR}/deskutils/spice-gtk

USE_OPENSSL=yes
WITH_OPENSSL_PORT=yes

OPTIONS_DEFINE=	NLS
OPTIONS_SUB=	yes

GNU_CONFIGURE=	yes
CONFIGURE_ENV+=	DATADIRNAME=share
CONFIGURE_ARGS=	--with-gtk=3.0 --with-spice-gtk
USES=		desktop-file-utils gmake pkgconfig shared-mime-info cpe
USE_GNOME=	gtk30
INSTALLS_ICONS=	yes
CPE_VENDOR=	redhat

NLS_USES=	gettext
NLS_CONFIGURE_ENABLE=	nls

.include <bsd.port.mk>
