redox/recipes/wip/libs/graphics/glew/recipe.toml
2026-10-12 16:58:46 -03:00

36 lines
946 B
TOML

#TODO: compile and test
[source]
tar = "https://github.com/nigels-com/glew/releases/download/glew-2.3.1/glew-2.3.1.tgz"
[build]
template = "custom"
dependencies = [
"libxi",
"libxmu",
"mesa-x11",
"mesa-glu-x11",
]
script = """
DYNAMIC_INIT
COOKBOOK_CMAKE_FLAGS+=(
-DOPENGL_opengl_LIBRARY="/dev/null"
-DOPENGL_glx_LIBRARY="/dev/null"
-DBUILD_UTILS=OFF
)
cookbook_cmake "${COOKBOOK_SOURCE}"/build/cmake
# # Build system is a standalone Makefile
# COOKBOOK_CONFIGURE="true"
# COOKBOOK_CONFIGURE_FLAGS=""
#
# # See Makefile for variables to override
# export GLEW_PREFIX="/usr"
# export GLEW_DEST="/usr"
# export PYTHON="python3"
#
# rsync -av --delete "${COOKBOOK_SOURCE}/" ./
#
# # The auto directory needs to be built first and can't be built in parallel
# # because the Makefile creates files (using Perl and Python!!) that are needed later
# "${COOKBOOK_MAKE}" -C "${COOKBOOK_BUILD}/auto"
# cookbook_configure
"""