2010-04-26 16:29:38 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Cairo < Formula
|
2010-04-26 16:29:38 +00:00
|
|
|
homepage 'http://cairographics.org/'
|
2011-03-26 23:14:00 +00:00
|
|
|
url 'http://www.cairographics.org/releases/cairo-1.10.2.tar.gz'
|
2011-03-28 15:53:37 +00:00
|
|
|
sha1 'ccce5ae03f99c505db97c286a0c9a90a926d3c6e'
|
2010-04-26 16:29:38 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-04-26 16:29:38 +00:00
|
|
|
depends_on 'pixman'
|
|
|
|
|
2011-03-16 05:01:31 +00:00
|
|
|
keg_only :provided_by_osx,
|
|
|
|
"The Cairo provided by Leopard is too old for newer software to link against."
|
2010-04-26 16:29:38 +00:00
|
|
|
|
2011-12-25 23:49:45 +00:00
|
|
|
fails_with_llvm "Throws an 'lto could not merge' error during build.", :build => 2336
|
2011-05-10 21:24:49 +00:00
|
|
|
|
2010-04-26 16:29:38 +00:00
|
|
|
def install
|
2012-02-16 20:41:29 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--with-x
|
|
|
|
]
|
|
|
|
args << '--enable-xcb' unless MacOS.leopard?
|
|
|
|
|
|
|
|
system "./configure", *args
|
2010-04-26 16:29:38 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|