aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2014-04-04 19:38:29 -0500
committerJack Nagel2014-04-04 19:38:44 -0500
commit9f7b476e195440582d692cd3fecce777ffa73e1c (patch)
tree008613758cd9f31d639bedfeba159fbe4066d7b4 /Library/Formula
parent9c9470cd7afab5cc10a7e86d4242359c83922e24 (diff)
downloadhomebrew-9f7b476e195440582d692cd3fecce777ffa73e1c.tar.bz2
sdl_sound: modernize autotools bootstrap
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/sdl_sound.rb15
1 files changed, 6 insertions, 9 deletions
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",