aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2009-09-25 16:53:05 -0700
committerMax Howell2009-09-29 23:33:22 +0100
commit9dd53a6047d10354ce0955d37313cbcdbd5c3f85 (patch)
tree237c6854e60d6e7cfa441e2f421426d98e375713 /Library
parent7188420deaaa64a6a7914f7f15388f44222fec30 (diff)
downloadhomebrew-9dd53a6047d10354ce0955d37313cbcdbd5c3f85.tar.bz2
Formula for SDL_mixer
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/sdl_mixer.rb25
1 files changed, 25 insertions, 0 deletions
diff --git a/Library/Formula/sdl_mixer.rb b/Library/Formula/sdl_mixer.rb
new file mode 100644
index 000000000..60b287562
--- /dev/null
+++ b/Library/Formula/sdl_mixer.rb
@@ -0,0 +1,25 @@
+require 'brewkit'
+
+class SdlMixer <Formula
+ url 'http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.8.tar.gz'
+ homepage 'http://www.libsdl.org/projects/SDL_mixer/'
+ md5 '0b5b91015d0f3bd9597e094ba67c4d65'
+
+ depends_on 'sdl'
+
+ def install
+ # We use a private include folder, and then
+ # symlink the header file ourselves.
+ # See: http://github.com/mxcl/homebrew/issues#issue/62
+ system "./configure", "--prefix=#{prefix}",
+ "--includedir=#{prefix}/priv_include",
+ "--disable-debug",
+ "--disable-dependency-tracking"
+ system "make install"
+
+ # Hack alert:
+ # Since SDL is installed as a depency, we know it exists, so we
+ # symlink our new header file into its brewed location.
+ system "ln", "-s", "#{prefix}/priv_include/SDL/SDL_mixer.h", "#{HOMEBREW_PREFIX}/include/SDL"
+ end
+end