Skip to content

Commit

Permalink
kmsxx: add add recipe
Browse files Browse the repository at this point in the history
add recipe kmsxx which is a C++ library for kernel mode setting.

Signed-off-by: LI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>
  • Loading branch information
Qingwu-Li committed Oct 17, 2023
1 parent 38a690e commit 4a5626f
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions meta-oe/recipes-multimedia/kmsxx/kmsxx_git.bb
@@ -0,0 +1,44 @@
# SPDX-License-Identifier: MIT
#
# Copyright Leica Geosystems AG
#

SUMMARY = "C++ library for kernel mode setting"
HOMEPAGE = "https://github.com/tomba/kmsxx"
LICENSE = "MPL-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=815ca599c9df247a0c7f619bab123dad"

BRANCH = "master"
SRC_URI = "git://github.com/tomba/kmsxx.git;protocol=https;branch=${BRANCH}"
SRCREV = "403c756c958c2a60adc6e8fa64aa0943b4dfda4e"

PACKAGES =+ "${PN}-python"

DEPENDS = "libdrm libevdev fmt python3 python3-pybind11"

PACKAGECONFIG ??= "python"
PACKAGECONFIG[python] += "-Dpykms=enabled, -Dpykms=disabled"

S = "${WORKDIR}/git"

inherit meson pkgconfig

do_install() {
install -d ${D}${libdir}
install -m 0644 ${B}/kms++/libkms++.so.0 ${D}${libdir}
install -m 0644 ${B}/kms++util/libkms++util.so.0 ${D}${libdir}

install -d ${D}${bindir}
install -m 755 ${B}/utils/kmsview ${D}${bindir}
install -m 755 ${B}/utils/kmsblank ${D}${bindir}

if ${@bb.utils.contains('PACKAGECONFIG', 'python', 'true', 'false', d)}; then
install -d ${D}${PYTHON_SITEPACKAGES_DIR}
install -m 0644 ${B}/py/pykms/pykms.so ${D}${PYTHON_SITEPACKAGES_DIR}
fi
}

FILES:${PN} +="/usr/lib/* \
/usr/bin/* "

FILES:${PN}-python += "${PYTHON_SITEPACKAGES_DIR}/*"

0 comments on commit 4a5626f

Please sign in to comment.