2011-03-25 20:02:55 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class GdkPixbuf < Formula
|
|
|
|
homepage 'http://gtk.org'
|
2012-02-05 20:20:29 +00:00
|
|
|
url 'http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/2.24/gdk-pixbuf-2.24.1.tar.xz'
|
|
|
|
sha256 'da7a3f00db360913716368e19e336402755cafa93769f3cfa28a969303e4bee1'
|
2011-03-25 20:02:55 +00:00
|
|
|
|
2012-02-04 06:07:45 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2012-02-18 00:56:36 +00:00
|
|
|
depends_on 'xz' => :build
|
2011-04-05 03:13:16 +00:00
|
|
|
depends_on 'glib'
|
2011-03-29 10:33:33 +00:00
|
|
|
depends_on 'jasper'
|
2011-05-19 14:57:51 +00:00
|
|
|
depends_on 'libtiff'
|
2011-03-29 10:33:33 +00:00
|
|
|
|
2012-02-04 06:07:45 +00:00
|
|
|
def options
|
|
|
|
[["--universal", "Build a universal binary."]]
|
|
|
|
end
|
|
|
|
|
2011-03-25 20:02:55 +00:00
|
|
|
def install
|
2012-02-04 06:07:45 +00:00
|
|
|
ENV.universal_binary if ARGV.build_universal?
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--disable-maintainer-mode",
|
|
|
|
"--enable-debug=no",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--with-libjasper",
|
|
|
|
"--enable-introspection=no",
|
|
|
|
"--disable-Bsymbolic",
|
|
|
|
"--without-gdiplus"
|
2011-10-14 06:10:21 +00:00
|
|
|
system "make"
|
2011-03-25 20:02:55 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|