aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-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