From b70b2b7f9ec56e9d906cf796f7a763f9ec43fbe0 Mon Sep 17 00:00:00 2001 From: EmeraldLockdown <86802223+EmeraldLoc@users.noreply.github.com> Date: Sun, 28 Sep 2025 18:47:36 -0500 Subject: [PATCH] [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 :( --- .github/workflows/build-coop.yaml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-coop.yaml b/.github/workflows/build-coop.yaml index f13fe0bf4..70803349e 100644 --- a/.github/workflows/build-coop.yaml +++ b/.github/workflows/build-coop.yaml @@ -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: |