homebrew-core/Formula/pixman.rb

37 lines
905 B
Ruby
Raw Normal View History

2010-01-04 23:47:07 +00:00
require 'formula'
2011-03-10 05:11:03 +00:00
class Pixman < Formula
homepage 'http://cairographics.org/'
2013-08-08 00:46:54 +00:00
url 'http://cairographics.org/releases/pixman-0.30.2.tar.gz'
sha256 'bd988920ccd742310ddf5b363c7b278f11d69a3405a09d542162c84b46bff6e9'
2010-01-04 23:47:07 +00:00
depends_on 'pkg-config' => :build
2010-01-04 23:47:07 +00:00
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
2010-01-04 23:47:07 +00:00
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
2010-01-04 23:47:07 +00:00
system "make install"
end
end