Skip to content

Commit

Permalink
sdl: fix SHA1, test and X11 dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid committed Sep 5, 2012
1 parent 9a6ab3a commit 3498f2b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Library/Formula/sdl.rb
Expand Up @@ -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
Expand All @@ -30,11 +28,16 @@ def install
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"

# Copy source files needed for Ojective-C support.
libexec.install Dir["src/main/macosx/*"]
end

def test
system "#{bin}/sdl-config", "--version"
end
end

0 comments on commit 3498f2b

Please sign in to comment.