aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-24 10:42:48 -0700
committerAdam Vandenberg2012-08-24 10:42:48 -0700
commit6c498e1f5612a67ac8a90e944fa2a99a527eb53f (patch)
treea09f4d5499a041774a5063486536831028d71eed
parent2aaaa7f52855c8d525ac96485d243c7b2d37f60d (diff)
downloadhomebrew-6c498e1f5612a67ac8a90e944fa2a99a527eb53f.tar.bz2
libpng: --universal
-rw-r--r--Library/Formula/libpng.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Formula/libpng.rb b/Library/Formula/libpng.rb
index e5b076fcf..0ef31b722 100644
--- a/Library/Formula/libpng.rb
+++ b/Library/Formula/libpng.rb
@@ -7,6 +7,8 @@ class Libpng < Formula
keg_only :provided_pre_mountain_lion
+ option :universal
+
bottle do
sha1 '83c6be83e86404f41982e5e1e6877924fe737bdf' => :mountainlion
sha1 '9a86cc5cec4cb19bd04c7c1e93595d96ebcde66f' => :lion
@@ -14,7 +16,9 @@ class Libpng < Formula
end
def install
- system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
+ ENV.universal_binary if build.universal?
+ system "./configure", "--disable-dependency-tracking",
+ "--prefix=#{prefix}"
system "make install"
end
end