1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/net/measurement-kit/Makefile
2019-09-19 16:16:31 +00:00

45 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= measurement-kit
DISTVERSIONPREFIX= v
DISTVERSION= 0.10.6
CATEGORIES= net devel
MAINTAINER= egypcio@FreeBSD.org
COMMENT= Portable C++14 network measurement library
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libcurl.so:ftp/curl \
libevent.so:devel/libevent \
libmaxminddb.so:net/libmaxminddb
RUN_DEPENDS= ca_root_nss>=0:security/ca_root_nss
USES= autoreconf:build compiler:c++14-lang libtool ssl
USE_GITHUB= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-libcurl=${LOCALBASE} \
--with-libevent=${LOCALBASE} \
--with-libmaxminddb=${LOCALBASE} \
--with-openssl=${OPENSSLBASE}
CONFIGURE_ENV= CC=${CC} \
CXX=${CXX}
INSTALL_TARGET= install-strip
PORTDOCS= README.md include/README.md
OPTIONS_DEFINE= DOCS
do-configure:
@(cd ${WRKSRC} && ${SH} autogen.sh --no-geoip && \
${SETENV} ${CONFIGURE_ENV} ${SH} configure ${CONFIGURE_ARGS})
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}/include
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/include/measurement_kit/README.md ${STAGEDIR}${DOCSDIR}/include
.include <bsd.port.mk>