SDL2_ttf 2.0.12

A very simple formula to install sdl2_ttf.

Closes Homebrew/homebrew#22171.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Nax 2013-08-28 14:53:14 +02:00 committed by Adam Vandenberg
parent f5c1bf0ec1
commit ce19c5a439
1 changed files with 20 additions and 0 deletions

20
Formula/sdl2_ttf.rb Normal file
View File

@ -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