# -*- 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
PortGroup active_variants 1.1
PortGroup conflicts_build 1.0
maintainers {takeshi @tenomoto}
description HDF-EOS library built on HDF4
library designed built on HDF4 to support EOS-specific \
data structures, namely Grid, Point, and Swath.
homepage http://hdfeos.org/
master_sites ftp://edhs1.gsfc.nasa.gov/edhs/${name}/latest_release/ \
ftp://edhs1.gsfc.nasa.gov/edhs/${name}/previous_release/
distname HDF-EOS${version}v1.00
checksums rmd160 6b3556a601d7b417b4b694fc66c36c87ab2e4597 \
sha256 cb0f900d2732ab01e51284d6c9e90d0e852d61bba9bce3b43af0430ab5414903 \
configure.args --with-hdf4=${prefix} \
--disable-dependency-tracking
xinstall -m 0644 {*}[glob ${worksrcpath}/include/*.h] \
${destroot}${prefix}/include
if {![catch {set result [active_variants port:hdf4 szip]}]} {
default_variants-append +szip
variant szip description {build with szip} {
require_active_variants hdf4 szip
depends_lib-append port:szip
configure.cc ${prefix}/bin/h4cc
configure.args-delete --without-szlib
configure.args-append --with-szlib=${prefix}
livecheck.url ${homepage}/software/hdfeos.php
livecheck.regex {HDF-EOS ([0-9]+.[0-9]+) is the latest version}