summaryrefslogtreecommitdiff
path: root/net/measurement-kit/Makefile
blob: 6062b426978d62ce90b3cb17c4eed4694a1d2082 (plain)
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
# $FreeBSD$

PORTNAME=		measurement-kit
DISTVERSIONPREFIX=	v
DISTVERSION=		0.10.4
PORTREVISION=	1
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>