Skip to content
Snippets Groups Projects
Verified Commit a5fddbb4 authored by Josh Megnauth's avatar Josh Megnauth
Browse files

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.
parent e3793456
No related branches found
No related tags found
1 merge request!414Add working build script for GLEW
#TODO missing script for "make", see https://github.com/nigels-com/glew#linux-and-mac # TODO Needs testing, but it compiles now
#TODO add the GLEW_OSMESA flag to enable the Mesa off-screen rendering
[source] [source]
git = "https://github.com/nigels-com/glew" git = "https://github.com/nigels-com/glew"
rev = "9fb23c3e61cbd2d581e33ff7d8579b572b38ee26" # rev = "9fb23c3e61cbd2d581e33ff7d8579b572b38ee26"
[build] [build]
template = "custom" template = "custom"
dependencies = [ dependencies = ["mesa", "mesa-glu"]
"mesa", 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
"""
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment