/
Portfile
75 lines (57 loc) · 2.71 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# -*- 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
name splash
version 2.9.1
revision 2
categories science graphics
platforms darwin
maintainers {monash.edu:daniel.price @danieljprice}
description Smoothed Particle Hydrodynamics visualisation tool
long_description SPLASH is a tool for visualisation of (mainly astrophysical) \
Smoothed Particle Hydrodynamics simulations
homepage http://users.monash.edu.au/~dprice/splash
master_sites ${homepage}/releases/
license GPL-2+
worksrcdir ${name}
checksums rmd160 86e3585d601d5a65e2b0b81a14a3f212414eb12f \
sha256 212bbe16c56d1a009acbd263689ef6a30052d5bb4878aad345d97927fbdd1996 \
size 2186770
if {![variant_isset pgplot]} {
default_variants +giza
}
use_configure no
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
}