diff options
Diffstat (limited to 'recipes-extended/virt-viewer/virt-viewer_git.bb')
-rw-r--r-- | recipes-extended/virt-viewer/virt-viewer_git.bb | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/recipes-extended/virt-viewer/virt-viewer_git.bb b/recipes-extended/virt-viewer/virt-viewer_git.bb new file mode 100644 index 00000000..322d92ff --- /dev/null +++ b/recipes-extended/virt-viewer/virt-viewer_git.bb | |||
@@ -0,0 +1,38 @@ | |||
1 | SUMMARY = "Virtual Machine Viewer" | ||
2 | LICENSE = "GPL-2.0-only" | ||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" | ||
4 | |||
5 | # for ovirt support librest-0.7 and libgovirt would be needed | ||
6 | DEPENDS = " \ | ||
7 | desktop-file-utils-native \ | ||
8 | glib-2.0 \ | ||
9 | gtk+3 \ | ||
10 | libxml2 \ | ||
11 | " | ||
12 | |||
13 | SRC_URI = "git://gitlab.com/virt-viewer/virt-viewer.git;protocol=https;branch=master" | ||
14 | |||
15 | SRCREV = "107f60c168c405cf1782b686a65bf4af16ec8c9d" | ||
16 | PV = "11.0+git" | ||
17 | S = "${WORKDIR}/git" | ||
18 | |||
19 | REQUIRED_DISTRO_FEATURES = "opengl" | ||
20 | |||
21 | PACKAGECONFIG ?= "libvirt spice vte" | ||
22 | |||
23 | PACKAGECONFIG[libvirt] = "-Dlibvirt=enabled,-Dlibvirt=disabled,libvirt libvirt-glib" | ||
24 | PACKAGECONFIG[spice] = "-Dspice=enabled,-Dspice=disabled,spice-gtk spice-protocol" | ||
25 | PACKAGECONFIG[vnc] = "-Dvnc=enabled,-Dvnc=disabled,gtk-vnc" | ||
26 | PACKAGECONFIG[vte] = "-Dvte=enabled,-Dvte=disabled,vte" | ||
27 | |||
28 | inherit meson pkgconfig gtk-icon-cache mime mime-xdg gobject-introspection features_check | ||
29 | |||
30 | FILES:${PN} += "${datadir}" | ||
31 | GIR_MESON_OPTION = '' | ||
32 | |||
33 | do_compile:append() { | ||
34 | # glib-mkenums is embedding full paths into this file. There's no | ||
35 | # option to it to use a sysroot style variable. So to avoid QA | ||
36 | # errors, we sed WORKDIR out and make its includes relative | ||
37 | sed -i "s,${WORKDIR}/build/,," src/virt-viewer-enums.c | ||
38 | } | ||