source: trunk/dports/science/udunits2/Portfile @ 87258

Last change on this file since 87258 was 87258, checked in by takeshi@…, 6 years ago

udunits2: updated for 2.1.24

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 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 87258 2011-11-15 07:03:32Z takeshi@macports.org $
3
4PortSystem 1.0
5
6name            udunits2
7version         2.1.24
8distname        udunits-${version}
9maintainers     takeshi
10platforms       darwin
11categories      science
12
13description     Improved Unidata unit conversion libraray
14long_description \
15    The UDUNITS package supports units of physical quantities           \
16    (e.g., meters, seconds).  Specifically, it supports conversion      \
17    between string and binary representations of units,                 \
18    arithmetic manipulation of units, and conversion of numeric values  \
19    between compatible units. The UDUNIT-2 package differs from         \
20    the original UDUNITS package in the following ways:                 \
21    support for non-ASCII characters, support for logarithmic units,    \
22    persistent value converters, improved API, XML unit database,       \
23    and no Fortran or Perl API.
24
25homepage        http://www.unidata.ucar.edu/software/udunits/
26
27master_sites    ftp://ftp.unidata.ucar.edu/pub/udunits/ \
28                http://www.gfd-dennou.org/arch-large1/ucar/unidata/pub/udunits
29checksums           md5     6986545721747a51285c765644dcd9d8 \
30                    sha1    64bbb4b852146fb5d476baf4d37c9d673cfa42f9 \
31                    rmd160  141d765332818c06b6a4bcbda17473fde5cd1853
32
33depends_lib     port:expat
34
35patch {
36    reinplace "s|SUBDIRS = expat|SUBDIRS = |" ${worksrcpath}/Makefile.in
37    reinplace "s|../expat/libexpat.la|${prefix}/lib/libexpat.la|" ${worksrcpath}/lib/Makefile.in
38}
39
40pre-destroot {
41    reinplace "s|install-data-hook||" ${worksrcpath}/lib/Makefile
42}
43
44use_autoreconf      yes
45
46configure.args-append   --includedir=${prefix}/include/${name} \
47                        --disable-dependency-tracking
48
49livecheck.type  regex
50livecheck.url   http://www.unidata.ucar.edu/downloads/udunits/index.jsp
51livecheck.regex {Current release ([0-9]+\.[0-9]+\.[0-9]+)} 
Note: See TracBrowser for help on using the repository browser.