blob: 4215db4a7626a9e803c5abca5dd4b26ed9d39ea1 (
plain) (
blame)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Created by: vanilla@
# $FreeBSD$
PORTNAME= actor-framework
PORTVERSION= 0.13
CATEGORIES= devel
MASTER_SITES= GHL
MAINTAINER= vallentin@icir.org
COMMENT= C++ actor framework
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
CXXFLAGS+= -std=c++11 -Wextra -Wall -pedantic
LDFLAGS+= -pthread
USES= compiler:c++11-lang cmake:outsource
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= ${PORTNAME}
GH_COMMIT= 4b1b1ad
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_DEFAULT= TEST
OPTIONS_SUB= yes
TEST_DESC= Build with unit tests
STATIC_DESC= Additionally build static version of library
LOG_LEVEL_ERROR= Use log level ERROR for console output
LOG_LEVEL_WARN= Use log level WARN for console output
LOG_LEVEL_INFO= Use log level INFO for console output
LOG_LEVEL_DEBUG= Use log level DEBUG for console output
LOG_LEVEL_TRACE= Use log level TRACE for console output
# 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=0
LOG_LEVEL_WARN_CMAKE_ON= -DCAF_LOG_LEVEL:STRING=1
LOG_LEVEL_INFO_CMAKE_ON= -DCAF_LOG_LEVEL:STRING=2
LOG_LEVEL_DEBUG_CMAKE_ON= -DCAF_LOG_LEVEL:STRING=3
LOG_LEVEL_TRACE_CMAKE_ON= -DCAF_LOG_LEVEL:STRING=4
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MTEST}
regression-test: build
@cd ${BUILD_WRKSRC} && ${MAKE} test
.endif
.if ${OSVERSION} < 1001000
BROKEN= require clang & libc++
.endif
.include <bsd.port.mk>
|