aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libgdiplus.rb
blob: 166d3953aa5345a687753a44309c2453a67a0b03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require 'formula'

class Libgdiplus < Formula
  url 'http://ftp.novell.com/pub/mono/sources/libgdiplus/libgdiplus-2.10.tar.bz2'
  homepage 'http://www.mono-project.com/Libgdiplus'
  md5 '451966e8f637e3a1f02d1d30f900255d'

  depends_on 'gettext'
  depends_on 'libtiff'
  depends_on 'libexif'
  depends_on 'glib'

  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?

  def install
    ENV.x11

    system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
    system "make install"
  end
end