# ex:ts=8
# Ports collection makefile for:	libtre
# Date created:			Oct 14, 2002
# Whom:				ijliao
#
# $FreeBSD: ports/textproc/libtre/Makefile,v 1.8 2003/05/15 01:21:49 kevlo Exp $
#

PORTNAME=	libtre
PORTVERSION=	0.5.3
CATEGORIES=	textproc
MASTER_SITES=	http://kouli.iki.fi/~vlaurika/tre/
DISTNAME=	tre-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A lightweight fully POSIX compliant regexp matching library

BUILD_DEPENDS=	pkg-config:${PORTSDIR}/devel/pkgconfig
LIB_DEPENDS=	intl.4:${PORTSDIR}/devel/gettext
RUN_DEPENDS=	pkg-config:${PORTSDIR}/devel/pkgconfig

USE_BZIP2=	yes
USE_GNOME=	gnomehack
USE_REINPLACE=	yes
USE_GETOPT_LONG=	yes
USE_LIBTOOL=	yes
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
INSTALLS_SHLIB=	yes

CPPFLAGS=	-I${LOCALBASE}/include
LDFLAGS=	-L${LOCALBASE}/lib -lintl

post-patch:
	@${REINPLACE_CMD} -e 's|^CFLAGS=|#CFLAGS=|g' ${WRKSRC}/configure

.include <bsd.port.mk>
