diff options
| author | Nibbles 2bits | 2012-03-03 12:54:15 -0800 |
|---|---|---|
| committer | Jack Nagel | 2012-03-23 18:08:04 -0500 |
| commit | 9b885f654ef985d5d6c72bea8e0cd3fa76f54bf2 (patch) | |
| tree | 0715aabc8a4eb723e1082d84f6d43d9afedb5e0d /Library | |
| parent | 64e489663add868db679cca2186ff8d7796e5d9e (diff) | |
| download | homebrew-9b885f654ef985d5d6c72bea8e0cd3fa76f54bf2.tar.bz2 | |
sdl_sound: fix head build with XCode-4.3
sdl_sound contains critical fixes for OSX in head only.
Requests have been made upstream for them to bump their version
that has not changed since 2008.
* Adds autotools deps when XCode is >= 4.3 and building head
* Changes from bootstrap to autoreconf. Bootstrap hardcodes
a path to /usr/bin/glibtoolize and uses a non-standard flag.
* Use env vars to send the flags.
Closes #10667.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/sdl_sound.rb | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/Library/Formula/sdl_sound.rb b/Library/Formula/sdl_sound.rb index ac09c180d..784dc07d9 100644 --- a/Library/Formula/sdl_sound.rb +++ b/Library/Formula/sdl_sound.rb @@ -1,8 +1,8 @@ require 'formula' class SdlSound < Formula - url 'http://icculus.org/SDL_sound/downloads/SDL_sound-1.0.3.tar.gz' homepage 'http://icculus.org/SDL_sound/' + url 'http://icculus.org/SDL_sound/downloads/SDL_sound-1.0.3.tar.gz' md5 'aa09cd52df85d29bee87a664424c94b5' head 'http://hg.icculus.org/icculus/SDL_sound', :using => :hg @@ -15,8 +15,21 @@ class SdlSound < Formula depends_on 'speex' => :optional depends_on 'physfs' => :optional + if ARGV.build_head? and MacOS.xcode_version >= "4.3" + depends_on "automake" => :build + depends_on "libtool" => :build + end + def install - system "./bootstrap" if ARGV.build_head? + if ARGV.build_head? + # Set the environment and call autoreconf, because boostrap.sh + # uses /usr/bin/glibtoolize and a non-standard flag to automake. + ENV['LIBTOOLIZE'] = 'glibtoolize' + ENV['ACLOCAL'] = "aclocal -I #{HOMEBREW_PREFIX}/share/aclocal" + ENV['AUTOMAKE'] = 'automake --foreign' + system "autoreconf -ivf" + end + system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking", "--disable-sdltest" |
