diff options
| author | Nibbles 2bits | 2011-10-24 02:54:42 -0700 |
|---|---|---|
| committer | Jack Nagel | 2012-02-06 14:51:54 -0600 |
| commit | ddae24791c9c4a011a776ee61bfdd6f3ed439f28 (patch) | |
| tree | 8ce6db6f1e5607d8e08f3cc01a0e5123ecfdcb85 /Library/Formula | |
| parent | 8f3fcc3aaa92a4fff031a765932097a466e1da13 (diff) | |
| download | homebrew-ddae24791c9c4a011a776ee61bfdd6f3ed439f28.tar.bz2 | |
sdl_sound: add HEAD and update deps
sdl_sound has their stable and development branches under hg rev
at icculus.org. This adds the ability to build HEAD.
Also in this commit are two more optional deps to enhance the
capabilities of sdl_sound if the user wants, speex and physfs.
The --disable-debug was removed as it is the default. The other
flag, --disable-sdl-test seemed misplaced, seeing as we have a dep
on SDL and want it to pick that up as best it can. The boostrap
is in because we are building from hg, and the make check is there
because it takes no time and verifies the multi-library code.
The software builds a playsound cli that the user can run, but no
def test is included.
Closes #8275.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/sdl_sound.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Library/Formula/sdl_sound.rb b/Library/Formula/sdl_sound.rb index a29f8ad8c..4a100daa3 100644 --- a/Library/Formula/sdl_sound.rb +++ b/Library/Formula/sdl_sound.rb @@ -4,6 +4,7 @@ class SdlSound < Formula url 'http://icculus.org/SDL_sound/downloads/SDL_sound-1.0.3.tar.gz' homepage 'http://icculus.org/SDL_sound/' md5 'aa09cd52df85d29bee87a664424c94b5' + head 'http://hg.icculus.org/icculus/SDL_sound', :using => :hg depends_on 'pkg-config' => :build depends_on 'sdl' @@ -11,11 +12,14 @@ class SdlSound < Formula depends_on 'libmikmod' => :optional depends_on 'libogg' => :optional depends_on 'libvorbis' => :optional + depends_on 'speex' => :optional + depends_on 'physfs' => :optional def install - system "./configure", "--disable-debug", "--disable-dependency-tracking", - "--prefix=#{prefix}", - "--disable-sdltest" + system "./bootstrap" if ARGV.build_head? + system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking" + system "make" + system "make check" system "make install" end end |
