homebrew-core/Formula/pixman.rb

43 lines
1.1 KiB
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/'
url 'http://cairographics.org/releases/pixman-0.26.2.tar.gz'
sha256 'c9ab554b5160679d958bfa1753cb9e6edd1e53c4745c963a1394eea4f0b13ce2'
2010-01-04 23:47:07 +00:00
depends_on 'pkg-config' => :build
depends_on :x11
2010-01-04 23:47:07 +00:00
keg_only :provided_by_osx, <<-EOS.undent
Apple provides an outdated version of libpixman in it's X11 distribution.
A more up-to-date version is available in XQuartz.
EOS
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 options
[["--universal", "Build a universal binary."]]
end
2010-01-04 23:47:07 +00:00
def install
ENV.universal_binary if ARGV.build_universal?
args = %W[--disable-dependency-tracking
--disable-gtk
--prefix=#{prefix}]
args << "--disable-mmx" if ENV.compiler == :clang
# Disable gtk as it is only used to build tests
system "./configure", *args
2010-01-04 23:47:07 +00:00
system "make install"
end
end