freebsd-ports/benchmarks/apib/Makefile
Alexey Dokuchaev 0fdebe53ba benchmarks/apib: the port had been updated (+)
- Belatedly update to version 1.2.1 and sync port description
- Builds with CMake now and uses modern libraries instead of the
  Apache Portable Runtime (devel/apr1)
- While upstream asks for C++11, force C++17 because that's how
  Abseil C++ libraries are currently built, otherwise it won't
  link due to ABI incompatibilities
- Hook two provided tests to our framework (USES+=cmake:testing)
2021-07-04 06:14:48 +00:00

32 lines
801 B
Makefile

# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
PORTNAME= apib
DISTVERSIONPREFIX= ${PORTNAME:tu}_
DISTVERSION= 1_2_1
DISTVERSIONSUFFIX= _RC1
CATEGORIES= benchmarks www
MAINTAINER= danfe@FreeBSD.org
COMMENT= Simple and fast HTTP performance testing tool
LICENSE= APACHE20
LIB_DEPENDS= libabsl_base.so:devel/abseil \
libev.so:devel/libev \
libgtest.so:devel/googletest \
libhttp_parser.so:www/http-parser
USES= cmake:testing compiler:c++17-lang localbase:ldflags ssl
USE_GITHUB= yes
GH_ACCOUNT= apigee
PLIST_FILES= bin/apib bin/apibmon bin/testserver
PORTEXAMPLES= env.sh pivot run.sh rungroup.sh tojson
OPTIONS_DEFINE= EXAMPLES
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/samplescripts/* ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>