2011-03-25 20:02:55 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class GdkPixbuf < Formula
|
|
|
|
homepage 'http://gtk.org'
|
2013-09-25 14:57:24 +00:00
|
|
|
url 'http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/2.30/gdk-pixbuf-2.30.0.tar.xz'
|
|
|
|
sha256 '4a73600525621283a14436c5f873c1126c4feafcb07d24a746f13215e2caa658'
|
2011-03-25 20:02:55 +00:00
|
|
|
|
2012-08-10 04:57:05 +00:00
|
|
|
option :universal
|
|
|
|
|
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'
|
2012-10-22 15:20:09 +00:00
|
|
|
depends_on 'jpeg'
|
2011-05-19 14:57:51 +00:00
|
|
|
depends_on 'libtiff'
|
2012-08-23 05:54:46 +00:00
|
|
|
depends_on :libpng
|
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'
|
|
|
|
|
2011-03-25 20:02:55 +00:00
|
|
|
def install
|
2012-08-10 04:57:05 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
2012-02-04 06:07:45 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--disable-maintainer-mode",
|
|
|
|
"--enable-debug=no",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--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
|