aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJohn Harrison2012-02-04 00:19:46 -0600
committerAdam Vandenberg2012-02-04 08:21:56 -0800
commitb62ec0dc3ae29106ffa286f1c16fff86acb3917c (patch)
treed1b221d74b6d48d3a16ad2920787fea91ec7a216 /Library/Formula
parent5e20999845e97f20a364d660c0416e29fc7dddf5 (diff)
downloadhomebrew-b62ec0dc3ae29106ffa286f1c16fff86acb3917c.tar.bz2
pixman: support --universal
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/pixman.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/Library/Formula/pixman.rb b/Library/Formula/pixman.rb
index 88e0c0989..6e7735596 100644
--- a/Library/Formula/pixman.rb
+++ b/Library/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