blob: bbc9f8fa0ab58e1b3a3615d89c6e49b9946cee07 (
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
33
34
35
|
PORTNAME= ccls
DISTVERSION= 0.20201219
CATEGORIES= devel
MAINTAINER= khng300@gmail.com
COMMENT= C/C++/ObjC language server
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= rapidjson>=1.1.0_4:devel/rapidjson
LIB_DEPENDS= libclang-cpp.so:devel/llvm${LLVM_DEFAULT}
USES= cmake compiler:c++17-lang localbase
USE_GITHUB= yes
GH_ACCOUNT= MaskRay
CMAKE_ARGS= -DCCLS_VERSION:STRING="${DISTVERSION}" \
-DClang_DIR:PATH="${LOCALBASE}/llvm${LLVM_DEFAULT}/lib/cmake/clang" \
-DLLVM_DIR:PATH="${LOCALBASE}/llvm${LLVM_DEFAULT}/lib/cmake/llvm"
CXXFLAGS+= -DNDEBUG
PLIST_FILES= bin/ccls
PORTDOCS= *
OPTIONS_DEFINE= DOCS
DOCS_MASTER_SITES= LOCAL/tobik:docs
DOCS_DISTFILES= MaskRay-ccls.wiki-20190903.tar.gz:docs
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKDIR}/ccls.wiki && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|