aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/virt-viewer/Makefile
blob: ec2a5a57439100377e9324e0f031e5eb6f49837b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Created by: Jason Helfman <jgh@FreeBSD.org>

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

PATCH_SITES=	https://gitlab.com/${PORTNAME}/${PORTNAME}/-/commit/
PATCHFILES+=	41cc016278e7.patch:-p1 # https://gitlab.com/virt-viewer/virt-viewer/-/merge_requests/117

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

LICENSE=	GPLv2

USES=		cpe desktop-file-utils gettext gettext-tools gmake gnome \
		libtool meson perl5 pkgconfig python:3.6+,build \
		shared-mime-info tar:xz xorg
CPE_VENDOR=	redhat
USE_GNOME=	gtk30 libxml2
USE_PERL5=	build # pod2man
USE_XORG=	xorgproto
BINARY_ALIAS=	python3=${PYTHON_CMD}

OPTIONS_DEFINE=	SPICE VNC LIBVIRT VTE
OPTIONS_DEFAULT=	SPICE VNC LIBVIRT VTE
OPTIONS_SUB=	yes

SPICE_DESC=	SPICE support
VNC_DESC=	VNC support
VTE_DESC=	VTE support

LIBVIRT_LIB_DEPENDS=	libvirt.so:devel/libvirt \
			libvirt-glib-1.0.so:devel/libvirt-glib
LIBVIRT_MESON_ENABLED=	libvirt

SPICE_BUILD_DEPENDS=	spice-protocol>=0.12.7:devel/spice-protocol
SPICE_LIB_DEPENDS=	libspice-client-glib-2.0.so:deskutils/spice-gtk
SPICE_MESON_ENABLED=	spice

VNC_LIB_DEPENDS=	libgtk-vnc-2.0.so:net/gtk-vnc
VNC_MESON_ENABLED=	vnc

VTE_USE=		GNOME=vte3
VTE_MESON_ENABLED=	vte

.include <bsd.port.mk>