aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
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