blob: c85a462ebc70247801dc569cb1e43b12f35ce83c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$
PORTNAME= spoofer
PORTVERSION= 1.4.5
CATEGORIES= net
MASTER_SITES= https://www.caida.org/projects/spoofer/downloads/
MAINTAINER= mjl@luckie.org.nz
COMMENT= Spoofer Project testing software
LICENSE= GPLv3
BUILD_DEPENDS= protoc:devel/protobuf
LIB_DEPENDS= libprotobuf-lite.so:devel/protobuf
RUN_DEPENDS= scamper:net/scamper
USES= compiler:c++11-lib qt:5
CONFIGURE_ARGS= --disable-development --with-protobuf=${LOCALBASE}
GNU_CONFIGURE= yes
PORTDOCS= README
OPTIONS_DEFINE= DOCS GUI
OPTIONS_DEFAULT=GUI
OPTIONS_SUB= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGUI}
USE_QT= buildtools_build qmake_build core network gui widgets
USE_GL+= gl
USE_RC_SUBR= ${PORTNAME}
.else
CONFIGURE_ARGS+= --disable-manager
.endif
post-install:
.if ${PORT_OPTIONS:MGUI}
.for r in 16 32 48 64 128 256
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${r}x${r}/apps
${INSTALL_DATA} ${WRKSRC}/icons/spoofer${r}.png \
${STAGEDIR}${PREFIX}/share/icons/hicolor/${r}x${r}/apps/spoofer.png
.endfor
.endif
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>
|