blob: cf189e2ec16bd3d3882036385e3d783b237d93e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
require 'formula'
class Pixman < Formula
homepage 'http://cairographics.org/'
url 'http://cairographics.org/releases/pixman-0.30.0.tar.gz'
sha256 '1d812f9f60215099355f5c13c6f06d7db1135c99f34ff03535b71b64435125fd'
depends_on 'pkg-config' => :build
keg_only :provided_pre_mountain_lion
option :universal
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
def install
ENV.universal_binary if build.universal?
# Disable gtk as it is only used to build tests
args = %W[--disable-dependency-tracking
--disable-gtk
--prefix=#{prefix}]
args << "--disable-mmx" if ENV.compiler == :clang
system "./configure", *args
system "make install"
end
end
|