aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2012-04-16 12:28:06 -0500
committerJack Nagel2012-04-16 12:28:06 -0500
commit513314f4994b964a9216e067fa848f931e33eedf (patch)
tree26b1f70455ba4afe97918af5b7a1d47b3fcf3bbd
parent854795904fd583d9dfd24416207b4fddce47e93c (diff)
downloadhomebrew-513314f4994b964a9216e067fa848f931e33eedf.tar.bz2
sdl_mixer: use inreplace directly
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
-rw-r--r--Library/Formula/sdl_mixer.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Formula/sdl_mixer.rb b/Library/Formula/sdl_mixer.rb
index 80e1bb677..9101b8b79 100644
--- a/Library/Formula/sdl_mixer.rb
+++ b/Library/Formula/sdl_mixer.rb
@@ -1,5 +1,4 @@
require 'formula'
-require Formula.path('sdl')
class SdlMixer < Formula
url 'http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.11.tar.gz'
@@ -12,7 +11,7 @@ class SdlMixer < Formula
depends_on 'libvorbis' => :optional
def install
- Sdl.use_homebrew_prefix 'SDL_mixer.pc.in'
+ inreplace 'SDL_mixer.pc.in', '@prefix@', HOMEBREW_PREFIX
system "./configure", "--prefix=#{prefix}",
"--disable-dependency-tracking"