aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2009-09-29 20:12:57 -0700
committerMax Howell2009-09-30 18:06:29 +0100
commitc705812ba138200510ea8f3f84a5d5091ea5c4c2 (patch)
tree25bddb3f699239bc455bba2b27cc216ceca4245d /Library/Formula
parentb5de30f0dc2bb65f490665b89f1a22f46df41696 (diff)
downloadhomebrew-c705812ba138200510ea8f3f84a5d5091ea5c4c2.tar.bz2
Update SDL_mixer for 10.6.
Updated configure args and a patch for SDL_mixer to allow it to compile under Snow Leopard.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/sdl_mixer.rb34
1 files changed, 30 insertions, 4 deletions
diff --git a/Library/Formula/sdl_mixer.rb b/Library/Formula/sdl_mixer.rb
index 60b287562..da6c6c448 100644
--- a/Library/Formula/sdl_mixer.rb
+++ b/Library/Formula/sdl_mixer.rb
@@ -6,20 +6,46 @@ class SdlMixer <Formula
md5 '0b5b91015d0f3bd9597e094ba67c4d65'
depends_on 'sdl'
+
+ def patches
+ # http://www.libsdl.org/cgi/viewvc.cgi/trunk/SDL_mixer/configure.in?r1=4868&r2=4867&pathrev=4868
+ DATA
+ end
def install
+ ENV.gcc_4_2
# 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"
+ "--disable-dependency-tracking",
+ # http://trac.macports.org/changeset/58317
+ "--disable-music-native-midi"
system "make install"
-
+
# Hack alert:
- # Since SDL is installed as a depency, we know it exists, so we
+ # Since SDL is installed as a dependency, 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"
+ FileUtils.ln_s "#{prefix}/priv_include/SDL/SDL_mixer.h", "#{HOMEBREW_PREFIX}/include/SDL"
end
end
+
+
+__END__
+--- a/configure.in 2009/09/27 19:23:04 4867
++++ b/configure.in 2009/09/27 19:34:09 4868
+@@ -221,8 +221,10 @@
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lwinmm"
+ ;;
+ *-*-darwin*)
+- use_music_native_midi=yes
+- EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuickTime -Wl,-framework,CoreServices"
++ # This doesn't work on Mac OS X 10.5+
++ # Max Horn (the original author) recommends disabling it for now.
++ #use_music_native_midi=yes
++ #EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuickTime -Wl,-framework,CoreServices"
+ ;;
+ esac
+ if test x$use_music_native_midi = xyes; then