2016-01-20 00:26:26 +08:00
|
|
|
##############################################################################
|
2017-09-07 11:44:16 +08:00
|
|
|
# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
|
2016-01-20 00:26:26 +08:00
|
|
|
# Produced at the Lawrence Livermore National Laboratory.
|
|
|
|
#
|
|
|
|
# This file is part of Spack.
|
2016-05-12 12:22:25 +08:00
|
|
|
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
|
2016-01-20 00:26:26 +08:00
|
|
|
# LLNL-CODE-647188
|
|
|
|
#
|
2017-11-05 08:08:04 +08:00
|
|
|
# For details, see https://github.com/spack/spack
|
2017-06-25 13:22:55 +08:00
|
|
|
# Please also see the NOTICE and LICENSE files for our notice and the LGPL.
|
2016-01-20 00:26:26 +08:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
2016-05-12 12:22:25 +08:00
|
|
|
# it under the terms of the GNU Lesser General Public License (as
|
|
|
|
# published by the Free Software Foundation) version 2.1, February 1999.
|
2016-01-20 00:26:26 +08:00
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful, but
|
|
|
|
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
|
2016-05-12 12:22:25 +08:00
|
|
|
# conditions of the GNU Lesser General Public License for more details.
|
2016-01-20 00:26:26 +08:00
|
|
|
#
|
2016-05-12 12:22:25 +08:00
|
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
|
|
# License along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
2016-01-20 00:26:26 +08:00
|
|
|
##############################################################################
|
|
|
|
from spack import *
|
|
|
|
|
|
|
|
|
2017-05-12 08:06:11 +08:00
|
|
|
class Eigen(CMakePackage):
|
2016-08-24 23:32:29 +08:00
|
|
|
"""Eigen is a C++ template library for linear algebra matrices,
|
2016-08-31 05:28:55 +08:00
|
|
|
vectors, numerical solvers, and related algorithms.
|
|
|
|
"""
|
2016-01-20 00:26:26 +08:00
|
|
|
|
|
|
|
homepage = 'http://eigen.tuxfamily.org/'
|
2017-05-12 08:06:11 +08:00
|
|
|
url = 'https://bitbucket.org/eigen/eigen/get/3.3.3.tar.bz2'
|
2016-01-20 00:26:26 +08:00
|
|
|
|
2017-05-12 08:06:11 +08:00
|
|
|
version('3.3.3', 'b2ddade41040d9cf73b39b4b51e8775b')
|
2016-12-11 08:23:20 +08:00
|
|
|
version('3.3.1', 'edb6799ef413b0868aace20d2403864c')
|
2016-10-25 02:09:17 +08:00
|
|
|
version('3.2.10', 'a85bb68c82988648c3d53ba9768d7dcbcfe105f8')
|
|
|
|
version('3.2.9', '59ab81212f8eb2534b1545a9b42c38bf618a0d71')
|
|
|
|
version('3.2.8', '64f4aef8012a424c7e079eaf0be71793ab9bc6e0')
|
|
|
|
version('3.2.7', 'cc1bacbad97558b97da6b77c9644f184')
|
2016-01-20 00:26:26 +08:00
|
|
|
|
|
|
|
variant('metis', default=True, description='Enables metis backend')
|
|
|
|
variant('scotch', default=True, description='Enables scotch backend')
|
|
|
|
variant('fftw', default=True, description='Enables FFTW backend')
|
2016-08-10 16:50:00 +08:00
|
|
|
variant('suitesparse', default=True,
|
|
|
|
description='Enables SuiteSparse support')
|
|
|
|
variant('mpfr', default=True,
|
|
|
|
description='Enables support for multi-precisions FP via mpfr')
|
2017-07-26 07:34:43 +08:00
|
|
|
variant('build_type', default='RelWithDebInfo',
|
|
|
|
description='The build type to build',
|
|
|
|
values=('Debug', 'Release', 'RelWithDebInfo'))
|
2016-01-20 00:26:26 +08:00
|
|
|
|
2016-02-04 23:27:26 +08:00
|
|
|
# TODO : dependency on googlehash, superlu, adolc missing
|
2016-04-06 10:00:28 +08:00
|
|
|
depends_on('metis@5:', when='+metis')
|
2016-01-20 00:26:26 +08:00
|
|
|
depends_on('scotch', when='+scotch')
|
|
|
|
depends_on('fftw', when='+fftw')
|
2016-03-22 16:43:10 +08:00
|
|
|
depends_on('suite-sparse', when='+suitesparse')
|
2017-05-12 08:06:11 +08:00
|
|
|
depends_on('mpfr@2.3.0:', when='+mpfr')
|
|
|
|
depends_on('gmp', when='+mpfr')
|