source: trunk/dports/science/netcdf-fortran/Portfile

Last change on this file was 153926, checked in by takeshi@…, 9 months ago

netcdf-fortran: update to 4.4.4

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 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 153926 2016-10-16 05:39:46Z ryandesign@macports.org $
3
4PortSystem                  1.0
5PortGroup                   muniversal 1.0
6PortGroup                   mpi 1.0
7PortGroup                   github 1.0
8# Although CMakeLists.txt is provided nf-config is not yet ported.
9
10# netcdf-fortran does not require the fortran interface of hdf5.
11# enforcing hdf5 variant does not allow installation of
12# hdf5+cxx (w/o a fortran variant) and netcdf-fortran.
13#mpi.enforce_variant         hdf5
14
15github.setup                Unidata netcdf-fortran 4.4.4 v
16maintainers                 takeshi openmaintainer
17platforms                   darwin
18categories                  science
19license                     Permissive
20
21description                 NetCDF Fortran Library
22long_description \
23    The Unidata network Common Data Form (netCDF) is an interface \
24    for scientific data access and a set of freely-distributed \
25    software libraries that provide an implementation of the interface. \
26    The netCDF library also defines a machine-independent format for \
27    representing scientific data. Together, the interface, library, \
28    and format support the creation, access, and sharing of scientific data. \
29    This software package provides Fortran application interfaces \
30    for accessing netCDF data.
31
32checksums           rmd160  e09445545d8a835e3df78f63a2a0e725616a259f \
33                    sha256  c4f2fc229c03c0b4f633838d9000070e9468a7108bb70e9838e9510aeb0b93a6
34
35compilers.choose    f77 f90 fc
36mpi.setup           require_fortran
37
38depends_lib         port:netcdf
39
40# Fortran compilers can not cross-compile
41if {${os.arch} eq "i386"} {
42    set universal_archs_supported "i386 x86_64"
43} else {
44    set universal_archs_supported "ppc ppc64"
45}
46
47patchfiles          nawk.patch
48if {[variant_isset universal]} {
49    patchfiles-append   patch-Makefile.in.diff
50}
51
52post-patch {
53    if {[variant_isset g95]} {
54        reinplace "s|lt_cv_ld_force_load=yes|lt_cv_ld_force_load=no|" ${worksrcpath}/configure
55    }
56}
57
58configure.cppflags-append   -DNDEBUG \
59                            -DpgiFortran
60configure.cflags-append     -fno-common
61if {[variant_isset g95]} {
62    configure.fflags-append     -fno-second-underscore
63    configure.fcflags-append    -fno-second-underscore
64    configure.ldflags-append    -lf95
65}
66
67test.run                    yes
68test.target                 check
Note: See TracBrowser for help on using the repository browser.