1import config.package 2 3class Configure(config.package.GNUPackage): 4 def __init__(self, framework): 5 config.package.GNUPackage.__init__(self, framework) 6 self.gitcommit = 'master' 7 self.download = ['git://https://github.com/CSCsw/ColPack.git'] 8 self.includes = ['ColPack/ColPackHeaders.h'] 9 self.liblist = [['libColPack.a']] 10 self.functionsCxx = [1,'void current_time();','current_time()'] 11 self.requirescxx11 = 1 12 self.cxx = 1 13 self.precisions = ['double'] 14 self.complex = 0 15 self.builddir = 'yes' 16 return 17 18 def setupDependencies(self, framework): 19 config.package.Package.setupDependencies(self, framework) 20 self.openmp = framework.require('config.packages.openmp',self) 21 self.deps = [self.openmp] 22 return 23 24 def formGNUConfigureArgs(self): 25 import os 26 self.packageDir = os.path.join(self.packageDir,'build','automake') 27 args = config.package.GNUPackage.formGNUConfigureArgs(self) 28 # args.append('--enable-examples=no') # this option doesn't work to prevent processing examples 29 # args.append('--enable-openmp=no') # this option doesn't work, the OpenMP is hardwired in the source code 30 return args 31