Ticket #30392: Portfile

File Portfile, 3.0 KB (added by danieljprice (Daniel Price), 10 years ago)
Line 
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
4PortSystem          1.0
5
6name                splash
7version             1.14.1
8categories          science graphics
9platforms           darwin
10maintainers         monash.edu:daniel.price
11description         Smoothed Particle Hydrodynamics visualisation tool
12long_description    SPLASH is a tool for visualisation of (mainly astrophysical) \
13                    Smoothed Particle Hydrodynamics simulations
14                   
15homepage            http://users.monash.edu.au/~dprice/splash
16master_sites        ${homepage}/download/
17license             GPL-2+
18
19worksrcdir          ${name}
20
21checksums           rmd160  fab3970055412a026ae7ace6907af678a215784b \
22                    sha1    ad6593ca892e6f400b19556bf695b56d9303554b
23
24if { ![variant_isset gcc42] && ![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc45] && ![variant_isset gcc46]} {
25   default_variants      +gcc44
26}
27default_variants    +pgplot
28
29use_configure       no
30
31build.cmd           make
32build.args          SYSTEM=gfortran
33
34destroot.args       PREFIX=${prefix}
35use_parallel_build  no
36
37variant 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
43variant 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
48variant 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
53variant 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
58variant 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
63variant 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
68variant 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
73variant 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
77variant 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}