# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD: tags/RELEASE_11_0_0/net/spoofer/Makefile 417159 2016-06-20 14:23:31Z jadawin $

PORTNAME=	spoofer
PORTVERSION=	1.0.2
CATEGORIES=	net
MASTER_SITES=	http://www.caida.org/projects/spoofer/downloads/

MAINTAINER=	jadawin@FreeBSD.org
COMMENT=	Spoofer Project testing software

LICENSE=	GPLv3

BUILD_DEPENDS=	protoc:devel/protobuf
LIB_DEPENDS=	libprotobuf-lite.so:devel/protobuf

PORTDOCS=	README

USES=		compiler:c++11-lib
GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=	--disable-development

OPTIONS_DEFINE=	DOCS GUI
OPTIONS_DEFAULT=	GUI
OPTIONS_SUB=	yes

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MGUI}
USE_QT5=	buildtools_build qmake_build core network gui widgets
USE_GL+=	gl
USE_RC_SUBR=	${PORTNAME}
.else
CONFIGURE_ARGS+=	--disable-manager
.endif

do-install-DOCS-on:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>
