# -*- 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

PortSystem 1.0

name            pcrexx
set canonicalname   pcre++
version         0.9.5
revision        2
categories      devel
license         LGPL-2.1
platforms       darwin 
maintainers     nomaintainer
description     C++ wrapper for the Perl Compatible Regular Expressions Library
long_description \
    PCRE++ is a C++ wrapper-class for the great library PCRE \
    (Perl Compatible Regular Expressions) by Philip Hazel. \
    This class allows you to use perl alike regular expressions \
    in your C++ applications. You can use it to search in strings, \
    to split strings into parts using expressions or to search and \
    replace a part of a string with another part. 
homepage        http://www.daemon.de/PCRE
master_sites    http://www.daemon.de/idisk/Apps/${canonicalname}

distname        ${canonicalname}-${version}

checksums       rmd160  1aa3c933f271caacaeec08af02c7903dd4405c41 \
                sha256  77ee9fc1afe142e4ba2726416239ced66c3add4295ab1e5ed37ca8a9e7bb638a \
                size    381589

depends_lib     port:libtool \
                port:pcre

patchfiles      patch-Makefile.am.diff patch-pcrexx.h.diff

use_autoreconf  yes

pre-configure {
    copy -force ${prefix}/share/libtool/build-aux/config.guess \
                ${prefix}/share/libtool/build-aux/config.sub \
                ${worksrcpath}
}

configure.args  --mandir=${prefix}/share/man \
                --with-pcre-include=${prefix}/include   \
                --with-pcre-lib=${prefix}/lib

post-destroot {
    file delete ${destroot}${prefix}/share/man/man3/Pcre.3
}
