diff options
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.bb | 69 |
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 @@ | |||
| 1 | SUMMARY = "Simple terminal emulator based on linux kernel mode setting (KMS)." | ||
| 2 | DESCRIPTION = "\ | ||
| 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 | " | ||
| 7 | HOMEPAGE = "https://github.com/kmscon/kmscon" | ||
| 8 | BUGTRACKER = "https://github.com/kmscon/kmscon/issues" | ||
| 9 | CVE_PRODUCT = "kmscon" | ||
| 10 | |||
| 11 | SECTION = "graphics" | ||
| 12 | |||
| 13 | LICENSE = "MIT" | ||
| 14 | LIC_FILES_CHKSUM = "file://COPYING;md5=6d4602d249f8a3401040238e98367d9e" | ||
| 15 | |||
| 16 | DEPENDS = "\ | ||
| 17 | libtsm \ | ||
| 18 | libxkbcommon \ | ||
| 19 | udev \ | ||
| 20 | zlib \ | ||
| 21 | " | ||
| 22 | |||
| 23 | SRC_URI = "git://github.com/kmscon/kmscon;protocol=https;branch=main;tag=v${PV}" | ||
| 24 | SRCREV = "03e50c7db0489daaa41b5f62946fd6aaeab63a6e" | ||
| 25 | |||
| 26 | inherit meson pkgconfig systemd | ||
| 27 | |||
| 28 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)}" | ||
| 29 | |||
| 30 | PACKAGECONFIG[font_freetype] = "-Dfont_freetype=enabled, -Dfont_freetype=disabled, fontconfig freetype" | ||
| 31 | PACKAGECONFIG[font_pango] = "-Dfont_pango=enabled, -Dfont_pango=disabled, pango" | ||
| 32 | PACKAGECONFIG[multi_seat] = "-Dmulti_seat=enabled, -Dmulti_seat=disabled, systemd" | ||
| 33 | PACKAGECONFIG[opengl] = "-Drenderer_gltex=enabled -Dvideo_drm3d=enabled, -Drenderer_gltex=disabled -Dvideo_drm3d=disabled, libdrm virtual/egl virtual/libgles2 virtual/libgbm" | ||
| 34 | PACKAGECONFIG[video_drm2d] = "-Dvideo_drm2d=enabled, -Dvideo_drm2d=disabled, libdrm" | ||
| 35 | |||
| 36 | EXTRA_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 | |||
| 46 | SYSTEMD_SERVICE:${PN} = "kmscon.service" | ||
| 47 | FILES:${PN} += "${systemd_system_unitdir}/kmsconvt@.service" | ||
| 48 | |||
| 49 | do_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 | |||
| 69 | RDEPENDS:${PN} = "xkeyboard-config" | ||
