aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Harrison2012-02-04 00:05:49 -0600
committerAdam Vandenberg2012-02-04 08:13:47 -0800
commit3655fb42de79621457036fcde5632e1cf08ae0b9 (patch)
tree920b945d6085f28f5ae40aff5ec4fa8fd91ef99f
parentee2f5ae2284e7a3002f17653c0cd5f250558eec2 (diff)
downloadhomebrew-3655fb42de79621457036fcde5632e1cf08ae0b9.tar.bz2
ATK: support --universal
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/atk.rb12
1 files changed, 8 insertions, 4 deletions
diff --git a/Library/Formula/atk.rb b/Library/Formula/atk.rb
index 363acc880..ecce4ad43 100644
--- a/Library/Formula/atk.rb
+++ b/Library/Formula/atk.rb
@@ -8,11 +8,15 @@ class Atk < Formula
depends_on 'pkg-config' => :build
depends_on 'glib'
+ def options
+ [["--universal", "Builds a universal binary"]]
+ end
+
def install
- args = ["--prefix=#{prefix}",
- "--disable-dependency-tracking",
- "--enable-introspection=no"]
- system "./configure", *args
+ ENV.universal_binary if ARGV.build_universal?
+ system "./configure", "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ "--enable-introspection=no"
system "make"
system "make install"
end