freebsd-ports/net/measurement-kit/Makefile
Vinícius Zavam bcc0578412 net/measurement-kit: update 0.10.11 to 0.10.12
github.com/measurement-kit/measurement-kit/compare/v0.10.11...v0.10.12
  + github.com/measurement-kit/measurement-kit/releases/tag/v0.10.12

Sponsored by:	TorBSD Diversity Project (TDP)
Sponsored by:	The Tor Project
2020-09-14 18:34:22 +00:00

45 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= measurement-kit
DISTVERSIONPREFIX= v
DISTVERSION= 0.10.12
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>