# -*- 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 106305 2013-05-22 03:53:27Z takeshi@macports.org $

PortSystem      1.0

name            libdap
conflicts       dap
version         3.11.7
platforms       darwin
maintainers     takeshi
categories      science
description     A C++ SDK which contains an implementation of DAP 2.0
master_sites    http://www.opendap.org/pub/source/
checksums           md5     9c2713852b9ca508966ff8b8cc4e71b6 \
                    sha1    2a7794ab8f84671d5f516cce80f3f0cca6a02d07 \
                    rmd160  bbc3f9a5b5b2f12175ac574fe43deb46e8a9359f

homepage        http://www.opendap.org/
long_description \
                A C++ SDK which contains an implementation of DAP 2.0,  \
                Client- and Server-side support classes and a prototype \
                implementation of the AIS.
depends_build   port:pkgconfig
depends_lib     port:curl \
                port:libiconv \
                port:libxml2
pre-build {
    if {[variant_isset universal]} {
        reinplace "s|single_module|single_module ${configure.universal_ldflags}|" ${worksrcpath}/libtool
    } else {
        reinplace "s|single_module|single_module ${configure.cxx_archflags}|" ${worksrcpath}/libtool
    }
}
