810d9f3ef5
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
38 lines
1,005 B
Ruby
38 lines
1,005 B
Ruby
require 'formula'
|
|
|
|
class Pixman < Formula
|
|
homepage 'http://cairographics.org/'
|
|
url 'http://cairographics.org/releases/pixman-0.26.2.tar.gz'
|
|
sha256 'c9ab554b5160679d958bfa1753cb9e6edd1e53c4745c963a1394eea4f0b13ce2'
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
keg_only :provided_by_osx,
|
|
"Apple provides an outdated version of libpixman in its X11 distribution." \
|
|
if MacOS::X11.installed?
|
|
|
|
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?
|
|
|
|
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
|
|
system "make install"
|
|
end
|
|
end
|