Ticket #11542: Portfile

File Portfile, 1.3 KB (added by takeshi@…, 18 years ago)
Line 
1PortSystem 1.0
2name              udunits
3version           1.12.4
4revision          0
5maintainers       takeshi@mac.com
6platforms         darwin
7categories        science
8
9description       Unidata unit conversion libraray
10long_description  The Unidata units library supports \
11    conversion of unit specifications between \
12    formatted and binary forms, arithmetic manipulation \
13    of unit specifications, and conversion of values \
14    between compatible scales of measurement.
15
16homepage          http://unidata.ucar.edu/packages/udunits/
17
18master_sites      ftp://ftp.unidata.ucar.edu/pub/udunits/ \
19                  ftp://www.gfd-dennou.org/arch/netcdf/unidata-mirror/
20distfiles         ${name}.tar.Z
21checksums         sha1 ca8d591fd0fa400136be882d13c7c0fcd3ec8404
22worksrcdir        ${distname}/src
23
24configure.env     CPPFLAGS="-DNDEBUG -Df2cFortran" \
25                  CC=/usr/bin/cc \
26                  CFLAGS="-O2 -fno-common" \
27                  MANDIR=${prefix}/share/man
28
29destroot.destdir  prefix=${destroot}${prefix} \
30                  MANDIR=\\\${prefix}/share/man
31post-destroot {
32  file delete -force ${destroot}${prefix}/share/man/whatis.db
33}
34
35variant g95 {
36        depends_build        port:g95
37        configure.env-append FC=${prefix}/bin/g95 \
38                       FFLAGS="-O2 -fno-common"
39}
40