1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00
freebsd-ports/devel/caf/Makefile
2021-08-05 14:15:23 +08:00

54 lines
1.7 KiB
Makefile

# Created by: vanilla@
PORTNAME= caf
PORTVERSION= 0.18.5
CATEGORIES= devel
MAINTAINER= ports@FreeBSD.org
COMMENT= C++ actor framework
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cmake compiler:c++11-lang ssl
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= actor-framework
GH_PROJECT= ${GH_ACCOUNT}
OPTIONS_DEFINE= DEBUG TEST STATIC
OPTIONS_RADIO= LOG_LEVEL
OPTIONS_RADIO_LOG_LEVEL= LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG LOG_LEVEL_TRACE
OPTIONS_SUB= yes
PLIST_SUB+= PORTVERSION=${PORTVERSION}
LOG_LEVEL_DEBUG_DESC= Use log level DEBUG for console output
LOG_LEVEL_ERROR_DESC= Use log level ERROR for console output
LOG_LEVEL_INFO_DESC= Use log level INFO for console output
LOG_LEVEL_TRACE_DESC= Use log level TRACE for console output
LOG_LEVEL_WARN_DESC= Use log level WARN for console output
STATIC_DESC= Additionally build static version of library
TEST_DESC= Build with unit tests
TEST_TARGET= test
CXXFLAGS+= -std=c++11 -Wextra -Wall -pedantic
LDFLAGS+= -pthread
# Until we cannot automatically disentangle examples from other binaries, we do
# not support an EXAMPLES option. We also disable a few components that are
# still quite experimental.
CMAKE_ARGS+= -DCAF_NO_EXAMPLES:BOOL=yes -DCAF_NO_OPENCL:BOOL=yes
DEBUG_CMAKE_ON= -DCAF_ENABLE_RUNTIME_CHECKS:BOOL=yes
STATIC_CMAKE_ON= -DCAF_BUILD_STATIC:BOOL=yes
TEST_CMAKE_OFF= -DCAF_NO_UNIT_TESTS:BOOL=yes
LOG_LEVEL_ERROR_CMAKE_ON= -DCAF_LOG_LEVEL:STRING=ERROR
LOG_LEVEL_WARN_CMAKE_ON= -DCAF_LOG_LEVEL:STRING=WARN
LOG_LEVEL_INFO_CMAKE_ON= -DCAF_LOG_LEVEL:STRING=INFO
LOG_LEVEL_DEBUG_CMAKE_ON= -DCAF_LOG_LEVEL:STRING=DEBUG
LOG_LEVEL_TRACE_CMAKE_ON= -DCAF_LOG_LEVEL:STRING=TRACE
.include <bsd.port.mk>