# -*- 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 77645 2011-04-07 16:04:35Z ryandesign@macports.org $

PortSystem      1.0

name            libconfig-hr
version         1.4.7
categories      devel
maintainers     nomaintainer
platforms       darwin
homepage        http://www.hyperrealm.com/libconfig/
master_sites    ${homepage}
distname        libconfig-${version}

checksums       sha1    59381339351e2901520cf2f170c8b4703e58833d \
                rmd160  2f6eab75aaf92df2553506e61501d745742746b5

description \
    A new libconfig implementation with both C and C++ bindings.

long_description \
    A new libconfig implementation with both C and C++ bindings, a \
    completely new API, pkg-config support  and superior documentation. \
    This port is incompatible with the older port libconfig which should be \
    deactivated or uninstalled prior to installation of this port.
 
pre-configure {
    if {[file exists ${prefix}/include/libconfig.h]} {
        if {![file exists ${prefix}/include/libconfig.h++]} {
             error "

****     Port libconfig is installed and must be deactivated
****     or uninstalled before this port can be installed.
"
        }
    }
}

livecheck.type  regex
livecheck.url   ${master_sites}
livecheck.regex ">libconfig-(\\d+(?:\\.\\d+)*)${extract.suffix}<"
