2010-04-26 16:29:38 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2012-09-21 03:09:29 +00:00
|
|
|
# Use a mirror because of:
|
|
|
|
# http://lists.cairographics.org/archives/cairo/2012-September/023454.html
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Cairo < Formula
|
2010-04-26 16:29:38 +00:00
|
|
|
homepage 'http://cairographics.org/'
|
2013-08-30 00:03:35 +00:00
|
|
|
url 'http://cairographics.org/releases/cairo-1.12.16.tar.xz'
|
|
|
|
mirror 'https://downloads.sourceforge.net/project/machomebrew/mirror/cairo-1.12.16.tar.xz'
|
|
|
|
sha256 '2505959eb3f1de3e1841023b61585bfd35684b9733c7b6a3643f4f4cbde6d846'
|
2014-03-23 02:09:52 +00:00
|
|
|
revision 1
|
2010-04-26 16:29:38 +00:00
|
|
|
|
2014-02-22 15:18:23 +00:00
|
|
|
bottle do
|
2014-10-19 17:49:33 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "25b504ff3e601cc87d5f64b2bcc04712aef9ba62" => :yosemite
|
|
|
|
sha1 "e111154f2b17cdab98ee0606e286761e72ee019c" => :mavericks
|
|
|
|
sha1 "14926972549bc24365481a627ed8e9d6d02bd2c5" => :mountain_lion
|
2014-02-22 15:18:23 +00:00
|
|
|
end
|
|
|
|
|
2012-08-23 16:49:08 +00:00
|
|
|
keg_only :provided_pre_mountain_lion
|
2012-08-04 09:10:55 +00:00
|
|
|
|
2012-08-10 04:47:23 +00:00
|
|
|
option :universal
|
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2014-03-23 02:09:52 +00:00
|
|
|
depends_on 'freetype'
|
|
|
|
depends_on 'fontconfig'
|
|
|
|
depends_on 'libpng'
|
2013-05-29 16:15:52 +00:00
|
|
|
depends_on 'pixman'
|
2013-12-09 21:10:40 +00:00
|
|
|
depends_on 'glib'
|
2014-04-07 02:50:41 +00:00
|
|
|
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?
|
2012-03-31 11:31:23 +00:00
|
|
|
|
2012-02-16 20:41:29 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-dependency-tracking
|
2012-08-10 04:47:23 +00:00
|
|
|
--prefix=#{prefix}
|
2013-12-09 21:10:40 +00:00
|
|
|
--enable-gobject=yes
|
2014-04-07 02:50:41 +00:00
|
|
|
--with-x
|
2012-08-10 04:47:23 +00:00
|
|
|
]
|
2012-03-31 11:31:23 +00:00
|
|
|
|
2014-04-07 02:50:41 +00:00
|
|
|
if build.without? "x11"
|
|
|
|
args.delete "--with-x"
|
|
|
|
args << "--enable-xlib=no" << "--enable-xlib-xrender=no"
|
2014-06-02 09:40:24 +00:00
|
|
|
args << "--enable-quartz-image"
|
2012-10-27 11:00:50 +00:00
|
|
|
end
|
|
|
|
|
2013-07-10 02:30:15 +00:00
|
|
|
args << '--enable-xcb=no' if MacOS.version <= :leopard
|
2012-02-16 20:41:29 +00:00
|
|
|
|
|
|
|
system "./configure", *args
|
2010-04-26 16:29:38 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|