2011-03-25 20:02:55 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class GdkPixbuf < Formula
|
|
|
|
homepage 'http://gtk.org'
|
2012-08-15 17:50:03 +00:00
|
|
|
url 'http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/2.26/gdk-pixbuf-2.26.2.tar.xz'
|
|
|
|
sha256 '3555521050e30e2fa090bfe650910c14649b6ab0acb35a5a7eaf90fe694f1403'
|
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
|