2011-04-12 17:42:25 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libagg < Formula
|
|
|
|
homepage 'http://www.antigrain.com'
|
|
|
|
url 'http://www.antigrain.com/agg-2.5.tar.gz'
|
|
|
|
md5 '0229a488bc47be10a2fee6cf0b2febd6'
|
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'sdl'
|
2012-02-27 03:44:55 +00:00
|
|
|
depends_on "automake" if MacOS.xcode_version >= "4.3"
|
2011-04-12 17:42:25 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
ENV.x11 # For freetype
|
|
|
|
|
|
|
|
# No configure script. We need to run autoreconf, and aclocal and automake
|
|
|
|
# need some direction.
|
2012-02-27 03:44:55 +00:00
|
|
|
ENV['ACLOCAL'] = "aclocal -I#{HOMEBREW_PREFIX}/share/aclocal" # To find SDL m4 files
|
2011-04-12 17:42:25 +00:00
|
|
|
# This part snatched from MacPorts
|
2012-02-27 03:44:55 +00:00
|
|
|
ENV['AUTOMAKE'] = "automake --foreign --add-missing --ignore-deps"
|
|
|
|
system "autoreconf -fi"
|
2011-04-12 17:42:25 +00:00
|
|
|
|
|
|
|
system "./configure",
|
|
|
|
"--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--disable-platform", # Causes undefined symbols
|
|
|
|
"--disable-ctrl", # No need to run these during configuration
|
|
|
|
"--disable-examples",
|
|
|
|
"--disable-sdltest"
|
|
|
|
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|