diff options
| author | William Woodall | 2011-08-07 21:26:49 -0500 |
|---|---|---|
| committer | Adam Vandenberg | 2011-08-13 20:39:30 -0700 |
| commit | 8b60bb4db71004890c62e339374ecf5d79c29220 (patch) | |
| tree | e294d5cc9389398fe235a6de12d54f68b725f8d1 | |
| parent | 8de63fcf47caf99048a1387d1e64edd460a5e799 (diff) | |
| download | homebrew-8b60bb4db71004890c62e339374ecf5d79c29220.tar.bz2 | |
libyaml: support universal builds
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/libyaml.rb | 18 |
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 |
