From a5fddbb4cc3d79c2bc49af58b33af630552dcd0a Mon Sep 17 00:00:00 2001 From: Josh Megnauth <jo.sh@tutanota.com> Date: Wed, 30 Oct 2024 02:29:29 -0400 Subject: [PATCH] Add working build script for GLEW I left GLEW in WIP until one of us tests it. However, it compiles fine so I'll submit it for now. --- recipes/wip/libs/other/glew/recipe.toml | 29 ++++++++++++++++++++----- 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/recipes/wip/libs/other/glew/recipe.toml b/recipes/wip/libs/other/glew/recipe.toml index ac93c3eec..ec0fcb39b 100644 --- a/recipes/wip/libs/other/glew/recipe.toml +++ b/recipes/wip/libs/other/glew/recipe.toml @@ -1,10 +1,27 @@ -#TODO missing script for "make", see https://github.com/nigels-com/glew#linux-and-mac -#TODO add the GLEW_OSMESA flag to enable the Mesa off-screen rendering +# TODO Needs testing, but it compiles now + [source] git = "https://github.com/nigels-com/glew" -rev = "9fb23c3e61cbd2d581e33ff7d8579b572b38ee26" +# rev = "9fb23c3e61cbd2d581e33ff7d8579b572b38ee26" + [build] template = "custom" -dependencies = [ - "mesa", -] +dependencies = ["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 +""" -- GitLab