# -*- 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 90283 2012-02-29 15:29:17Z jmr@macports.org $

PortSystem      1.0

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

checksums       rmd160 15b51fa89692199f89cd4f3436519525ac93bb19 \
                sha256 18b1509fbf438a8c7f9b0af32284e458189b5f6dfd044f898926109f3c3c01ed

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.

# internal flags aren't placed first in tests/Makefile
# luckily there are no deps, so the following suffices to avoid picking up an
# installed version (ticket #28714)
configure.cppflags
configure.ldflags

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