2010-01-04 23:47:07 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Pixman < Formula
|
2012-03-07 13:54:21 +00:00
|
|
|
homepage 'http://cairographics.org/'
|
|
|
|
url 'http://cairographics.org/releases/pixman-0.24.4.tar.gz'
|
|
|
|
sha1 'efaa09789128ebc42d17a11d2e350b7217a7cd05'
|
2010-01-04 23:47:07 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-01-04 23:47:07 +00:00
|
|
|
|
2012-04-03 21:01:31 +00:00
|
|
|
fails_with :llvm do
|
|
|
|
build 2336
|
|
|
|
cause <<-EOS.undent
|
|
|
|
Building with llvm-gcc causes PDF rendering issues in Cairo.
|
|
|
|
https://trac.macports.org/ticket/30370
|
|
|
|
See Homebrew issues #6631, #7140, #7463, #7523.
|
|
|
|
EOS
|
|
|
|
end
|
2012-03-18 20:33:24 +00:00
|
|
|
|
2012-02-04 06:19:46 +00:00
|
|
|
def options
|
|
|
|
[["--universal", "Build a universal binary."]]
|
|
|
|
end
|
|
|
|
|
2010-01-04 23:47:07 +00:00
|
|
|
def install
|
2012-02-28 23:30:07 +00:00
|
|
|
ENV.x11
|
2012-02-04 06:19:46 +00:00
|
|
|
ENV.universal_binary if ARGV.build_universal?
|
|
|
|
|
|
|
|
# Disable gtk as it is only used to build tests
|
2011-03-14 21:39:00 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
2012-02-04 06:19:46 +00:00
|
|
|
"--enable-gtk=no"
|
2010-01-04 23:47:07 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|