37 lines
778 B
Makefile
37 lines
778 B
Makefile
COMMENT = modern HTTP benchmarking tool
|
|
|
|
GH_ACCOUNT = wg
|
|
GH_PROJECT = wrk
|
|
GH_TAGNAME = 4.1.0
|
|
REVISION = 0
|
|
|
|
CATEGORIES = benchmarks
|
|
|
|
# Apache 2.0, BSD, MIT
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB += c crypto luajit-5.1 m pthread ssl
|
|
|
|
LIB_DEPENDS = lang/luajit
|
|
|
|
USE_GMAKE = Yes
|
|
|
|
MAKE_ENV = WITH_LUAJIT=${LOCALBASE} WITH_OPENSSL=/usr VER=${GH_TAGNAME}
|
|
|
|
.include <bsd.port.arch.mk>
|
|
.if ${PROPERTIES:Mclang}
|
|
MAKE_ENV += LIBS=-lc++abi
|
|
WANTLIB += c++abi
|
|
.endif
|
|
|
|
NO_TEST = Yes
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/wrk ${PREFIX}/bin
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/wrk
|
|
${INSTALL_DATA} ${WRKSRC}/{README.md,SCRIPTING} ${PREFIX}/share/doc/wrk
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/wrk
|
|
${INSTALL_DATA} ${WRKSRC}/scripts/* ${PREFIX}/share/examples/wrk
|
|
|
|
.include <bsd.port.mk>
|