homebrew-core/Formula/cairo.rb

52 lines
1.3 KiB
Ruby
Raw Normal View History

require "formula"
2010-04-26 16:29:38 +00:00
2011-03-10 05:11:03 +00:00
class Cairo < Formula
homepage "http://cairographics.org/"
url "http://cairographics.org/releases/cairo-1.14.0.tar.xz"
2014-10-31 21:50:47 +00:00
mirror "http://www.mirrorservice.org/sites/ftp.netbsd.org/pub/pkgsrc/distfiles/cairo-1.14.0.tar.xz"
sha256 "2cf5f81432e77ea4359af9dcd0f4faf37d015934501391c311bfd2d19a0134b7"
2010-04-26 16:29:38 +00:00
2014-02-22 15:18:23 +00:00
bottle do
2015-01-26 08:49:16 +00:00
revision 2
sha1 "9030254d5fb307ff28cddfad5a545ec09a64aa32" => :yosemite
sha1 "811b32fefaa1d57e1ef044a05c1e6d0181554b63" => :mavericks
sha1 "4d37e02c3ad9136eaf14a98c6a666d5c39a3766d" => :mountain_lion
2014-02-22 15:18:23 +00:00
end
keg_only :provided_pre_mountain_lion
2012-08-04 09:10:55 +00:00
2012-08-10 04:47:23 +00:00
option :universal
depends_on "pkg-config" => :build
depends_on "freetype"
depends_on "fontconfig"
depends_on "libpng"
depends_on "pixman"
depends_on "glib"
depends_on :x11 => :recommended
2011-05-10 21:24:49 +00:00
2010-04-26 16:29:38 +00:00
def install
2012-08-10 04:47:23 +00:00
ENV.universal_binary if build.universal?
args = %W[
--disable-dependency-tracking
2012-08-10 04:47:23 +00:00
--prefix=#{prefix}
--enable-gobject=yes
--enable-svg=yes
--enable-tee=yes
--with-x
2012-08-10 04:47:23 +00:00
]
if build.without? "x11"
args.delete "--with-x"
args << "--enable-xlib=no" << "--enable-xlib-xrender=no"
args << "--enable-quartz-image"
end
args << "--enable-xcb=no" if MacOS.version <= :leopard
system "./configure", *args
2010-04-26 16:29:38 +00:00
system "make install"
end
end