From 3498f2b3684925532dcdd3ed522aa420d11c4f65 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 2 Sep 2012 01:10:01 -0700 Subject: sdl: fix SHA1, test and X11 dependency. --- Library/Formula/sdl.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3