diff options
| author | nibbles 2bits | 2012-08-03 18:08:57 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-03 19:28:25 -0700 |
| commit | 08749cf43504c926e6f6caaffd776abcf6176a09 (patch) | |
| tree | 24cef1b41ffcd06261b7327b5b344a281f20d861 /Library/Formula | |
| parent | 1cd31e942565affb535d538f85d0c2f7bc613b5a (diff) | |
| download | homebrew-08749cf43504c926e6f6caaffd776abcf6176a09.tar.bz2 | |
swig: add --universal option
Swig can build universally and can be used in Graphviz that way.
Add an option for `--universal`
Tested on ML with clan and llvm from XCode-4.4.
Closes #13926.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/swig.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Formula/swig.rb b/Library/Formula/swig.rb index 900ec8895..a298f5499 100644 --- a/Library/Formula/swig.rb +++ b/Library/Formula/swig.rb @@ -7,7 +7,12 @@ class Swig < Formula depends_on 'pcre' + def options + [['--universal', 'Build swig as a universal binary']] + end + def install + ENV.universal_binary if ARGV.build_universal? system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" system "make" |
