aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-08-24 19:46:33 -0500
committerJack Nagel2014-08-24 19:46:33 -0500
commit07cef83cd79be9be84334c4debe45b9ba30a9b07 (patch)
tree8182bff9797639f6f3ce0c13e67d1cc993087d42 /Library
parent5490eee66985dae97b8d4f72b11393b5b7e817aa (diff)
downloadhomebrew-07cef83cd79be9be84334c4debe45b9ba30a9b07.tar.bz2
sdl: avoid repeated conditional
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/sdl.rb12
1 files 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