aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-extended/virt-viewer/virt-viewer_11.0.bb
blob: 273e1fc548c4a069859b06da2da471f3cba463bb (plain)
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
SUMMARY = "Virtual Machine Viewer"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"

# for ovirt support librest-0.7 and libgovirt would be needed
DEPENDS = " \
	desktop-file-utils-native \
	glib-2.0 \
	gtk+3 \
	libxml2 \
"

SRC_URI = "git://gitlab.com/virt-viewer/virt-viewer.git;protocol=https;branch=master"

SRCREV = "de864c14146c120b46d435949b1d8d0b11e57b85"
PV = "11.0+git"
S = "${WORKDIR}/git"

REQUIRED_DISTRO_FEATURES = "opengl"

PACKAGECONFIG ?= "libvirt spice vte"

PACKAGECONFIG[libvirt] = "-Dlibvirt=enabled,-Dlibvirt=disabled,libvirt libvirt-glib"
PACKAGECONFIG[spice] = "-Dspice=enabled,-Dspice=disabled,spice-gtk spice-protocol"
PACKAGECONFIG[vnc] = "-Dvnc=enabled,-Dvnc=disabled,gtk-vnc"
PACKAGECONFIG[vte] = "-Dvte=enabled,-Dvte=disabled,vte"

inherit meson pkgconfig gtk-icon-cache mime mime-xdg gobject-introspection features_check

FILES:${PN} += "${datadir}"
GIR_MESON_OPTION = ''

do_compile:append() {
    # glib-mkenums is embedding full paths into this file. There's no
    # option to it to use a sysroot style variable. So to avoid QA
    # errors, we sed WORKDIR out and make its includes relative
    sed -i "s,${WORKDIR}/build/,," src/virt-viewer-enums.c
}