blob: 82ce7067d91c4c3140389f91d4073e95ea08a4c4 [file] [log] [blame]
Patrick Williams2390b1b2022-11-03 13:47:49 -05001SUMMARY = "A Gtk client and libraries for SPICE remote desktop servers."
2HOMEPAGE = "https://spice-space.org"
Andrew Geissler517393d2023-01-13 08:55:19 -06003LICENSE = "LGPL-2.1-only & BSD-3-Clause & GPL-2.0-only"
4LIC_FILES_CHKSUM = " \
5 file://COPYING;md5=4fbd65380cdd255951079008b364516c \
6 file://subprojects/spice-common/COPYING;md5=4b54a1fd55a448865a0b32d41598759d \
7 file://subprojects/keycodemapdb/LICENSE.BSD;md5=5ae30ba4123bc4f2fa49aa0b0dce887b \
8 file://subprojects/keycodemapdb/LICENSE.GPL2;md5=751419260aa954499f7abaabaa882bbe \
9"
Patrick Williams2390b1b2022-11-03 13:47:49 -050010
Andrew Geissler6aa7eec2023-03-03 12:41:14 -060011SRCREV = "f04479c16f0969fb394ebe74b6eff74e560a42f0"
Patrick Williams2390b1b2022-11-03 13:47:49 -050012
13SRC_URI = "gitsm://gitlab.freedesktop.org/spice/spice-gtk.git;protocol=https;branch=master"
14
15S = "${WORKDIR}/git"
16
17DEPENDS = " \
18 ${@bb.utils.filter('DISTRO_FEATURES', 'polkit', d)} \
19 ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland wayland-native wayland-protocols', '', d)} \
20 acl \
21 cyrus-sasl \
22 gstreamer1.0 \
23 gstreamer1.0-plugins-base \
24 gstreamer1.0-vaapi \
25 gtk+3 \
26 jpeg \
27 json-glib \
28 libcap-ng \
29 libepoxy \
30 libopus \
31 libusb1 \
32 lz4 \
33 pixman \
34 python3-pyparsing-native \
35 python3-six-native \
36 spice-protocol \
37 usbredir \
38 usbutils \
39 zlib \
40"
Andrew Geissler517393d2023-01-13 08:55:19 -060041DEPENDS:append:libc-musl = " libucontext"
Patrick Williams2390b1b2022-11-03 13:47:49 -050042
Andrew Geissler5082cc72023-09-11 08:41:39 -040043RDEPENDS:${PN} = "python3-pyparsing python3-six usbids"
Patrick Williams2390b1b2022-11-03 13:47:49 -050044
Andrew Geissler5082cc72023-09-11 08:41:39 -040045inherit meson pkgconfig vala gobject-introspection features_check gtk-doc
Andrew Geissler517393d2023-01-13 08:55:19 -060046
47REQUIRED_DISTRO_FEATURES = "opengl"
Patrick Williams2390b1b2022-11-03 13:47:49 -050048
Andrew Geissler3eeda902023-05-19 10:14:02 -050049GIR_MESON_ENABLE_FLAG = 'enabled'
50GIR_MESON_DISABLE_FLAG = 'disabled'
Andrew Geissler5082cc72023-09-11 08:41:39 -040051GTKDOC_MESON_OPTION = 'gtk_doc'
52GTKDOC_MESON_ENABLE_FLAG = 'enabled'
53GTKDOC_MESON_DISABLE_FLAG = 'disabled'
Andrew Geissler517393d2023-01-13 08:55:19 -060054
Patrick Williamsda295312023-12-05 16:48:56 -060055do_configure:prepend() {
56 echo ${PV} > ${S}/.tarball-version
57}
58
Andrew Geissler5082cc72023-09-11 08:41:39 -040059PACKAGECONFIG ??= "${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'vapi', '', d)} smartcard"
Andrew Geissler3eeda902023-05-19 10:14:02 -050060PACKAGECONFIG[vapi] = "-Dvapi=enabled,-Dvapi=disabled"
Andrew Geissler5082cc72023-09-11 08:41:39 -040061PACKAGECONFIG[smartcard] = "-Dsmartcard=enabled,-Dsmartcard=disabled,libcacard"
Andrew Geissler3eeda902023-05-19 10:14:02 -050062
Andrew Geissler5082cc72023-09-11 08:41:39 -040063EXTRA_OEMESON = "-Dpie=true -Dusb-ids-path=${datadir}/usb.ids "
Andrew Geissler3eeda902023-05-19 10:14:02 -050064EXTRA_OEMESON:append:libc-musl = " -Dcoroutine=libucontext"
Patrick Williams2390b1b2022-11-03 13:47:49 -050065
Patrick Williams520786c2023-06-25 16:20:36 -050066LDFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' -Wl,--undefined-version', '', d)}"
67
Patrick Williams2390b1b2022-11-03 13:47:49 -050068FILES:${PN} += "${datadir}"