# $FreeBSD: branches/RELEASE_8_4_0/devel/libhtp/Makefile 308777 2012-12-12 18:48:33Z wxs $

PORTNAME=	libhtp
PORTVERSION=	0.3.0
PORTREVISION=	2
CATEGORIES=	devel
#MASTER_SITES=	# This port uses github

MAINTAINER=	wxs@FreeBSD.org
COMMENT=	Security-aware parser for the HTTP protocol

USE_GITHUB=	yes
GH_ACCOUNT=	ironbee
GH_COMMIT=	a334539

USE_AUTOTOOLS=	libtool autoheader aclocal
ACLOCAL_ARGS=	-Im4
USE_LDCONFIG=	yes
USE_GNOME=	pkgconfig gnomehack
USE_ICONV=	yes

CONFIGURE_ARGS=	--with-libiconv-prefix=${LOCALBASE}
CFLAGS+=	-I${LOCALBASE}/include -L${LOCALBASE}/lib \
		-liconv

pre-configure:
	@${REINPLACE_CMD} -Ee 's,^(pkgconfigdir = ).*,\1$$(exec_prefix)/libdata/pkgconfig,' ${WRKSRC}/Makefile.am
	@cd ${WRKSRC} && ${SH} ./autogen.sh

.include <bsd.port.mk>
