# -*- 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
# $Id: Portfile 80921 2011-07-21 01:59:50Z takeshi@macports.org $

PortSystem                  1.0

name                        hdfeos
version                     2.17v1.00
revision                    3
categories                  science
maintainers                 takeshi
description                 HDF-EOS library built on HDF4
long_description \
    library designed built on HDF4 to support EOS-specific \
    data structures, namely Grid, Point, and Swath.
homepage                    http://hdfeos.org/
platforms                   darwin
master_sites                ftp://edhs1.gsfc.nasa.gov/edhs/${name}/latest_release/ \
                            ftp://edhs1.gsfc.nasa.gov/edhs/${name}/previous_release/
depends_lib                 port:hdf4
distname                    HDF-EOS${version}
worksrcdir                  ${name}
extract.suffix              .tar.Z
fetch.use_epsv              no
checksums           md5     425663791aeb9355c6fb9f6650aff0e8 \
                    sha1    4b24fa23eeefa94b2703180294942d615b3ed73e \
                    rmd160  15d9c8d9d01768205c8bc42f652548d7b84f0018
configure.args              --with-hdf4=${prefix} \
                            --with-zlib=${prefix} \
                            --with-szlib=${prefix} \
                            --disable-dependency-tracking
configure.cc                ${prefix}/bin/h4cc
configure.ccache            no

post-destroot {
    eval xinstall -m 644 [glob ${worksrcpath}/include/*.h] \
        ${destroot}${prefix}/include
}
