aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-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