# -*- 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 65955 2010-04-03 19:57:50Z takeshi@macports.org $

PortSystem      1.0

name            libdap
conflicts       dap
version         3.8.2
revision        1
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    0b6f6a1bfb6d64d87395c6581e562178         \
                sha1   c5174882a3e494be0d7010421212747fd03ae4c6 \
                rmd160 ec7d65d4d9c8c10db398bad1123b8ce47196a20f
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
    }
}
