# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
# $FreeBSD: tags/RELEASE_10_0_0/devel/regexx/Makefile 327726 2013-09-20 17:17:44Z bapt $

PORTNAME=	regexx
PORTVERSION=	0.98.1
PORTREVISION=	3
CATEGORIES=	devel
MASTER_SITES=	SF

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A complete regular expressions C++ solution

USE_GMAKE=	yes
USE_AUTOTOOLS=	libtool
USE_LDCONFIG=	yes
MAKE_ENV+=	INCLUDES="-I${WRKSRC}/pcre"

NO_STAGE=	yes
post-patch:
	@${REINPLACE_CMD} -e 's|@LIBTOOL@|${LIBTOOL}|g ; \
		s|	\./libtool|${LIBTOOL}|g ; \
		s|\(DEFS.*\)|\1 -I${LOCALBASE}/include|' \
		${WRKSRC}/src/Makefile.in ${WRKSRC}/pcre/Makefile.in
	@${REINPLACE_CMD} -e 's|$${CONFIG_SHELL-/bin/sh} $$ac_aux_dir|$$ac_aux_dir|' \
		${WRKSRC}/configure
	@${REINPLACE_CMD} -e 's| examples||g' \
		${WRKSRC}/Makefile.am

.include <bsd.port.mk>
