redox/recipes/wip/graphics/shaders/glsl-viewer/recipe.toml
2024-07-14 17:17:29 +00:00

31 lines
856 B
TOML

#TODO maybe incomplete script, see https://github.com/patriciogonzalezvivo/glslViewer/wiki/Compile-on-linux#3-compile
#TODO port to orbital
[source]
git = "https://github.com/patriciogonzalezvivo/glslViewer"
rev = "7eb6254cb4cedf03f1c78653f90905fe0c3b48fb"
[build]
template = "custom"
dependencies = [
"mesa-glu",
"ncurses",
"ncursesw",
"ffmpeg6",
"glfw",
]
script = """
export CPPFLAGS="-I${COOKBOOK_SYSROOT}/include/ncurses"
COOKBOOK_CONFIGURE="cmake"
COOKBOOK_CONFIGURE_FLAGS=(
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_CROSSCOMPILING=True
-DCMAKE_EXE_LINKER_FLAGS="-static"
-DCMAKE_INSTALL_PREFIX="/"
-DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
-DCMAKE_SYSTEM_NAME=Generic
-DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
-DCMAKE_VERBOSE_MAKEFILE=On
"${COOKBOOK_SOURCE}"
)
cookbook_configure
"""