mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
a15a6fa3a1
* Add option to build STATIC library (PR 269846) Changelog: * Add option to build STATIC library (PR 269846) PR: 278194 Reviewed by: zi (maintainer)
38 lines
899 B
Makefile
38 lines
899 B
Makefile
PORTNAME= c-ares
|
|
DISTVERSION= 1.28.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 pathfix
|
|
USE_LDCONFIG= yes
|
|
|
|
CONFLICTS= py*-ripe.atlas.tools
|
|
|
|
OPTIONS_DEFINE= STATIC TEST
|
|
OPTIONS_SUB= yes
|
|
|
|
STATIC_CMAKE_BOOL= CARES_STATIC
|
|
|
|
TEST_BUILD_DEPENDS= googletest>0:devel/googletest
|
|
TEST_USES= compiler:c++14-lang localbase:ldflags
|
|
TEST_USES_OFF= compiler:c++11-lang
|
|
TEST_CMAKE_BOOL= CARES_BUILD_TESTS
|
|
TEST_TEST_TARGET= test
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|ares-test-live.cc||g' \
|
|
${PATCH_WRKSRC}/test/Makefile.inc
|
|
|
|
post-install-STATIC-on:
|
|
@${RLN} libcares_static.a ${STAGEDIR}/${PREFIX}/lib/libcares.a
|
|
|
|
.include <bsd.port.mk>
|