# Created by: Matt Peterson <matt@peterson.org>
# $FreeBSD: tags/RELEASE_10_1_0/net/libtrace/Makefile 360416 2014-07-03 17:29:06Z amdmi3 $

PORTNAME=	libtrace
PORTVERSION=	3.0.19
PORTREVISION=	1
CATEGORIES=	net
MASTER_SITES=	http://research.wand.net.nz/software/libtrace/

MAINTAINER=	matt@peterson.org
COMMENT=	C library for network packet capture and processing

LIB_DEPENDS=	libpcap.so:${PORTSDIR}/net/libpcap

CONFIGURE_ARGS=	--with-libpcap=${LOCALBASE} \
		libtrace_doxygen=false

GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes
USES=		gmake libtool
LDFLAGS+=	-L${LOCALBASE}/lib

post-patch:
	@${REINPLACE_CMD} -e 's|echo aout|echo elf|g' \
	${WRKSRC}/configure

.include <bsd.port.mk>
