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-03-09 02:31:32 +00:00
|
|
|
# 'loaders.cache' must be writable by other packages
|
2012-03-08 23:52:05 +00:00
|
|
|
skip_clean 'lib/gdk-pixbuf-2.0'
|
|
|
|
|
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"
|
2012-03-09 02:31:32 +00:00
|
|
|
|
|
|
|
# Other packages should use the top-level modules directory
|
|
|
|
# rather than dumping their files into the gdk-pixbuf keg.
|
|
|
|
inreplace lib/'pkgconfig/gdk-pixbuf-2.0.pc' do |s|
|
|
|
|
libv = s.get_make_var 'gdk_pixbuf_binary_version'
|
|
|
|
s.change_make_var! 'gdk_pixbuf_binarydir',
|
|
|
|
HOMEBREW_PREFIX/'lib/gdk-pixbuf-2.0'/libv
|
|
|
|
end
|
2011-03-25 20:02:55 +00:00
|
|
|
end
|
|
|
|
end
|