Files
RedBear-OS/local/recipes/libs/libdisplay-info/recipe.toml
T
vasilito ffbe098ef8 config: add tlc to redbear-mini and redbear-full; create recipe symlink
TLC (Twilight Commander) was missing from both ISO configs. Added
tlc = {} to [packages] in redbear-mini.toml and redbear-full.toml.
Created missing symlink: recipes/tui/tlc -> ../../local/recipes/tui/tlc.
2026-06-19 11:47:25 +03:00

57 lines
1.6 KiB
TOML

[source]
path = "source"
[build]
template = "custom"
script = '''
DYNAMIC_INIT
python3 - <<'PY' "${COOKBOOK_SOURCE}"
from pathlib import Path
import sys
source_root = Path(sys.argv[1])
meson_build = source_root / "meson.build"
if not meson_build.exists():
meson_build.write_text(
"""project('libdisplay-info', 'c',
version: '0.2.3',
meson_version: '>= 0.54.0',
default_options: ['warning_level=1', 'buildtype=debugoptimized'])
inc = include_directories('include')
libdisplay_info = shared_library('display-info',
'di.c',
include_directories: inc,
version: meson.project_version(),
install: true)
install_headers(
'include/libdisplay-info/cta.h',
'include/libdisplay-info/displayid.h',
'include/libdisplay-info/edid.h',
'include/libdisplay-info/info.h',
subdir: 'libdisplay-info',
)
pkg = import('pkgconfig')
pkg.generate(
libdisplay_info,
name: 'libdisplay-info',
description: 'Display identification data parsing library',
filebase: 'libdisplay-info',
version: meson.project_version(),
)
"""
)
PY
cookbook_meson
'''
[package]
version = "0.2.3"
description = "libdisplay-info — EDID and display descriptor parsing library. Real C implementation (v6.0 2026) handling base EDID vendor/product, strings, physical size, chromaticity, detailed timings, and preferred-timing metadata. CTA/DisplayID remain unsupported (bounded by Red Bear's current DRM/KMS validation surface). Replaces the prior libdisplay-info-stub that always returned NULL."