From 9f7b476e195440582d692cd3fecce777ffa73e1c Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 4 Apr 2014 19:38:29 -0500 Subject: sdl_sound: modernize autotools bootstrap --- Library/Formula/sdl_sound.rb | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/sdl_sound.rb b/Library/Formula/sdl_sound.rb index 3703b9ced..f9fd3da76 100644 --- a/Library/Formula/sdl_sound.rb +++ b/Library/Formula/sdl_sound.rb @@ -8,9 +8,9 @@ class SdlSound < Formula head do url 'http://hg.icculus.org/icculus/SDL_sound', :using => :hg - depends_on :autoconf - depends_on :automake - depends_on :libtool + depends_on "autoconf" => :build + depends_on "automake" => :build + depends_on "libtool" => :build end depends_on 'pkg-config' => :build @@ -24,12 +24,9 @@ class SdlSound < Formula def install if 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" + inreplace "bootstrap", "/usr/bin/glibtoolize", + "#{Formula["libtool"].opt_bin}/glibtoolize" + system "./bootstrap" end system "./configure", "--disable-dependency-tracking", -- cgit v1.2.3