source: trunk/dports/science/hdfeos/Portfile

Last change on this file was 149845, checked in by takeshi@…, 13 months ago

hdfeos: adhoc fix for +szip, closing #51719

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 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 149845 2016-07-03 01:09:13Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           active_variants 1.1
6
7name                hdfeos
8version             2.19
9revision            1
10categories          science
11maintainers         takeshi
12license             public-domain
13description         HDF-EOS library built on HDF4
14long_description \
15    library designed built on HDF4 to support EOS-specific \
16    data structures, namely Grid, Point, and Swath.
17homepage            http://hdfeos.org/
18platforms           darwin
19master_sites        ftp://edhs1.gsfc.nasa.gov/edhs/${name}/latest_release/ \
20                    ftp://edhs1.gsfc.nasa.gov/edhs/${name}/previous_release/ \
21                    http://www.enomosphere.net/hdfeos/
22depends_lib         port:hdf4
23distname            HDF-EOS${version}v1.00
24worksrcdir          ${name}
25extract.suffix      .tar.Z
26fetch.use_epsv      no
27checksums           md5     b8648484fc78a2db7073dd603f3fb251 \
28                    sha1    16c94519e94be0e958c69001d39d9354f65015f7 \
29                    rmd160  a3d9ceff401c66fc904d60b2cadf878acb7d222c
30configure.args      --with-hdf4=${prefix} \
31                    --with-jpeg=${prefix} \
32                    --with-zlib=${prefix} \
33                    --without-szlib       \
34                    --enable-shared       \
35                    --disable-dependency-tracking
36
37post-destroot {
38    eval xinstall -m 644 [glob ${worksrcpath}/include/*.h] \
39        ${destroot}${prefix}/include
40}
41
42if {![catch {set result [active_variants port:hdf4 szip]}]} {
43    if {$result} {
44        default_variants-append +szip
45    }
46}
47variant szip description {build with szip} {
48    require_active_variants hdf4 szip
49    depends_lib-append      port:szip
50    configure.cc            ${prefix}/bin/h4cc
51    configure.args-delete   --without-szlib
52    configure.args-append   --with-szlib=${prefix}
53}
54
55livecheck.type      regex
56livecheck.url       ${homepage}/software/hdfeos.php
57livecheck.regex     {HDF-EOS ([0-9]+.[0-9]+) is the latest version}
Note: See TracBrowser for help on using the repository browser.