From 58712f9468ebd15a4743ac3708901efd1890b6ad Mon Sep 17 00:00:00 2001 From: John Harrison Date: Sat, 4 Feb 2012 00:19:46 -0600 Subject: [PATCH] pixman: support --universal Signed-off-by: Adam Vandenberg --- Formula/pixman.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Formula/pixman.rb b/Formula/pixman.rb index 88e0c09897..6e77355965 100644 --- a/Formula/pixman.rb +++ b/Formula/pixman.rb @@ -7,7 +7,12 @@ class Pixman < Formula depends_on 'pkg-config' => :build + def options + [["--universal", "Build a universal binary."]] + end + def install + ENV.universal_binary if ARGV.build_universal? if ENV.compiler == :llvm if MacOS.xcode_version >= "4.1" ENV.clang @@ -15,9 +20,11 @@ class Pixman < Formula ENV.gcc_4_2 end end + + # Disable gtk as it is only used to build tests system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}", - "--enable-gtk=no" # Don't need to build tests + "--enable-gtk=no" system "make install" end end