Skip to content

Commit b6e59f1

Browse files
committed
kmsxx: add add recipe
add recipe kmsxx which is a C++ library for kernel mode setting. Signed-off-by: LI Qingwu <[email protected]>
1 parent 0cc8284 commit b6e59f1

File tree

1 file changed

+35
-0
lines changed
  • meta-oe/dynamic-layers/meta-python/recipes-multimedia/kmsxx

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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}/*"

0 commit comments

Comments
 (0)