blob: c4f74775b1e318360e9127e3c9815e5f6c7e9d63 (
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
|
# Created by: Sergey A. Osokin <osa@FreeBSD.org>
# $FreeBSD$
PORTNAME= wrk
PORTVERSION= 2.2.2
CATEGORIES= benchmarks www
MASTER_SITES= https://github.com/wg/wrk/archive/
DISTNAME= ${PORTVERSION}
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= osa@FreeBSD.org
COMMENT= The modern HTTP benchmarking tool
LICENSE= AL2
FETCH_ARGS= -pRr
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_GMAKE= yes
CFLAGS+= -std=c99 -D_DECLARE_C99_LDBL_MATH
PLIST_FILES= bin/wrk
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 800000
BROKEN= does not link on FreeBSD 7.x
.endif
post-patch:
@${REINPLACE_CMD} '1d;2s/-lpthread/${PTHREAD_LIBS}/' ${WRKSRC}/Makefile
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
.include <bsd.port.post.mk>
|