Try to fix the glew recipe

This commit is contained in:
Ribbon 2026-05-16 04:14:47 -03:00
parent 900c5deef1
commit 9b0681d1bc

View File

@ -1,27 +1,36 @@
#TODO: compiled but not tested
#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",
"mesa",
"mesa-glu",
]
script = """
# 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 GLEW_OSMESA
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
DYNAMIC_INIT
COOKBOOK_CMAKE_FLAGS+=(
-DGLEW_X11=OFF
-DGLEW_OSMESA=ON
)
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
"""