diff options
Diffstat (limited to 'meta/recipes-graphics/wayland/wayland_1.24.0.bb')
| -rw-r--r-- | meta/recipes-graphics/wayland/wayland_1.24.0.bb | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/meta/recipes-graphics/wayland/wayland_1.24.0.bb b/meta/recipes-graphics/wayland/wayland_1.24.0.bb new file mode 100644 index 0000000000..5fb7951781 --- /dev/null +++ b/meta/recipes-graphics/wayland/wayland_1.24.0.bb | |||
| @@ -0,0 +1,61 @@ | |||
| 1 | SUMMARY = "Wayland, a protocol between a compositor and clients" | ||
| 2 | DESCRIPTION = "Wayland is a protocol for a compositor to talk to its clients \ | ||
| 3 | as well as a C library implementation of that protocol. The compositor can be \ | ||
| 4 | a standalone display server running on Linux kernel modesetting and evdev \ | ||
| 5 | input devices, an X application, or a wayland client itself. The clients can \ | ||
| 6 | be traditional applications, X servers (rootless or fullscreen) or other \ | ||
| 7 | display servers." | ||
| 8 | HOMEPAGE = "http://wayland.freedesktop.org" | ||
| 9 | LICENSE = "MIT" | ||
| 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=b31d8f53b6aaf2b4985d7dd7810a70d1 \ | ||
| 11 | file://src/wayland-server.c;endline=24;md5=b8e046164a766bb1ede8ba38e9dcd7ce" | ||
| 12 | |||
| 13 | DEPENDS = "expat libffi wayland-native" | ||
| 14 | |||
| 15 | SRC_URI = "https://gitlab.freedesktop.org/wayland/wayland/-/releases/${PV}/downloads/${BPN}-${PV}.tar.xz \ | ||
| 16 | file://run-ptest \ | ||
| 17 | file://0001-build-Fix-strndup-detection-on-MinGW.patch \ | ||
| 18 | " | ||
| 19 | SRC_URI[sha256sum] = "82892487a01ad67b334eca83b54317a7c86a03a89cfadacfef5211f11a5d0536" | ||
| 20 | |||
| 21 | UPSTREAM_CHECK_URI = "https://gitlab.freedesktop.org/wayland/wayland/-/tags" | ||
| 22 | UPSTREAM_CHECK_REGEX = "releases/(?P<pver>\d+\.\d+\.(?!9\d+)\d+)" | ||
| 23 | |||
| 24 | inherit meson pkgconfig ptest | ||
| 25 | |||
| 26 | PACKAGECONFIG ??= "dtd-validation" | ||
| 27 | PACKAGECONFIG[dtd-validation] = "-Ddtd_validation=true,-Ddtd_validation=false,libxml2,," | ||
| 28 | |||
| 29 | EXTRA_OEMESON = "-Ddocumentation=false" | ||
| 30 | EXTRA_OEMESON:class-native = "-Ddocumentation=false" | ||
| 31 | |||
| 32 | # Wayland installs a M4 macro for other projects to use, which uses the target | ||
| 33 | # pkg-config to find files. Replace pkg-config with pkg-config-native. | ||
| 34 | do_install:append:class-native() { | ||
| 35 | sed -e 's,PKG_CHECK_MODULES(.*),,g' \ | ||
| 36 | -e 's,$PKG_CONFIG,pkg-config-native,g' \ | ||
| 37 | -i ${D}/${datadir}/aclocal/wayland-scanner.m4 | ||
| 38 | } | ||
| 39 | |||
| 40 | do_install_ptest() { | ||
| 41 | mkdir -p ${D}${PTEST_PATH}/tests/data | ||
| 42 | cp -rf ${B}/tests/*-test ${B}/tests/*-checker ${D}${PTEST_PATH}/tests | ||
| 43 | cp -rf ${B}/tests/*-checker ${D}${PTEST_PATH} | ||
| 44 | cp -rf ${S}/tests/scanner-test.sh ${D}${PTEST_PATH}/tests | ||
| 45 | cp -rf ${S}/tests/data/* ${D}${PTEST_PATH}/tests/data/ | ||
| 46 | cp -rf ${S}/egl/wayland-egl-symbols-check ${D}${PTEST_PATH}/tests/ | ||
| 47 | } | ||
| 48 | |||
| 49 | sysroot_stage_all:append:class-target () { | ||
| 50 | rm ${SYSROOT_DESTDIR}/${datadir}/aclocal/wayland-scanner.m4 | ||
| 51 | cp ${STAGING_DATADIR_NATIVE}/aclocal/wayland-scanner.m4 ${SYSROOT_DESTDIR}/${datadir}/aclocal/ | ||
| 52 | } | ||
| 53 | |||
| 54 | PACKAGES =+ "${PN}-tools" | ||
| 55 | |||
| 56 | FILES:${PN}-tools = "${bindir}/wayland-scanner" | ||
| 57 | FILES:${PN}-dev += "${datadir}/${BPN}/wayland-scanner.mk" | ||
| 58 | |||
| 59 | BBCLASSEXTEND = "native nativesdk" | ||
| 60 | |||
| 61 | RDEPENDS:${PN}-ptest += "binutils sed ${PN}-tools" | ||
