diff options
| author | LI Qingwu <Qing-wu.Li@leica-geosystems.com.cn> | 2023-10-17 15:17:08 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-11-09 20:47:44 -0800 |
| commit | 96430a138e573289cc325109f2db33f8cf9b9453 (patch) | |
| tree | b2bfce73c93beaf0d5571cc2188b3538833cc9fb /meta-oe | |
| parent | d919a10d53f95932b0bef986b49ff4ba639a7351 (diff) | |
| download | meta-openembedded-96430a138e573289cc325109f2db33f8cf9b9453.tar.gz | |
kmsxx: Add recipe
add recipe for kmsxx which is a C++ library for kernel mode setting.
Signed-off-by: LI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe')
| -rw-r--r-- | meta-oe/dynamic-layers/meta-python/recipes-multimedia/kmsxx/kmsxx_git.bb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-multimedia/kmsxx/kmsxx_git.bb b/meta-oe/dynamic-layers/meta-python/recipes-multimedia/kmsxx/kmsxx_git.bb new file mode 100644 index 0000000000..cdba1a24d1 --- /dev/null +++ b/meta-oe/dynamic-layers/meta-python/recipes-multimedia/kmsxx/kmsxx_git.bb | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | # SPDX-License-Identifier: MIT | ||
| 2 | # | ||
| 3 | # Copyright Leica Geosystems AG | ||
| 4 | # | ||
| 5 | |||
| 6 | SUMMARY = "C++ library for kernel mode setting" | ||
| 7 | HOMEPAGE = "https://github.com/tomba/kmsxx" | ||
| 8 | LICENSE = "MPL-2.0" | ||
| 9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=815ca599c9df247a0c7f619bab123dad" | ||
| 10 | |||
| 11 | BRANCH = "master" | ||
| 12 | SRC_URI = "git://github.com/tomba/kmsxx.git;protocol=https;branch=${BRANCH}" | ||
| 13 | SRCREV = "412935a47b762c33e54a464243f2d789b065bbb6" | ||
| 14 | PACKAGES =+ "${PN}-python" | ||
| 15 | |||
| 16 | PACKAGECONFIG ?= "utils python " | ||
| 17 | PACKAGECONFIG[omap] += "-Domap=enabled, -Domap=disabled" | ||
| 18 | PACKAGECONFIG[python] += "-Dpykms=enabled, -Dpykms=disabled, python3 python3-pybind11" | ||
| 19 | PACKAGECONFIG[utils] += "-Dutils=true, -Dutils=false" | ||
| 20 | |||
| 21 | DEPENDS += "libdrm libevdev fmt" | ||
| 22 | |||
| 23 | S = "${WORKDIR}/git" | ||
| 24 | |||
| 25 | inherit meson pkgconfig | ||
| 26 | |||
| 27 | do_install:append() { | ||
| 28 | if ${@bb.utils.contains('PACKAGECONFIG', 'utils', 'true', 'false', d)}; then | ||
| 29 | # kmstest already provided by libdrm-tests | ||
| 30 | mv ${D}${bindir}/kmstest ${D}${bindir}/kmsxxtest | ||
| 31 | fi | ||
| 32 | } | ||
| 33 | |||
| 34 | FILES:${PN} ="${bindir} ${libdir}" | ||
| 35 | FILES:${PN}-python += "${PYTHON_SITEPACKAGES_DIR}/*" | ||
