aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-12-24 21:30:45 -0600
committerJack Nagel2012-12-24 21:31:12 -0600
commit947a1f06b6783a3c35341cb43576e49a3b4e324a (patch)
treef23b6e5b6d7dd604785299bdaeba62c9800debd1 /Library
parente2fe41bd6b0f7df3d39db9f904f00980b09e5a02 (diff)
downloadhomebrew-947a1f06b6783a3c35341cb43576e49a3b4e324a.tar.bz2
sdl: HEAD fixups
Fixes #16734.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/sdl.rb8
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