Skip to content
Snippets Groups Projects
Commit 35cf52d1 authored by Todd Gamblin's avatar Todd Gamblin
Browse files

Merge pull request #707 from dhandeo/visit

VisIt v2.10.1
parents 8ce45d21 ef202fbe
No related branches found
No related tags found
No related merge requests found
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): ...@@ -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): ...@@ -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): ...@@ -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()
......
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")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment