blob: 35a1987e92b6dd4bae1a8ad3aab60b26e1ac0622 (
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
|
PORTNAME= c-ares
DISTVERSION= 1.19.1
CATEGORIES= dns
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/cares-${DISTVERSION:S/./_/g}/ \
https://c-ares.org/download/
MAINTAINER= zi@FreeBSD.org
COMMENT= Asynchronous DNS resolver library
WWW= https://c-ares.haxx.se/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.md
USES= cmake compiler:c++11-lang pathfix
USE_LDCONFIG= yes
CONFLICTS= py*-ripe.atlas.tools
CMAKE_ARGS= -DCMAKE_INSTALL_MANDIR:PATH=${MANPREFIX}/man
OPTIONS_DEFINE= TEST
TEST_USES= compiler:c++14-lang localbase:ldflags
TEST_BUILD_DEPENDS= googletest>0:devel/googletest
TEST_TEST_TARGET= test
TEST_CMAKE_BOOL= CARES_BUILD_TESTS
post-patch:
@${REINPLACE_CMD} -e 's|ares-test-live.cc||g' \
${PATCH_WRKSRC}/test/Makefile.inc
.include <bsd.port.mk>
|