blob: e8fc82097f2bdfbcfd2844969f70b5ca13793f63 (
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
63
64
|
PORTNAME= malloy
DISTVERSION= 0.7.0
PORTREVISION= 1
CATEGORIES= devel
MAINTAINER= jbo@FreeBSD.org
COMMENT= Embeddable HTTP(S) and WS(S) client/server components for C++
WWW= https://github.com/tectu/malloy
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/license.txt
BUILD_DEPENDS= boost-libs>1.79.0:devel/boost-libs
LIB_DEPENDS= libfmt.so:devel/libfmt \
libspdlog.so:devel/spdlog
USES= cmake
USE_GITHUB= yes
GH_ACCOUNT= tectu
CMAKE_ON= MALLOY_BUILD_SHARED
CMAKE_OFF= MALLOY_BUILD_EXAMPLES \
MALLOY_DEPENDENCY_FMT_DOWNLOAD \
MALLOY_DEPENDENCY_SPDLOG_DOWNLOAD
PLIST_SUB= SOVERSION="${DISTVERSION}"
OPTIONS_DEFINE= DOCS EXAMPLES HTML TEST TLS
OPTIONS_DEFAULT= CLIENT DOCS EXAMPLES HTML SERVER TLS
OPTIONS_MULTI= HTTP
OPTIONS_MULTI_HTTP= CLIENT SERVER
OPTIONS_SUB= yes
CLIENT_DESC= HTTP client support
HTML_DESC= HTML features
SERVER_DESC= HTTP server support
CLIENT_CMAKE_BOOL= MALLOY_FEATURE_CLIENT
DOCS_BUILD_DEPENDS= doxygen:devel/doxygen
DOCS_PORTDOCS= *
HTML_CMAKE_BOOL= MALLOY_FEATURE_HTML
SERVER_CMAKE_BOOL= MALLOY_FEATURE_SERVER
TEST_IMPLIES= CLIENT HTML SERVER
TEST_CMAKE_BOOL= MALLOY_BUILD_TESTS
TLS_USES= ssl
TLS_CMAKE_BOOL= MALLOY_FEATURE_TLS
post-build-DOCS-on:
(cd ${WRKSRC} && ${LOCALBASE}/bin/doxygen)
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/readme.md ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/doc/doxygen && \
${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR})
post-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
do-test-TEST-on:
${TEST_WRKSRC}/bin/malloy-tests
.include <bsd.port.mk>
|