39d3d562b5
This causes configure to pick the wrong libpixman on at least 10.6, and issues with SVG on at least 10.7. So remove it, and we'll try to fix any remaining issues with a different approach, e.g. special ENV vars for freetype. cf Homebrew/homebrew#11036, Homebrew/homebrew#11042, Homebrew/homebrew#11049. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
27 lines
695 B
Ruby
27 lines
695 B
Ruby
require 'formula'
|
|
|
|
class Cairo < Formula
|
|
homepage 'http://cairographics.org/'
|
|
url 'http://www.cairographics.org/releases/cairo-1.10.2.tar.gz'
|
|
sha1 'ccce5ae03f99c505db97c286a0c9a90a926d3c6e'
|
|
|
|
depends_on 'pkg-config' => :build
|
|
depends_on 'pixman'
|
|
|
|
keg_only :provided_by_osx,
|
|
"The Cairo provided by Leopard is too old for newer software to link against."
|
|
|
|
fails_with_llvm "Throws an 'lto could not merge' error during build.", :build => 2336
|
|
|
|
def install
|
|
args = %W[
|
|
--disable-dependency-tracking
|
|
--prefix=#{prefix}
|
|
--with-x
|
|
]
|
|
args << '--enable-xcb' unless MacOS.leopard?
|
|
|
|
system "./configure", *args
|
|
system "make install"
|
|
end
|
|
end
|