diff options
| author | Charlie Sharpsteen | 2011-04-12 10:42:25 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-04-13 12:26:17 -0700 |
| commit | 6005d3b5f730a509ef955398db1bf2ab2d094d17 (patch) | |
| tree | 86175c5d228657fd56f5a518bc38f00e0615613f /Library/Formula | |
| parent | cefd7e9828e4a2dc71b01078cdfee3c01ade4a92 (diff) | |
| download | homebrew-6005d3b5f730a509ef955398db1bf2ab2d094d17.tar.bz2 | |
Anti-Grain Geometry library
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/libagg.rb | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Library/Formula/libagg.rb b/Library/Formula/libagg.rb new file mode 100644 index 000000000..a386b20d4 --- /dev/null +++ b/Library/Formula/libagg.rb @@ -0,0 +1,32 @@ +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' + + def install + ENV.x11 # For freetype + + # No configure script. We need to run autoreconf, and aclocal and automake + # need some direction. + ENV['ACLOCAL'] = "/usr/bin/aclocal -I#{HOMEBREW_PREFIX}/share/aclocal" # To find SDL m4 files + # This part snatched from MacPorts + ENV['AUTOMAKE'] = "/usr/bin/automake --foreign --add-missing --ignore-deps" + system "/usr/bin/autoreconf -fi" + + 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 |
