# Created by: David Thiel <lx@redundancy.redundancy.org>
# $FreeBSD: tags/RELEASE_10_1_0/security/silktools/Makefile 356530 2014-06-04 17:38:42Z amdmi3 $

PORTNAME=	silktools
PORTVERSION=	3.8.1
PORTREVISION=	1
CATEGORIES=	security net
MASTER_SITES=	http://tools.netsa.cert.org/releases/ \
		http://redundancy.redundancy.org/mirror/
DISTNAME=	silk-${PORTVERSION}

MAINTAINER=	lx@FreeBSD.org
COMMENT=	Tools for large-scale network capture analysis

LIB_DEPENDS=	liblzo2.so:${PORTSDIR}/archivers/lzo2 \
		libfixbuf.so:${PORTSDIR}/net/libfixbuf

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-lzo=${LOCALBASE} --enable-packing-tools --with-python \
				--prefix=${STAGEDIR}/${PREFIX}
USE_PYTHON=	yes
MAKE_ARGS=	CC="${CC}" GCC_FLAGS="" CFLAGS_RELEASE=""
USE_LDCONFIG=	yes
USES=		gmake perl5 pkgconfig libtool
USE_PERL5=	build

OPTIONS_DEFINE=	LOCALTIME
LOCALTIME_DESC=	Use localtime instead of UTC

LOCALTIME_CONFIGURE_ON=--enable-localtime

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

.include <bsd.port.mk>
