commit
35cf52d182
@ -1,5 +1,6 @@
|
|||||||
from spack import *
|
from spack import *
|
||||||
|
|
||||||
|
|
||||||
class Silo(Package):
|
class Silo(Package):
|
||||||
"""Silo is a library for reading and writing a wide variety of scientific
|
"""Silo is a library for reading and writing a wide variety of scientific
|
||||||
data to binary, disk files."""
|
data to binary, disk files."""
|
||||||
@ -12,6 +13,7 @@ class Silo(Package):
|
|||||||
version('4.8', 'b1cbc0e7ec435eb656dc4b53a23663c9')
|
version('4.8', 'b1cbc0e7ec435eb656dc4b53a23663c9')
|
||||||
|
|
||||||
variant('fortran', default=True, description='Enable Fortran support')
|
variant('fortran', default=True, description='Enable Fortran support')
|
||||||
|
variant('shared', default=True, description='Build shared libraries')
|
||||||
variant('silex', default=False, description='Builds Silex, a GUI for viewing Silo files')
|
variant('silex', default=False, description='Builds Silex, a GUI for viewing Silo files')
|
||||||
|
|
||||||
depends_on('hdf5')
|
depends_on('hdf5')
|
||||||
@ -21,6 +23,7 @@ def install(self, spec, prefix):
|
|||||||
config_args = [
|
config_args = [
|
||||||
'--enable-fortran' if '+fortran' in spec else '--disable-fortran',
|
'--enable-fortran' if '+fortran' in spec else '--disable-fortran',
|
||||||
'--enable-silex' if '+silex' in spec else '--disable-silex',
|
'--enable-silex' if '+silex' in spec else '--disable-silex',
|
||||||
|
'--enable-shared' if '+shared' in spec else '--disable-shared',
|
||||||
]
|
]
|
||||||
|
|
||||||
if '+silex' in spec:
|
if '+silex' in spec:
|
||||||
@ -30,6 +33,7 @@ def install(self, spec, prefix):
|
|||||||
'--prefix=%s' % prefix,
|
'--prefix=%s' % prefix,
|
||||||
'--with-hdf5=%s,%s' % (spec['hdf5'].prefix.include, spec['hdf5'].prefix.lib),
|
'--with-hdf5=%s,%s' % (spec['hdf5'].prefix.include, spec['hdf5'].prefix.lib),
|
||||||
'--with-zlib=%s,%s' % (spec['zlib'].prefix.include, spec['zlib'].prefix.lib),
|
'--with-zlib=%s,%s' % (spec['zlib'].prefix.include, spec['zlib'].prefix.lib),
|
||||||
|
'--enable-install-lite-headers',
|
||||||
*config_args)
|
*config_args)
|
||||||
|
|
||||||
make()
|
make()
|
||||||
|
31
var/spack/repos/builtin/packages/visit/package.py
Normal file
31
var/spack/repos/builtin/packages/visit/package.py
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
from spack import *
|
||||||
|
|
||||||
|
|
||||||
|
class Visit(Package):
|
||||||
|
"""VisIt is an Open Source, interactive, scalable, visualization, animation and analysis tool."""
|
||||||
|
homepage = "https://wci.llnl.gov/simulation/computer-codes/visit/"
|
||||||
|
url = "http://portal.nersc.gov/project/visit/releases/2.10.1/visit2.10.1.tar.gz"
|
||||||
|
|
||||||
|
version('2.10.1', '3cbca162fdb0249f17c4456605c4211e')
|
||||||
|
version('2.10.2', '253de0837a9d69fb689befc98ea4d068')
|
||||||
|
|
||||||
|
depends_on("vtk@6.1.0~opengl2")
|
||||||
|
depends_on("qt@4.8.6")
|
||||||
|
depends_on("python")
|
||||||
|
depends_on("silo+shared")
|
||||||
|
|
||||||
|
def install(self, spec, prefix):
|
||||||
|
with working_dir('spack-build', create=True):
|
||||||
|
|
||||||
|
feature_args = std_cmake_args[:]
|
||||||
|
feature_args.extend(["-DVTK_MAJOR_VERSION=6",
|
||||||
|
"-DVTK_MINOR_VERSION=1",
|
||||||
|
"-DVISIT_LOC_QMAKE_EXE:FILEPATH=%s/qmake-qt4" % spec['qt'].prefix.bin,
|
||||||
|
"-DPYTHON_EXECUTABLE:FILEPATH=%s/python" % spec['python'].prefix.bin,
|
||||||
|
"-DVISIT_SILO_DIR:PATH=%s" % spec['silo'].prefix,
|
||||||
|
"-DVISIT_HDF5_DIR:PATH=%s" % spec['hdf5'].prefix])
|
||||||
|
|
||||||
|
cmake('../src', *feature_args)
|
||||||
|
|
||||||
|
make()
|
||||||
|
make("install")
|
Loading…
Reference in New Issue
Block a user