aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2009-10-20 20:11:35 -0700
committerAdam Vandenberg2009-10-20 20:12:30 -0700
commitc21db3bad5b5941a913b3f6b250421d2d2c47adb (patch)
treedb0266e2e87443ef042a3b244ba689d65697c360 /Library/Formula
parent54d838395a1529a21b0b4d7fb18d841d96a05a66 (diff)
downloadhomebrew-c21db3bad5b5941a913b3f6b250421d2d2c47adb.tar.bz2
Update SDL for Snow Leopard. Add libmikmod.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/libmikmod.rb12
-rw-r--r--Library/Formula/sdl.rb11
-rw-r--r--Library/Formula/sdl_image.rb4
-rw-r--r--Library/Formula/sdl_mixer.rb34
4 files changed, 23 insertions, 38 deletions
diff --git a/Library/Formula/libmikmod.rb b/Library/Formula/libmikmod.rb
new file mode 100644
index 000000000..4a163d5fa
--- /dev/null
+++ b/Library/Formula/libmikmod.rb
@@ -0,0 +1,12 @@
+require 'formula'
+
+class Libmikmod <Formula
+ url 'http://mikmod.raphnet.net/files/libmikmod-3.2.0-beta2.tar.bz2'
+ homepage 'http://mikmod.raphnet.net/'
+ md5 '5b05f3b1167eba7855b8e38bde2b8070'
+
+ def install
+ system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
+ system "make install"
+ end
+end
diff --git a/Library/Formula/sdl.rb b/Library/Formula/sdl.rb
index 021af2314..ac1ea92f3 100644
--- a/Library/Formula/sdl.rb
+++ b/Library/Formula/sdl.rb
@@ -1,19 +1,14 @@
require 'formula'
class Sdl <Formula
- @url='http://www.libsdl.org/release/SDL-1.2.13.tar.gz'
- @homepage='http://www.libsdl.org/index.php'
- @md5='c6660feea2a6834de10bc71b2f8e4d88'
-
- def patches
- { :p0 => "http://methylblue.com/junk/libsdl-1.2.13-10.6.patch" }
- end
+ url 'http://www.libsdl.org/release/SDL-1.2.14.tar.gz'
+ homepage 'http://www.libsdl.org/'
+ md5 'e52086d1b508fa0b76c52ee30b55bec4'
def install
ENV.gcc_4_2
system "./configure", "--prefix=#{prefix}", "--disable-debug",
"--disable-dependency-tracking",
- "--disable-video-x11",
"--disable-nasm"
system "make install"
diff --git a/Library/Formula/sdl_image.rb b/Library/Formula/sdl_image.rb
index 9645e51f1..dc8a26d5d 100644
--- a/Library/Formula/sdl_image.rb
+++ b/Library/Formula/sdl_image.rb
@@ -1,9 +1,9 @@
require 'formula'
class SdlImage <Formula
- url 'http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.7.tar.gz'
+ url 'http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.8.tar.gz'
homepage 'http://www.libsdl.org/projects/SDL_image'
- md5 'a729ff61f74f0a45ec7fe36354cf938e'
+ md5 '2e7c3efa0ec2acc039c46960e27c0792'
depends_on 'libpng'
depends_on 'sdl'
diff --git a/Library/Formula/sdl_mixer.rb b/Library/Formula/sdl_mixer.rb
index 7e28c713c..eab4f2057 100644
--- a/Library/Formula/sdl_mixer.rb
+++ b/Library/Formula/sdl_mixer.rb
@@ -1,17 +1,15 @@
require 'formula'
class SdlMixer <Formula
- url 'http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.8.tar.gz'
+ url 'http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.9.tar.gz'
homepage 'http://www.libsdl.org/projects/SDL_mixer/'
- md5 '0b5b91015d0f3bd9597e094ba67c4d65'
+ md5 'a9eb8750e920829ff41dbe7555850156'
depends_on 'sdl'
+ depends_on 'flac' => :optional
+ depends_on 'libmikmod' => :optional
+ #depends_on 'smpeg' => :optional # http://icculus.org/smpeg/
- def patches
- # http://www.libsdl.org/cgi/viewvc.cgi/trunk/SDL_mixer/configure.in?r1=4868&r2=4867&pathrev=4868
- DATA
- end
-
def install
# We use a private include folder, and then
# symlink the header file ourselves.
@@ -19,9 +17,7 @@ class SdlMixer <Formula
system "./configure", "--prefix=#{prefix}",
"--includedir=#{prefix}/priv_include",
"--disable-debug",
- "--disable-dependency-tracking",
- # http://trac.macports.org/changeset/58317
- "--disable-music-native-midi"
+ "--disable-dependency-tracking"
system "make install"
# Hack alert:
@@ -30,21 +26,3 @@ class SdlMixer <Formula
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