summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/chill/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/chill/package.py')
-rw-r--r--var/spack/repos/builtin/packages/chill/package.py20
1 files changed, 19 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/chill/package.py b/var/spack/repos/builtin/packages/chill/package.py
index 96afa55379..1358453b09 100644
--- a/var/spack/repos/builtin/packages/chill/package.py
+++ b/var/spack/repos/builtin/packages/chill/package.py
@@ -29,6 +29,12 @@ class Chill(AutotoolsPackage):
depends_on('flex', type='build')
# Does not currrently work with Python3
depends_on('python@2.7:2.8')
+ depends_on('isl', type='build')
+ depends_on('gmp', type='build')
+
+ patch('Add-ISLHOME-option.patch')
+ patch('Add-GMPHOME-option.patch')
+ patch('Add-GCC-libquadmath-for-rose.patch')
build_directory = 'spack-build'
@@ -40,27 +46,39 @@ class Chill(AutotoolsPackage):
rose_home = self.spec['rose'].prefix
boost_home = self.spec['boost'].prefix
iegen_home = self.spec['iegenlib'].prefix
+ isl_home = self.spec['isl'].prefix
+ gmp_home = self.spec['gmp'].prefix
env.set('ROSEHOME', rose_home)
env.set('BOOSTHOME', boost_home)
env.set('IEGENHOME', iegen_home)
+ env.set('ISLHOME', isl_home)
+ env.set('GMPHOME', gmp_home)
env.append_path('LD_LIBRARY_PATH', rose_home.lib)
env.append_path('LD_LIBRARY_PATH', boost_home.lib)
env.append_path('LD_LIBRARY_PATH', iegen_home.lib)
+ env.append_path('LD_LIBRARY_PATH', isl_home.lib)
+ env.append_path('LD_LIBRARY_PATH', gmp_home.lib)
def setup_run_environment(self, env):
rose_home = self.spec['rose'].prefix
boost_home = self.spec['boost'].prefix
iegen_home = self.spec['iegenlib'].prefix
+ isl_home = self.spec['isl'].prefix
+ gmp_home = self.spec['gmp'].prefix
env.append_path('LD_LIBRARY_PATH', rose_home.lib)
env.append_path('LD_LIBRARY_PATH', boost_home.lib)
env.append_path('LD_LIBRARY_PATH', iegen_home.lib)
+ env.append_path('LD_LIBRARY_PATH', isl_home.lib)
+ env.append_path('LD_LIBRARY_PATH', gmp_home.lib)
def configure_args(self):
args = ['--with-rose={0}'.format(self.spec['rose'].prefix),
'--with-boost={0}'.format(self.spec['boost'].prefix),
- '--with-iegen={0}'.format(self.spec['iegenlib'].prefix)]
+ '--with-iegen={0}'.format(self.spec['iegenlib'].prefix),
+ '--with-isl={0}'.format(self.spec['isl'].prefix),
+ '--with-gmp={0}'.format(self.spec['gmp'].prefix)]
return args