From 07cef83cd79be9be84334c4debe45b9ba30a9b07 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 24 Aug 2014 19:46:33 -0500 Subject: sdl: avoid repeated conditional --- Library/Formula/sdl.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Library/Formula/sdl.rb b/Library/Formula/sdl.rb index 3a8b3995b..9d8d409c7 100644 --- a/Library/Formula/sdl.rb +++ b/Library/Formula/sdl.rb @@ -28,6 +28,12 @@ class Sdl < Formula depends_on "autoconf" => :build depends_on "automake" => :build depends_on "libtool" => :build + + # Fix build against recent libX11; requires regenerating configure script + patch do + url "http://hg.libsdl.org/SDL/raw-rev/91ad7b43317a" + sha1 "1b35949d9ac360a7e39aac76d1f0a6ad5381b0f4" + end end # Fix for a bug preventing SDL from building at all on OSX 10.9 Mavericks @@ -43,12 +49,6 @@ class Sdl < Formula sha1 "08c19f077f56217fd300db390bca4c1a0bee0622" end - # Fix build against recent libX11; requires regenerating configure script - patch do - url "http://hg.libsdl.org/SDL/raw-rev/91ad7b43317a" - sha1 "1b35949d9ac360a7e39aac76d1f0a6ad5381b0f4" - end if build.with? "x11-driver" - def install # we have to do this because most build scripts assume that all sdl modules # are installed to the same prefix. Consequently SDL stuff cannot be -- cgit v1.2.3