glfw@2: fix dylib ID of libglfw.dylib

the dylib ID ends up as @executable_path/libglfw.dylib unless tweaked
This commit is contained in:
ilovezfs 2017-03-13 08:36:31 -07:00 committed by Mike McQuaid
parent c62d9a7754
commit f9947b8ca9

View file

@ -8,6 +8,8 @@ class GlfwAT2 < Formula
def install def install
system "make", "PREFIX=#{prefix}", "cocoa-dist-install" system "make", "PREFIX=#{prefix}", "cocoa-dist-install"
MachO::Tools.change_dylib_id("#{lib}/libglfw.dylib",
"@opt_lib/libglfw.dylib")
end end
test do test do