blob: e3cd041ad403d75ac605a2fcdf36e60e5b611827 (
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
|
PORTNAME= wrk
PORTVERSION= 4.2.0
CATEGORIES= benchmarks www
MAINTAINER= osa@FreeBSD.org
COMMENT= Modern HTTP benchmarking tool
WWW= https://github.com/wg/wrk
LICENSE= APACHE20
USE_GITHUB= yes
GH_ACCOUNT= wg
FLAVORS= luajit luajitor
FLAVOR?= ${FLAVORS:[1]}
luajit_PKGNAMESUFFIX= -luajit
luajitor_PKGNAMESUFFIX= -luajit-openresty
luajit_CONFLICTS_INSTALL= ${PORTNAME}-luajit-openresty
luajitor_CONFLICTS_INSTALL= ${PORTNAME}-luajit
USES= gmake ssl
USE_CSTD= c99
LLD_UNSAFE= yes
.if ${FLAVOR} == luajit
CFLAGS+= -I${LOCALBASE}/include/luajit-2.0
LIB_DEPENDS= libluajit-5.1.so:lang/luajit
.else
CFLAGS+= -I${LOCALBASE}/include/luajit-2.1
LIB_DEPENDS= libluajit-5.1.so:lang/luajit-openresty
.endif
MAKE_ENV+= WITH_OPENSSL=${OPENSSLBASE} WITH_LUAJIT=${LOCALBASE} VER=${PORTVERSION}
PLIST_FILES= bin/wrk
.include <bsd.port.pre.mk>
# Port requires 64 bit atomics
.if ${ARCH} == i386 && empty(MACHINE_CPU:Mi586)
CFLAGS+= -march=i586
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.post.mk>
|