aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/polygraph/Makefile
blob: ae06d8de25ac2c769f1881849b5c5135c0a57c11 (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
55
56
# Created by: Dima Sivachenko <dima@chg.ru>
# $FreeBSD$

PORTNAME=   polygraph
PORTVERSION=    4.9.0
PORTREVISION=   3
DISTVERSIONSUFFIX=  -src
CATEGORIES= benchmarks www
MASTER_SITES=   http://www.web-polygraph.org/downloads/srcs/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Benchmarking tool for Web proxies

LICENSE=    APACHE20
LICENSE_FILE=   ${WRKSRC}/LICENSE

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

USES=       gmake ncurses shebangfix tar:tgz
SHEBANG_FILES=  tools/*.pl
USE_GCC=    any
GNU_CONFIGURE=  yes

# The port does not build with C++11 or later (bug 219275).
USE_CXXSTD= gnu++03

CONFLICTS=  ltrace-0*

OPTIONS_DEFINE=     DOCS GNUPLOT GSSAPI LDNS PERL SSL ZLIB
OPTIONS_DEFAULT=    SSL ZLIB

GNUPLOT_DESC=       GNUPlot for full reporting functionality
GNUPLOT_RUN_DEPENDS=    gnuplot:math/gnuplot
GSSAPI_USES=        gssapi:mit
GSSAPI_CONFIGURE_ON=    --with-kerberos=${KRB5CONFIG} ${GSSAPI_CONFIGURE_ARGS}
GSSAPI_CONFIGURE_OFF=   --without-kerberos
LDNS_DESC=      DNS zone file support via libldns
LDNS_LIB_DEPENDS=   libldns.so:dns/ldns
LDNS_CONFIGURE_ON=  --with-ldns=${LOCALBASE}/bin/ldns-config
LDNS_CONFIGURE_OFF= --without-ldns
SSL_DESC=       SSL/HTTPS support
SSL_USES=       ssl
SSL_CONFIGURE_ON=   --with-ssl=${OPENSSLBASE}
SSL_CONFIGURE_OFF=  --without-ssl
PERL_DESC=      Install Perl for PolyGraph tools
PERL_USES=      perl5
PERL_USE=       perl5=run
ZLIB_DESC=      HTTP compression support
ZLIB_CONFIGURE_ON=  --with-zlib=/usr
ZLIB_CONFIGURE_OFF= --without-zlib

post-patch:
    @${REINPLACE_CMD} -e \
        '/LICENSE /d' ${WRKSRC}/Makefile.in

.include <bsd.port.mk>