aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libyaml.rb
diff options
context:
space:
mode:
authorWilliam Woodall2011-08-07 21:26:49 -0500
committerAdam Vandenberg2011-08-13 20:39:30 -0700
commit8b60bb4db71004890c62e339374ecf5d79c29220 (patch)
treee294d5cc9389398fe235a6de12d54f68b725f8d1 /Library/Formula/libyaml.rb
parent8de63fcf47caf99048a1387d1e64edd460a5e799 (diff)
downloadhomebrew-8b60bb4db71004890c62e339374ecf5d79c29220.tar.bz2
libyaml: support universal builds
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/libyaml.rb')
-rw-r--r--Library/Formula/libyaml.rb18
1 files changed, 16 insertions, 2 deletions
diff --git a/Library/Formula/libyaml.rb b/Library/Formula/libyaml.rb
index 4dda35bc8..a999cace6 100644
--- a/Library/Formula/libyaml.rb
+++ b/Library/Formula/libyaml.rb
@@ -5,8 +5,22 @@ class Libyaml < Formula
homepage 'http://pyyaml.org/wiki/LibYAML'
md5 '36c852831d02cf90508c29852361d01b'
+ def options
+ [
+ ["--universal", "Build for both 32 & 64 bit Intel."],
+ ]
+ end
+
def install
- system "./configure", "--prefix=#{prefix}"
+ args = ["--prefix=#{prefix}"]
+
+ if ARGV.build_universal?
+ ENV['CFLAGS'] = "-arch i386 -arch x86_64"
+ ENV['LDFLAGS'] = "-arch i386 -arch x86_64"
+ args << "--disable-dependency-tracking"
+ end
+
+ system './configure', *args
system "make install"
end
-end
+end \ No newline at end of file