homebrew-core/Formula/gdk-pixbuf.rb

42 lines
1.3 KiB
Ruby
Raw Normal View History

require 'formula'
class GdkPixbuf < Formula
homepage 'http://gtk.org'
2013-11-11 23:27:42 +00:00
url 'http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/2.30/gdk-pixbuf-2.30.1.tar.xz'
sha256 'a3263b1e15668c009313bf04ab67420bec9f2b167c402a71a486307cadee8d30'
2012-08-10 04:57:05 +00:00
option :universal
depends_on 'pkg-config' => :build
depends_on 'xz' => :build
2011-04-05 03:13:16 +00:00
depends_on 'glib'
depends_on 'jpeg'
depends_on 'libtiff'
depends_on :libpng
depends_on 'gobject-introspection'
# 'loaders.cache' must be writable by other packages
skip_clean 'lib/gdk-pixbuf-2.0'
def install
2012-08-10 04:57:05 +00:00
ENV.universal_binary if build.universal?
system "./configure", "--disable-dependency-tracking",
"--disable-maintainer-mode",
"--enable-debug=no",
"--prefix=#{prefix}",
"--enable-introspection=yes",
"--disable-Bsymbolic",
"--without-gdiplus"
system "make"
system "make install"
# 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
end
end