Ticket #38995: Portfile

File Portfile, 2.0 KB (added by dstrubbe (David Strubbe), 11 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$
3
4PortSystem          1.0
5PortGroup           active_variants 1.1
6
7name                etsf_io
8version             1.0.3
9categories          science
10platforms           darwin
11license             LGPL-2.1
12maintainers         gmail.com:dstrubbe
13description         A library of F90 routines to read/write the ETSF_IO file format.
14long_description    A library of F90 routines to read/write the common ETSF_IO file format developed by \
15                    the European Theoretical Spectroscopy Facility (ETSF) for electronic-structure codes.
16homepage            http://www.etsf.eu/resources/software/libraries_and_tools
17master_sites        http://www.etsf.eu/system/files
18
19checksums           rmd160  df90acd34b0de104a07844ae2c9694edf27519c6 \
20                    sha1    ab3c4cb22ea2fc2498b396f186f221edd2463fcc
21
22depends_lib         port:netcdf-fortran
23
24configure.args      --with-netcdf-module-path=${prefix}/include \
25                    --with-netcdf-ldflags=-L${prefix}/lib \
26                    FCFLAGS=-O3 CFLAGS=-O3
27
28use_parallel_build  yes
29
30# it is not clear how to set the netcdf-module-path appropriately for +universal
31# it could be ${prefix}/mod32/include or ${prefix}/mod64/include instead of above
32universal_variant   no
33
34test.run            yes
35test.cmd            make
36test.target         check
37
38variant gcc46 conflicts gcc47 description {Build with GCC 4.6} {
39    configure.compiler  macports-gcc-4.6
40    depends_lib-append  port:gcc46
41    require_active_variants netcdf-fortran gcc46
42}
43variant gcc47 conflicts gcc46 description {Build with GCC 4.7} {
44    configure.compiler  macports-gcc-4.7
45    depends_lib-append  port:gcc47
46    require_active_variants netcdf-fortran gcc47
47}
48
49if {![variant_isset gcc46]} {
50    default_variants    +gcc47
51}
52
53livecheck.url       ${homepage}
54livecheck.type      regex
55livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}