Commits
Takeshi Enomoto authored c121512b885
1 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 2 | # $Id$ |
3 3 | |
4 4 | PortSystem 1.0 |
5 5 | |
6 6 | name netcdf |
7 7 | epoch 1 |
8 8 | version 4.1.1 |
9 - | revision 1 |
9 + | revision 2 |
10 10 | maintainers takeshi openmaintainer |
11 11 | platforms darwin |
12 12 | categories science |
13 13 | |
14 14 | description libraries for array-oriented scientific data |
15 15 | long_description \ |
16 16 | NetCDF (network Common Data Form) is a set of software libraries \ |
17 17 | and machine-independent data formats that support the creation, \ |
18 18 | access, and sharing of array-oriented scientific data. |
19 19 | |
32 32 | |
33 33 | configure.cppflags-append -DNDEBUG |
34 34 | configure.cxxflags-append -fno-common |
35 35 | configure.cflags-append -fno-common |
36 36 | configure.args --enable-shared \ |
37 37 | --disable-fortran-compiler-check \ |
38 38 | --disable-f77 --disable-f90 \ |
39 39 | --disable-netcdf-4 \ |
40 40 | --disable-dap \ |
41 41 | --without-udunits \ |
42 - | --without-libcf \ |
43 - | --with-szlib=${prefix} |
42 + | --without-libcf |
44 43 | |
45 44 | test.run yes |
46 45 | test.target check |
47 46 | |
48 47 | destroot.destdir prefix=${destroot}${prefix} \ |
49 48 | MANDIR=\\\${prefix}/share/man |
50 49 | |
51 50 | post-destroot { |
52 51 | file delete -force ${destroot}${prefix}/share/man/whatis.db |
53 52 | } |
54 53 | |
55 - | depends_build bin:tex:texlive |
56 - | |
57 54 | default_variants +netcdf4 +dap |
58 55 | |
59 56 | variant gcc43 conflicts g95 gcc44 description {Enable Fortran support with gfortran 4.3} { |
60 57 | depends_lib-append port:gcc43 |
61 58 | configure.args-delete --disable-fortran-compiler-check --disable-f77 --disable-f90 |
62 59 | configure.cppflags-append -DpgiFortran |
63 60 | configure.compiler macports-gcc-4.3 |
64 61 | } |
65 62 | |
66 63 | variant gcc44 conflicts g95 gcc43 description {Enable Fortran support with gfortran 4.4} { |
92 89 | configure.cc mpicc |
93 90 | configure.cxx mpicxx |
94 91 | } |
95 92 | |
96 93 | variant netcdf4 description {enable support for netcdf-4 API} { |
97 94 | depends_lib-append port:hdf5-18 |
98 95 | configure.args-delete --disable-netcdf-4 \ |
99 96 | --without-libcf |
100 97 | configure.args-append --enable-netcdf-4 \ |
101 98 | --with-hdf5=${prefix} \ |
102 - | --with-libcf |
99 + | --with-libcf \ |
100 + | --with-szlib=${prefix} |
103 101 | } |
104 102 | |
105 103 | variant hdf4 description {enable support for hdf4} { |
106 104 | depends_lib-append port:hdf4 |
107 105 | configure.args-append --enable-hdf4 \ |
108 106 | --with-hdf4=${prefix} \ |
109 - | --disable-hdf4-file-tests |
107 + | --disable-hdf4-file-tests \ |
108 + | --with-szlib=${prefix} |
110 109 | } |
111 110 | |
112 111 | variant dap description {enable dap} { |
113 112 | depends_lib-append port:curl |
114 113 | configure.args-delete --disable-dap |
115 114 | configure.args-append --enable-dap |
116 115 | } |
117 116 | |
118 117 | variant static description {build static libraries} { |
119 118 | configure.args-delete --enable-shared |
120 119 | } |