Ticket #28811: Portfile

File Portfile, 2.8 KB (added by danieljprice (Daniel Price), 13 years ago)

port file

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$
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
19distfiles           ${name}-${version}.tar.gz
20worksrcdir          ${name}
21
22checksums           sha1     ad6593ca892e6f400b19556bf695b56d9303554b \
23                    rmd160   fab3970055412a026ae7ace6907af678a215784b
24
25depends_build       
26
27default_variants    +gcc44 +pgplot
28
29use_configure       no
30
31build.cmd           make SYSTEM=gfortran
32
33destroot.args       PREFIX=${prefix}
34use_parallel_build  no
35
36variant pgplot description {use PGPLOT as the backend graphics library} {
37   depends_lib      port:pgplot
38   build.env        PGPLOT_DIR=${prefix}/lib \
39                    PGPLOT_DEV=/xw
40}
41
42variant gcc46 description {build with gfortran/gcc v4.6} conflicts gcc42 gcc43 gcc44 gcc45 {
43   depends_build    port:gcc46
44   build.cmd        make SYSTEM=gfortran F90C=gfortran-mp-4.6
45}
46
47variant gcc45 description {build with gfortran/gcc v4.5} conflicts gcc42 gcc43 gcc44 gcc46 {
48   depends_build    port:gcc45
49   build.cmd        make SYSTEM=gfortran F90C=gfortran-mp-4.5
50}
51
52variant gcc44 description {build with gfortran/gcc v4.4} conflicts gcc42 gcc43 gcc45 gcc46 {
53   depends_build    port:gcc44
54   build.cmd        make SYSTEM=gfortran F90C=gfortran-mp-4.4
55}
56
57variant gcc43 description {build with gfortran/gcc v4.3} conflicts gcc42 gcc44 gcc45 gcc46 {
58   depends_build    port:gcc43
59   build.cmd        make SYSTEM=gfortran F90C=gfortran-mp-4.3
60}
61
62variant gcc42 description {build with gfortran/gcc v4.2} conflicts gcc43 gcc44 gcc45 gcc46 {
63   depends_build    port:gcc42
64   build.cmd        make SYSTEM=gfortran F90C=gfortran-mp-4.2
65}
66
67variant read_hdf5formats description {compiles data reads that depend on HDF5} conflicts read_extraformats1 {
68   build.args       flash HDF5ROOT=${prefix}
69   depends_lib      port:hdf5
70}
71
72variant read_extraformats1 description {compiles additional data reads: foulkes, mbatesph, oilonwater, rsph, urban (f/b/o/r/usplash)} conflicts read_extraformats2 {
73   build.args       all foulkes mbatesph oilonwater rsph urban
74}
75
76variant read_extraformats2 description {compiles additional data reads: Bauswein, UCLA, vanaverbeke data read (bsplash, usplash, vsplash)} conflicts read_extraformats1 {
77   build.args       all bauswein ucla vanaverbeke
78}