2009-12-16 12:31:48 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libgdiplus < Formula
|
2011-12-25 02:33:58 +00:00
|
|
|
url 'http://ftp.novell.com/pub/mono/sources/libgdiplus/libgdiplus-2.10.tar.bz2'
|
2009-12-16 12:31:48 +00:00
|
|
|
homepage 'http://www.mono-project.com/Libgdiplus'
|
2011-12-25 02:33:58 +00:00
|
|
|
md5 '451966e8f637e3a1f02d1d30f900255d'
|
2009-12-16 12:31:48 +00:00
|
|
|
|
|
|
|
depends_on 'gettext'
|
|
|
|
depends_on 'libtiff'
|
|
|
|
depends_on 'libexif'
|
|
|
|
depends_on 'glib'
|
|
|
|
|
2011-12-25 02:33:58 +00:00
|
|
|
def patches
|
|
|
|
# fixes compilation against libpng1.5
|
|
|
|
# see https://bugs.gentoo.org/355113
|
|
|
|
# and https://bugzilla.novell.com/show_bug.cgi?id=666583
|
|
|
|
{ :p0 => 'http://cvsweb.se.netbsd.org/cgi-bin/bsdweb.cgi/~checkout~/pkgsrc/graphics/libgdiplus/patches/patch-aa?rev=1.9;content-type=text%2Fplain' }
|
|
|
|
end if MacOS.lion?
|
|
|
|
|
2009-12-16 12:31:48 +00:00
|
|
|
def install
|
2011-12-25 02:33:58 +00:00
|
|
|
ENV.x11
|
|
|
|
|
2009-12-16 12:31:48 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|