homebrew-core/Formula/swig.rb
nibbles 2bits 765ba399e2 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 Homebrew/homebrew#13926.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-08-03 19:28:25 -07:00

21 lines
537 B
Ruby

require 'formula'
class Swig < Formula
homepage 'http://www.swig.org/'
url 'http://downloads.sourceforge.net/project/swig/swig/swig-2.0.7/swig-2.0.7.tar.gz'
sha1 '307020fb6437092e32c9c1bd9af8bccb1645b529'
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"
system "make install"
end
end