summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-graphics/kmscon/kmscon_9.3.3.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-graphics/kmscon/kmscon_9.3.3.bb')
-rw-r--r--meta-oe/recipes-graphics/kmscon/kmscon_9.3.3.bb69
1 files changed, 69 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/kmscon/kmscon_9.3.3.bb b/meta-oe/recipes-graphics/kmscon/kmscon_9.3.3.bb
new file mode 100644
index 0000000000..46550bb6d1
--- /dev/null
+++ b/meta-oe/recipes-graphics/kmscon/kmscon_9.3.3.bb
@@ -0,0 +1,69 @@
1SUMMARY = "Simple terminal emulator based on linux kernel mode setting (KMS)."
2DESCRIPTION = "\
3 Kmscon is a simple terminal emulator based on linux kernel mode setting \
4 (KMS). It is an attempt to replace the in-kernel VT implementation with \
5 a userspace console. \
6"
7HOMEPAGE = "https://github.com/kmscon/kmscon"
8BUGTRACKER = "https://github.com/kmscon/kmscon/issues"
9CVE_PRODUCT = "kmscon"
10
11SECTION = "graphics"
12
13LICENSE = "MIT"
14LIC_FILES_CHKSUM = "file://COPYING;md5=6d4602d249f8a3401040238e98367d9e"
15
16DEPENDS = "\
17 libtsm \
18 libxkbcommon \
19 udev \
20 zlib \
21"
22
23SRC_URI = "git://github.com/kmscon/kmscon;protocol=https;branch=main;tag=v${PV}"
24SRCREV = "03e50c7db0489daaa41b5f62946fd6aaeab63a6e"
25
26inherit meson pkgconfig systemd
27
28PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)}"
29
30PACKAGECONFIG[font_freetype] = "-Dfont_freetype=enabled, -Dfont_freetype=disabled, fontconfig freetype"
31PACKAGECONFIG[font_pango] = "-Dfont_pango=enabled, -Dfont_pango=disabled, pango"
32PACKAGECONFIG[multi_seat] = "-Dmulti_seat=enabled, -Dmulti_seat=disabled, systemd"
33PACKAGECONFIG[opengl] = "-Drenderer_gltex=enabled -Dvideo_drm3d=enabled, -Drenderer_gltex=disabled -Dvideo_drm3d=disabled, libdrm virtual/egl virtual/libgles2 virtual/libgbm"
34PACKAGECONFIG[video_drm2d] = "-Dvideo_drm2d=enabled, -Dvideo_drm2d=disabled, libdrm"
35
36EXTRA_OEMESON = "\
37 -Delogind=disabled \
38 -Dextra_debug=false \
39 -Dfont_unifont=enabled \
40 -Dsession_dummy=enabled \
41 -Dsession_terminal=enabled \
42 -Dtests=false \
43 -Dvideo_fbdev=enabled \
44"
45
46SYSTEMD_SERVICE:${PN} = "kmscon.service"
47FILES:${PN} += "${systemd_system_unitdir}/kmsconvt@.service"
48
49do_install:append() {
50 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
51 install -d ${D}${sysconfdir}/systemd/system
52 ln -sf ${systemd_system_unitdir}/kmsconvt@.service \
53 ${D}${sysconfdir}/systemd/system/autovt@.service
54 else
55 # kmscon always installs service files.
56 # If systemd and usrmerge are not in DISTRO_FEATURES, packaging errors
57 # occur because service files are installed to /usr/lib/systemd/system/kmscon.service.
58 rm -rf ${D}${libdir}/systemd
59 fi
60
61 if ${@bb.utils.contains('PACKAGECONFIG', 'opengl', 'true', 'false', d)}; then
62 mv ${D}${sysconfdir}/kmscon/kmscon.conf.example ${D}${sysconfdir}/kmscon/kmscon.conf
63 sed -e "s@#drm@drm@g" \
64 -e "s@#hwaccel@hwaccel@g" \
65 -i ${D}${sysconfdir}/kmscon/kmscon.conf
66 fi
67}
68
69RDEPENDS:${PN} = "xkeyboard-config"