# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 PortGroup compilers 1.0 PortGroup github 1.0 github.setup danieljprice splash 3.11.5 v github.tarball_from releases distname ${name}-v${version} revision 0 checksums rmd160 d51c2101c908fbc846d5366a770c378e1c8ccc35 \ sha256 357d217c0bd61b7346f32f713d4315339fbf559eec289bcc57645bdc4215ff63 \ size 2609758 categories science graphics maintainers {monash.edu:daniel.price @danieljprice} openmaintainer description Smoothed Particle Hydrodynamics visualisation tool long_description SPLASH is a tool for visualisation of (mainly astrophysical) \ Smoothed Particle Hydrodynamics simulations homepage https://users.monash.edu.au/~dprice/splash license GPL-2+ worksrcdir ${name} if {![variant_isset pgplot]} { default_variants +giza } use_configure no # Xcode clang of 10.7 fails with error: # work/.tmp/cciqeg1w.s:1174:2: error: invalid instruction mnemonic 'cvtsi2sdl' etc. # https://github.com/william-dawson/NTPoly/issues/192 # Note: This fixes same errors from gfortran, as well as clang. compiler.blacklist-append \ {clang < 500} compilers.setup require_fortran -g95 -gcc44 -clang build.cmd make build.args SYSTEM=gfortran CC=${configure.cc} FC=${configure.fc} PREFIX=${prefix} destroot.args PREFIX=${prefix} use_parallel_build no variant giza description {use giza as the backend graphics library} conflicts pgplot { depends_lib-append port:giza build.args-append X11DIR=${prefix} X11LIBS='-L${prefix}/lib -lX11' } variant pgplot description {use PGPLOT as the backend graphics library} conflicts giza { depends_lib-append port:pgplot build.env-append PGPLOT_DIR=${prefix}/lib \ PGPLOT_DEV=/xw build.args-append BACKEND=pgplot } build.args-append FC="${configure.fc}" \ CC="${configure.cc}" pre-build { build.args-append CC=${configure.cc} FC=${configure.fc} } variant hdf5 description {compiles data reads that depend on HDF5} { build.args-append gadgethdf5 amuse_hdf5 cactus_hdf5 HDF5ROOT=${prefix} depends_lib-append port:hdf5 } variant h5part description {compiles H5Part data read} { build.args-append h5part HDF5ROOT=${prefix} H5PART_DIR=${prefix} H5PART_LIBS="-L${prefix}/lib -lH5Part" depends_lib-append port:H5Part } variant read_extraformats1 description {compiles additional data reads: foulkes, mbatesph, oilonwater, rsph, urban (f/b/o/r/usplash)} conflicts read_extraformats2 { build.args-append foulkes mbatesph oilonwater rsph urban } variant read_extraformats2 description {compiles additional data reads: Bauswein, UCLA, vanaverbeke data read (bsplash, usplash, vsplash)} conflicts read_extraformats1 { build.args-append bauswein ucla vanaverbeke }