f863872591
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
35 lines
1.0 KiB
TOML
35 lines
1.0 KiB
TOML
#TODO: bounded libdisplay-info shim for the KWin reduced path — parses base EDID vendor/product, strings, physical size, chromaticity, detailed timings, and preferred-timing metadata; CTA/DisplayID remain unsupported
|
|
[source]
|
|
path = "source"
|
|
|
|
[build]
|
|
template = "custom"
|
|
script = """
|
|
DYNAMIC_INIT
|
|
|
|
mkdir -p "${COOKBOOK_STAGE}/usr/include/libdisplay-info"
|
|
mkdir -p "${COOKBOOK_STAGE}/usr/lib"
|
|
mkdir -p "${COOKBOOK_STAGE}/usr/lib/pkgconfig"
|
|
|
|
cp -R "${COOKBOOK_SOURCE}/include/libdisplay-info/." "${COOKBOOK_STAGE}/usr/include/libdisplay-info/"
|
|
|
|
x86_64-unknown-redox-gcc -shared -fPIC \
|
|
-Wl,-soname,libdisplay-info.so \
|
|
-I"${COOKBOOK_SOURCE}/include" \
|
|
-o "${COOKBOOK_STAGE}/usr/lib/libdisplay-info.so" \
|
|
"${COOKBOOK_SOURCE}/stub_di.c"
|
|
|
|
cat > "${COOKBOOK_STAGE}/usr/lib/pkgconfig/libdisplay-info.pc" << 'EOF'
|
|
prefix=/usr
|
|
exec_prefix=${prefix}
|
|
libdir=${exec_prefix}/lib
|
|
includedir=${prefix}/include
|
|
|
|
Name: libdisplay-info
|
|
Description: libdisplay-info compatibility shim for Redox
|
|
Version: 0.2.0
|
|
Libs: -L${libdir} -ldisplay-info
|
|
Cflags: -I${includedir}
|
|
EOF
|
|
"""
|