[build] Oh boy...

yea so nothing was working, hell was happening, and I'm resorting to the ugliest solution I wanted to avoid. The glew installer when compiling from source for some reason does NOT include a pc file, which means package config cannot find it, so we are adding it manually here... well if it works it works, if it doesn't gonna not be happy :(
This commit is contained in:
EmeraldLockdown 2025-09-28 18:47:36 -05:00 committed by GitHub
parent 67f32ac3a4
commit b70b2b7f9e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -187,8 +187,23 @@ jobs:
curl -L -o glew.tar.gz https://github.com/nigels-com/glew/releases/download/glew-2.2.0/glew-2.2.0.tgz
tar -xzf glew.tar.gz
cd glew-2.2.0
make SYSTEM=darwin CC="clang -arch arm64 -mmacosx-version-min=11"
make SYSTEM=darwin CC="clang -arch arm64 -mmacosx-version-min=11" GLEW_PREFIX=/opt/homebrew
make install GLEW_PREFIX=/opt/homebrew GLEW_DEST=/opt/homebrew
cat > glew.pc <<'EOF'
prefix=/opt/homebrew
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: glew
Description: The OpenGL Extension Wrangler library
Version: 2.2.0
Cflags: -I${includedir}
Libs: -L${libdir} -lGLEW -framework OpenGL
EOF
sudo mkdir -p /opt/homebrew/lib/pkgconfig
sudo cp glew.pc /opt/homebrew/lib/pkgconfig/
- name: Compile SDL2
run: |