Files
RedBear-OS/local/recipes/libs/libudev/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

61 lines
2.0 KiB
TOML

# libudev — Red Bear real implementation backed by the scheme:udev producer
# (driven by udev-shim). Provides the libudev.so / UDev::UDev surface that KWin
# links against for tablet/input device enumeration. Hotplug event delivery is
# bounded by the current scheme:udev protocol (no kernel netlink link on Redox).
[source]
path = "source"
[build]
template = "custom"
script = """
DYNAMIC_INIT
mkdir -p "${COOKBOOK_STAGE}/usr/include"
mkdir -p "${COOKBOOK_STAGE}/usr/lib/cmake/UDev"
mkdir -p "${COOKBOOK_STAGE}/usr/lib/pkgconfig"
cp "${COOKBOOK_SOURCE}/include/libudev.h" "${COOKBOOK_STAGE}/usr/include/libudev.h"
x86_64-unknown-redox-gcc \
-shared \
-fPIC \
-std=c11 \
-Wall \
-Wextra \
-Wl,-soname,libudev.so \
-I"${COOKBOOK_SOURCE}/include" \
-o "${COOKBOOK_STAGE}/usr/lib/libudev.so" \
"${COOKBOOK_SOURCE}/libudev.c"
cat > "${COOKBOOK_STAGE}/usr/lib/cmake/UDev/UDevConfig.cmake" << 'EOF'
set(UDev_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/../../../include")
set(UDev_LIBRARIES "${CMAKE_CURRENT_LIST_DIR}/../../../lib/libudev.so")
set(UDev_VERSION "0.2.3")
if(NOT TARGET UDev::UDev)
add_library(UDev::UDev SHARED IMPORTED)
set_target_properties(UDev::UDev PROPERTIES
IMPORTED_LOCATION "${UDev_LIBRARIES}"
INTERFACE_INCLUDE_DIRECTORIES "${UDev_INCLUDE_DIRS}"
)
endif()
set(UDev_FOUND TRUE)
EOF
cat > "${COOKBOOK_STAGE}/usr/lib/pkgconfig/libudev.pc" << 'EOF'
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: libudev
Description: Real scheme:udev-backed libudev provider for Red Bear (v6.0 2026)
Version: 0.2.3
Libs: -L${libdir} -ludev
Cflags: -I${includedir}
EOF
"""
[package]
version = "0.2.3"
description = "libudev — real scheme:udev-backed libudev.so for Red Bear (v6.0 2026). Full enumerate / device / monitor / list-entry API in 1314 lines of C backed by /scheme/udev/devices plus udev-shim. Provides UDev::UDev CMake target, libudev.pc, and libudev.h for KWin tablet/input discovery. Hotplug event delivery remains bounded by scheme:udev semantics."