3ea22c10f4
http://eigen.tuxfamily.org/bz/show_bug.cgi?id=338 has been fixed, but there's not yet a pkgconfig dir under #{prefix}/lib when building, so we need to set pkg_config_libdir or the .pc file gets installed in pkg_config_libdir-NOTFOUND. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
17 lines
433 B
Ruby
17 lines
433 B
Ruby
require 'formula'
|
|
|
|
class Eigen < Formula
|
|
url 'http://bitbucket.org/eigen/eigen/get/3.0.3.tar.bz2'
|
|
homepage 'http://eigen.tuxfamily.org/'
|
|
md5 'bfe750809b54a012a402034a650b4c62'
|
|
|
|
depends_on 'cmake' => :build
|
|
|
|
def install
|
|
mkdir 'eigen-build'
|
|
Dir.chdir 'eigen-build' do
|
|
system "cmake .. #{std_cmake_parameters} -DCMAKE_BUILD_TYPE=Release -Dpkg_config_libdir=#{lib}"
|
|
system "make install"
|
|
end
|
|
end
|
|
end
|