aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorNax2013-08-28 14:53:14 +0200
committerAdam Vandenberg2013-08-28 06:47:47 -0700
commitaaa932d8c54d94f317bc34e2b9ed901c954f36dc (patch)
treed5647d293effd245c79564ca915e419e9112504c /Library
parent9358d31fccbd7cf37ef86142a491ef3466f0497c (diff)
downloadhomebrew-aaa932d8c54d94f317bc34e2b9ed901c954f36dc.tar.bz2
SDL2_ttf 2.0.12
A very simple formula to install sdl2_ttf. Closes #22171. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/sdl2_ttf.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Formula/sdl2_ttf.rb b/Library/Formula/sdl2_ttf.rb
new file mode 100644
index 000000000..b0db19111
--- /dev/null
+++ b/Library/Formula/sdl2_ttf.rb
@@ -0,0 +1,20 @@
+require 'formula'
+
+class Sdl2Ttf < Formula
+ homepage 'http://www.libsdl.org/projects/SDL_ttf/'
+ url 'http://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.12.tar.gz'
+ sha1 '542865c604fe92d2f26000428ef733381caa0e8e'
+
+ depends_on 'sdl2'
+ depends_on 'freetype'
+ option :universal
+
+ def install
+ ENV.universal_binary if build.universal?
+ inreplace 'SDL2_ttf.pc.in', '@prefix@', HOMEBREW_PREFIX
+
+ system "./configure", "--disable-dependency-tracking",
+ "--prefix=#{prefix}"
+ system "make", "install"
+ end
+end