1 | # -*- 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 |
---|
2 | # $Id: Portfile 79469 2011-06-14 15:45:16Z pixilla@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name splash |
---|
7 | version 1.14.1 |
---|
8 | categories science graphics |
---|
9 | platforms darwin |
---|
10 | maintainers monash.edu:daniel.price |
---|
11 | description Smoothed Particle Hydrodynamics visualisation tool |
---|
12 | long_description SPLASH is a tool for visualisation of (mainly astrophysical) \ |
---|
13 | Smoothed Particle Hydrodynamics simulations |
---|
14 | |
---|
15 | homepage http://users.monash.edu.au/~dprice/splash |
---|
16 | master_sites ${homepage}/download/ |
---|
17 | license GPL-2+ |
---|
18 | |
---|
19 | worksrcdir ${name} |
---|
20 | |
---|
21 | checksums rmd160 fab3970055412a026ae7ace6907af678a215784b \ |
---|
22 | sha1 ad6593ca892e6f400b19556bf695b56d9303554b |
---|
23 | |
---|
24 | if { ![variant_isset gcc42] && ![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc45] && ![variant_isset gcc46]} { |
---|
25 | default_variants +gcc44 |
---|
26 | } |
---|
27 | default_variants +pgplot |
---|
28 | |
---|
29 | use_configure no |
---|
30 | |
---|
31 | build.cmd make |
---|
32 | build.args SYSTEM=gfortran |
---|
33 | |
---|
34 | destroot.args PREFIX=${prefix} |
---|
35 | use_parallel_build no |
---|
36 | |
---|
37 | variant pgplot description {use PGPLOT as the backend graphics library} { |
---|
38 | depends_lib-append port:pgplot |
---|
39 | build.env-append PGPLOT_DIR=${prefix}/lib \ |
---|
40 | PGPLOT_DEV=/xw |
---|
41 | } |
---|
42 | |
---|
43 | variant gcc46 description {build with gfortran/gcc v4.6} conflicts gcc42 gcc43 gcc44 gcc45 { |
---|
44 | depends_build-append port:gcc46 |
---|
45 | build.args-append F90C=gfortran-mp-4.6 |
---|
46 | } |
---|
47 | |
---|
48 | variant gcc45 description {build with gfortran/gcc v4.5} conflicts gcc42 gcc43 gcc44 gcc46 { |
---|
49 | depends_build-append port:gcc45 |
---|
50 | build.args-append F90C=gfortran-mp-4.5 |
---|
51 | } |
---|
52 | |
---|
53 | variant gcc44 description {build with gfortran/gcc v4.4} conflicts gcc42 gcc43 gcc45 gcc46 { |
---|
54 | depends_build-append port:gcc44 |
---|
55 | build.args-append F90C=gfortran-mp-4.4 |
---|
56 | } |
---|
57 | |
---|
58 | variant gcc43 description {build with gfortran/gcc v4.3} conflicts gcc42 gcc44 gcc45 gcc46 { |
---|
59 | depends_build-append port:gcc43 |
---|
60 | build.args-append F90C=gfortran-mp-4.3 |
---|
61 | } |
---|
62 | |
---|
63 | variant gcc42 description {build with gfortran/gcc v4.2} conflicts gcc43 gcc44 gcc45 gcc46 { |
---|
64 | depends_build-append port:gcc42 |
---|
65 | build.args-append F90C=gfortran-mp-4.2 |
---|
66 | } |
---|
67 | |
---|
68 | variant read_hdf5formats description {compiles data reads that depend on HDF5} conflicts read_extraformats1 { |
---|
69 | build.args-append flash HDF5ROOT=${prefix} |
---|
70 | depends_lib-append port:hdf5 |
---|
71 | } |
---|
72 | |
---|
73 | variant read_extraformats1 description {compiles additional data reads: foulkes, mbatesph, oilonwater, rsph, urban (f/b/o/r/usplash)} conflicts read_hdf5formats read_extraformats2 { |
---|
74 | build.args-append all foulkes mbatesph oilonwater rsph urban |
---|
75 | } |
---|
76 | |
---|
77 | variant read_extraformats2 description {compiles additional data reads: Bauswein, UCLA, vanaverbeke data read (bsplash, usplash, vsplash)} conflicts read_extraformats1 { |
---|
78 | build.args-append all bauswein ucla vanaverbeke |
---|
79 | } |
---|