Update SDL_mixer for 10.6.
Updated configure args and a patch for SDL_mixer to allow it to compile under Snow Leopard.master
parent
83ffaf6ee9
commit
afbd41fed9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue