From 947a1f06b6783a3c35341cb43576e49a3b4e324a Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 24 Dec 2012 21:30:45 -0600 Subject: sdl: HEAD fixups Fixes #16734. --- Library/Formula/sdl.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3