homebrew-core/Formula/eigen.rb
nibbles 2bits ab5448abfe eigen: add :universal option
Add the `option :universal` to eigen. Tested with clang and llvm
from XCode-4.4.1.

Closes Homebrew/homebrew#14304.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-08-21 07:05:08 -07:00

24 lines
587 B
Ruby

require 'formula'
class Eigen < Formula
homepage 'http://eigen.tuxfamily.org/'
url 'http://bitbucket.org/eigen/eigen/get/3.1.1.tar.bz2'
sha1 '9530601b340bdf679d56bd0de63927cab0c5fb82'
depends_on 'cmake' => :build
option :universal
def install
ENV.fortran
ENV.universal_binary if build.universal?
mkdir 'eigen-build' do
args = std_cmake_args
args.delete '-DCMAKE_BUILD_TYPE=None'
args << '-DCMAKE_BUILD_TYPE=Release'
args << "-Dpkg_config_libdir=#{lib}" << '..'
system 'cmake', *args
system 'make install'
end
end
end