mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-05-11 19:31:41 +00:00
[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:
parent
67f32ac3a4
commit
b70b2b7f9e
1 changed files with 16 additions and 1 deletions
17
.github/workflows/build-coop.yaml
vendored
17
.github/workflows/build-coop.yaml
vendored
|
|
@ -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: |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue