aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2012-09-02 01:10:01 -0700
committerMike McQuaid2012-09-04 19:44:44 -0700
commit3498f2b3684925532dcdd3ed522aa420d11c4f65 (patch)
treee64ccc26cddd607778f9d372be9b20c5aad2426d /Library/Formula
parent9a6ab3a6461b768ab0887a6c0b07b5fcf8768531 (diff)
downloadhomebrew-3498f2b3684925532dcdd3ed522aa420d11c4f65.tar.bz2
sdl: fix SHA1, test and X11 dependency.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/sdl.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Formula/sdl.rb b/Library/Formula/sdl.rb
index d895b8420..02d423d52 100644
--- a/Library/Formula/sdl.rb
+++ b/Library/Formula/sdl.rb
@@ -7,8 +7,6 @@ class Sdl < Formula
head 'http://hg.libsdl.org/SDL', :using => :hg
- depends_on :x11
-
if build.head?
depends_on :automake
depends_on :libtool
@@ -30,6 +28,7 @@ class Sdl < Formula
args << "--disable-nasm" unless MacOS.mountain_lion? # might work with earlier, might only work with new clang
# LLVM-based compilers choke on the assembly code packaged with SDL.
args << '--disable-assembly' if ENV.compiler == :llvm or ENV.compiler == :clang and MacOS.clang_build_version < 421
+ args << '--without-x'
system './configure', *args
system "make install"
@@ -37,4 +36,8 @@ class Sdl < Formula
# Copy source files needed for Ojective-C support.
libexec.install Dir["src/main/macosx/*"]
end
+
+ def test
+ system "#{bin}/sdl-config", "--version"
+ end
end