diff options
| author | Jack Nagel | 2012-12-24 21:30:45 -0600 |
|---|---|---|
| committer | Jack Nagel | 2012-12-24 21:31:12 -0600 |
| commit | 947a1f06b6783a3c35341cb43576e49a3b4e324a (patch) | |
| tree | f23b6e5b6d7dd604785299bdaeba62c9800debd1 /Library/Formula | |
| parent | e2fe41bd6b0f7df3d39db9f904f00980b09e5a02 (diff) | |
| download | homebrew-947a1f06b6783a3c35341cb43576e49a3b4e324a.tar.bz2 | |
sdl: HEAD fixups
Fixes #16734.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/sdl.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Library/Formula/sdl.rb b/Library/Formula/sdl.rb index 195e981c3..21b8a1781 100644 --- a/Library/Formula/sdl.rb +++ b/Library/Formula/sdl.rb @@ -18,7 +18,11 @@ class Sdl < Formula # we have to do this because most build scripts assume that all sdl modules # are installed to the same prefix. Consequently SDL stuff cannot be # keg-only but I doubt that will be needed. - inreplace %w[sdl.pc.in sdl-config.in], '@prefix@', HOMEBREW_PREFIX + if build.stable? + inreplace %w[sdl.pc.in sdl-config.in], '@prefix@', HOMEBREW_PREFIX + else + inreplace %w[sdl2.pc.in sdl2-config.in], '@prefix@', HOMEBREW_PREFIX + end ENV.universal_binary if build.universal? @@ -34,7 +38,7 @@ class Sdl < Formula system "make install" # Copy source files needed for Ojective-C support. - libexec.install Dir["src/main/macosx/*"] + libexec.install Dir["src/main/macosx/*"] unless build.head? end def test |
