source: trunk/dports/science/udunits/Portfile

Last change on this file was 108480, checked in by takeshi@…, 4 years ago

udunits: disabled building a perl module, closing #39703.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 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 108480 2013-07-24 08:18:10Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name            udunits
7version         1.12.11
8revision        2
9maintainers     takeshi openmaintainer
10license         UCAR-Unidata
11platforms       darwin
12categories      science
13
14description     Unidata unit conversion libraray
15long_description \
16                The Unidata units library supports \
17                conversion of unit specifications between \
18                formatted and binary forms, arithmetic manipulation \
19                of unit specifications, and conversion of values \
20                between compatible scales of measurement.
21
22homepage        http://www.unidata.ucar.edu/software/udunits/
23
24master_sites    ftp://ftp.unidata.ucar.edu/pub/udunits/ \
25                ftp://www.gfd-dennou.org/arch-large1/ucar/unidata/pub/udunits
26checksums           md5     2d984c738be0d674ec774d03997fdd9c \
27                    sha1    da4c3c50764b03db4cc83c679670203280aac51a \
28                    rmd160  cc1bffe18ba042cc6e19243a2efc52242649493f
29worksrcdir      ${distname}/src
30
31use_parallel_build no
32
33patch {
34        reinplace "s|\$(prefix)/man|\$(prefix)/share/man|" ${worksrcpath}/port/master.mk.in
35}
36
37configure.cppflags-append       "-DNDEBUG -Df2cFortran"
38configure.cflags-append         -fno-common
39configure.env-append            PERL= LD_YACC=-ly
40
41pre-destroot {
42        file delete ${worksrcpath}/lib/libudunits.a
43}
44
45# fortran compiler does not seem to be required
46# gfortran might have problem with preprocessor
47#variant gcc43 conflicts g95 description {compile with gcc43} {
48#    depends_build-append    port:gcc43
49#    configure.env-append    FC=${prefix}/bin/gfortran-mp-4.3
50#    configure.env-append    FFLAGS="-O2 -fno-common"
51#}
52#
53#variant g95 conflicts gcc43 description {compile with g95} {
54#    depends_build-append    port:g95
55#    configure.fc            ${prefix}/bin/g95
56#    configure.env-append    FC=${prefix}/bin/g95
57#    configure.env-append    FFLAGS="-O2 -fno-common"
58#}
59livecheck.type  regex
60livecheck.url   http://www.unidata.ucar.edu/downloads/udunits/index.jsp
61livecheck.regex {Deprecated, original version[ ]+\(([0-9]+\.[0-9]+\.[0-9]+)\)}
Note: See TracBrowser for help on using the repository browser.