# $Id$

PortSystem 1.0
name		pcrexx
set canonicalname	pcre++
version		0.9.5
revision	2
categories	devel
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}

distfiles	${canonicalname}-${version}${extract.suffix}
worksrcdir	${canonicalname}-${version}

checksums	md5     1fe6ea8e23ece01fde2ce5fb4746acc2 \
		sha1    7cb640555c6adf34bf366139b22f6d1a66bd1fb0 \
		rmd160  1aa3c933f271caacaeec08af02c7903dd4405c41

depends_lib	port:pcre

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

use_autoreconf	yes

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 }