diff --git a/recipes/wip/libs/other/glew/recipe.toml b/recipes/wip/libs/other/glew/recipe.toml index 2f066011..b5edfcca 100644 --- a/recipes/wip/libs/other/glew/recipe.toml +++ b/recipes/wip/libs/other/glew/recipe.toml @@ -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 """