Browse Source

package/homebrew: "fix" linking against OpenGL.

I don't know what's going on, nor I want to deal with this right now.
This matches the change they did to the Bullet package. In my opinion
this should not be needed at all, it should work correctly by default.
Fortunately it's just one crap package manager on a single shit platform.
pull/650/head
Vladimír Vondruš 2 years ago
parent
commit
617d317ad5
  1. 9
      package/homebrew/magnum.rb

9
package/homebrew/magnum.rb

@ -19,7 +19,14 @@ class Magnum < Formula
system "mkdir build"
cd "build" do
system "cmake",
*std_cmake_args,
# Without this, the build of magnum-gl-info fails on CMake 3.30.3
# because of unresolved references to CGL. The same problem affected
# Bullet (https://github.com/bulletphysics/bullet3/issues/4659) and the
# fix in https://github.com/Homebrew/homebrew-core/pull/189186 is to
# add this, which ultimately results in `-DCMAKE_FIND_FRAMEWORK=FIRST`
# being passed to CMake. No idea what's going on, the regular CI build
# outside of Homebrew (although with CMake 3.26) doesn't need that.
*std_cmake_args(find_framework: "FIRST"),
# Without this, ARM builds will try to look for dependencies in
# /usr/local/lib and /usr/lib (which are the default locations) instead
# of /opt/homebrew/lib which is dedicated for ARM binaries. Please

Loading…
Cancel
Save