2004-02-23 01:21:00 +01:00
|
|
|
# Ports collection Makefile for: gatling
|
|
|
|
# Date created: Feb 21, 2004
|
|
|
|
# Whom: Thomas-Martin Seck <tmseck@netcologne.de>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gatling
|
2007-08-28 12:55:06 +02:00
|
|
|
PORTVERSION= 0.9
|
2004-08-12 18:13:10 +02:00
|
|
|
CATEGORIES= www benchmarks ftp ipv6
|
2004-02-23 01:21:00 +01:00
|
|
|
MASTER_SITES= http://dl.fefe.de/
|
|
|
|
|
|
|
|
MAINTAINER= tmseck@netcologne.de
|
|
|
|
COMMENT= A high performance webserver with scalability benchmark tools
|
|
|
|
|
2007-01-15 21:07:15 +01:00
|
|
|
BUILD_DEPENDS= libowfat>=0.25:${PORTSDIR}/devel/libowfat
|
2004-02-23 01:21:00 +01:00
|
|
|
|
|
|
|
USE_BZIP2= yes
|
2005-06-10 17:32:11 +02:00
|
|
|
USE_GMAKE= yes
|
2005-02-02 18:37:00 +01:00
|
|
|
USE_OPENSSL= yes
|
2004-02-23 01:21:00 +01:00
|
|
|
|
2005-02-02 18:37:00 +01:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include/libowfat -I${OPENSSLINC}
|
2005-06-10 17:32:11 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib -L${OPENSSLLIB}
|
2004-02-23 01:21:00 +01:00
|
|
|
|
2005-06-10 17:32:11 +02:00
|
|
|
MAKEFILE= GNUmakefile
|
2005-02-02 18:37:00 +01:00
|
|
|
MAKE_ENV+= PTHREAD_LIBS="${PTHREAD_LIBS}"
|
|
|
|
|
|
|
|
bin= dl
|
2005-06-10 17:32:11 +02:00
|
|
|
sbin= gatling
|
2004-08-12 18:13:10 +02:00
|
|
|
MAN8= gatling.8
|
2005-06-10 17:32:11 +02:00
|
|
|
PORTDOCS= CHANGES README README.cgi README.ftp README.htaccess \
|
|
|
|
README.http README.performance README.prefetch README.proxy \
|
|
|
|
README.redirect
|
2007-08-28 12:55:06 +02:00
|
|
|
PORTEXAMPLES= run-gatling cgi acc hcat referrer
|
2004-02-23 01:21:00 +01:00
|
|
|
|
2005-06-10 17:32:11 +02:00
|
|
|
OPTIONS= GATLING_BENCHMARKS "Install some benchmark programs" on \
|
|
|
|
GATLING_ICONV "Use charset conversion" off \
|
|
|
|
GATLING_TLS "Install tlsgatling" off \
|
|
|
|
GATLING_ZLIB "Compress outgoing data" off \
|
|
|
|
GATLING_OPTIMIZED_CFLAGS "Use optimized CFLAGS" on
|
2004-02-23 01:21:00 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-08-28 12:55:06 +02:00
|
|
|
.if defined(WITH_GATLING_BENCHMARKS) || defined(WITH_BENCHMARKS)
|
2004-02-23 01:21:00 +01:00
|
|
|
PORTDOCS+= README.bindbench README.forkbench README.httpbench \
|
|
|
|
README.manymapbench README.mmapbench
|
|
|
|
bin+= bindbench forkbench forksbench httpbench ioerr manymapbench \
|
|
|
|
mktestdata mmapbench pthreadbench
|
|
|
|
examples+= prep run-bench
|
2005-06-10 17:32:11 +02:00
|
|
|
MAKE_ENV+= BENCHMARKS=1
|
|
|
|
.endif
|
|
|
|
|
2007-08-28 12:55:06 +02:00
|
|
|
.if defined(WITH_GATLING_OPTIMIZED_CFLAGS)
|
2005-06-10 17:32:11 +02:00
|
|
|
CFLAGS+= -O2 -fomit-frame-pointer
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_GATLING_ICONV)
|
|
|
|
USE_ICONV= yes
|
2007-08-28 12:55:06 +02:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
2005-06-10 17:32:11 +02:00
|
|
|
MAKE_ENV+= ICONV=1
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_GATLING_TLS)
|
|
|
|
.if defined(WITH_GATLING_ZLIB)
|
|
|
|
# For reasons unknown, gatling with both HTTPS and zlib support only compiles
|
2007-08-28 12:55:06 +02:00
|
|
|
# with gcc 3.1 and above. Depend on gcc 3.4+ since this is the default
|
|
|
|
# compiler on supported FreeBSD systems anyway.
|
|
|
|
USE_GCC= 3.4+
|
2005-06-10 17:32:11 +02:00
|
|
|
.endif
|
|
|
|
MAKE_ENV+= TLSGATLING=1
|
|
|
|
sbin+= tlsgatling
|
|
|
|
portdocs+= README.tls
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_GATLING_ZLIB)
|
|
|
|
MAKE_ENV+= ZLIB=1
|
2004-02-23 01:21:00 +01:00
|
|
|
.endif
|
|
|
|
|
2007-08-28 12:55:06 +02:00
|
|
|
PLIST_FILES= ${bin:S,^,bin/,} ${sbin:S,^,sbin/,}
|
2004-02-23 01:21:00 +01:00
|
|
|
|
2004-08-12 18:13:10 +02:00
|
|
|
pre-install:
|
|
|
|
@cd ${WRKSRC} && ${CP} gatling.1 gatling.8
|
|
|
|
|
2004-02-23 01:21:00 +01:00
|
|
|
do-install:
|
|
|
|
cd ${WRKSRC} && ${INSTALL_PROGRAM} ${bin} ${PREFIX}/bin
|
2005-02-02 18:37:00 +01:00
|
|
|
cd ${WRKSRC} && ${INSTALL_PROGRAM} ${sbin} ${PREFIX}/sbin
|
2007-08-28 12:55:06 +02:00
|
|
|
.if !defined(NOPORTEXAMPLES)
|
2004-02-23 01:21:00 +01:00
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
2007-08-28 12:55:06 +02:00
|
|
|
cd ${WRKSRC} && ${INSTALL_SCRIPT} ${PORTEXAMPLES} ${EXAMPLESDIR}
|
|
|
|
.endif
|
2004-08-12 18:13:10 +02:00
|
|
|
cd ${WRKSRC} && ${INSTALL_MAN} ${MAN8} ${MAN8PREFIX}/man/man8
|
2004-02-23 01:21:00 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|