source: trunk/dports/science/splash/Portfile

Last change on this file was 142558, checked in by mmoll@…, 2 years ago

rev bump ports that depend on hdf5 (possibly via a variant). See #49687

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
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 142558 2015-11-15 17:24:00Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup compilers 1.0
6
7name                splash
8version             2.5.1
9revision            2
10categories          science graphics
11platforms           darwin
12maintainers         monash.edu:daniel.price
13description         Smoothed Particle Hydrodynamics visualisation tool
14long_description    SPLASH is a tool for visualisation of (mainly astrophysical) \
15                    Smoothed Particle Hydrodynamics simulations
16
17homepage            http://users.monash.edu.au/~dprice/splash
18master_sites        ${homepage}/releases/
19license             GPL-2+
20
21worksrcdir          ${name}
22
23checksums           rmd160  5c87a5394c53b0f1b9a0e89170bc8ea8a7ed77b3 \
24                    sha256  57d9eb6c8ff411ffc19e6be976debed2fd1bc1dcbe52cb42c30f5e05f6d37918
25
26default_variants    +giza
27
28use_configure       no
29
30compilers.setup     require_fortran -dragonegg -g95 -gcc44 -clang -llvm
31
32build.cmd           make
33build.args          SYSTEM=gfortran CC=${configure.cc} FC=${configure.fc}
34
35destroot.args       PREFIX=${prefix}
36use_parallel_build  no
37
38variant giza description {use giza as the backend graphics library} conflicts pgplot {
39   depends_lib-append      path:lib/pkgconfig/cairo.pc:cairo \
40                           port:xorg-libX11
41   build.args-append       X11DIR=${prefix} X11LIBS='-L${prefix}/lib -lX11'
42}
43
44variant pgplot description {use PGPLOT as the backend graphics library} conflicts giza {
45   depends_lib-append      port:pgplot
46   build.env-append        PGPLOT_DIR=${prefix}/lib \
47                           PGPLOT_DEV=/xw
48   build.args-append       BACKEND=pgplot
49}
50
51build.args-append   FC="${configure.fc}" \
52                    CC="${configure.cc}"
53
54pre-build {
55    build.args-append CC=${configure.cc} FC=${configure.fc}
56}
57
58variant hdf5 description {compiles data reads that depend on HDF5} {
59   build.args-append       gadgethdf5 amuse_hdf5 HDF5ROOT=${prefix}
60   depends_lib-append      port:hdf5
61}
62
63variant h5part description {compiles H5Part data read} {
64   build.args-append       h5part HDF5ROOT=${prefix} H5PART_DIR=${prefix} H5PART_LIBS="-L${prefix}/lib -lH5Part"
65   depends_lib-append      port:H5Part
66}
67
68variant read_extraformats1 description {compiles additional data reads: foulkes, mbatesph, oilonwater, rsph, urban (f/b/o/r/usplash)} conflicts read_extraformats2 {
69   build.args-append       foulkes mbatesph oilonwater rsph urban
70}
71
72variant read_extraformats2 description {compiles additional data reads: Bauswein, UCLA, vanaverbeke data read (bsplash, usplash, vsplash)} conflicts read_extraformats1 {
73   build.args-append       bauswein ucla vanaverbeke
74}
Note: See TracBrowser for help on using the repository browser.