Skip to content

Commit 4a5626f

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 38a690e commit 4a5626f

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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 = "403c756c958c2a60adc6e8fa64aa0943b4dfda4e"
14+
15+
PACKAGES =+ "${PN}-python"
16+
17+
DEPENDS = "libdrm libevdev fmt python3 python3-pybind11"
18+
19+
PACKAGECONFIG ??= "python"
20+
PACKAGECONFIG[python] += "-Dpykms=enabled, -Dpykms=disabled"
21+
22+
S = "${WORKDIR}/git"
23+
24+
inherit meson pkgconfig
25+
26+
do_install() {
27+
install -d ${D}${libdir}
28+
install -m 0644 ${B}/kms++/libkms++.so.0 ${D}${libdir}
29+
install -m 0644 ${B}/kms++util/libkms++util.so.0 ${D}${libdir}
30+
31+
install -d ${D}${bindir}
32+
install -m 755 ${B}/utils/kmsview ${D}${bindir}
33+
install -m 755 ${B}/utils/kmsblank ${D}${bindir}
34+
35+
if ${@bb.utils.contains('PACKAGECONFIG', 'python', 'true', 'false', d)}; then
36+
install -d ${D}${PYTHON_SITEPACKAGES_DIR}
37+
install -m 0644 ${B}/py/pykms/pykms.so ${D}${PYTHON_SITEPACKAGES_DIR}
38+
fi
39+
}
40+
41+
FILES:${PN} +="/usr/lib/* \
42+
/usr/bin/* "
43+
44+
FILES:${PN}-python += "${PYTHON_SITEPACKAGES_DIR}/*"

0 commit comments

Comments
 (0)