blob: b30556c9b8f80189dace0b87d85e7f6c9819ce74 (
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
|
# $FreeBSD$
PORTNAME= ccls
DISTVERSION= 0.20181225
CATEGORIES= devel
MAINTAINER= tobik@FreeBSD.org
COMMENT= C/C++/ObjC language server
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= llvm${LLVM_DEFAULT}>0:devel/llvm${LLVM_DEFAULT} \
rapidjson>=1.1.0_4:devel/rapidjson
LIB_DEPENDS= libLLVM-${LLVM_DEFAULT:C/[0-9]$//}.so:devel/llvm${LLVM_DEFAULT}
USES= cmake:outsource compiler:c++17-lang localbase
USE_GITHUB= yes
GH_ACCOUNT= MaskRay
CMAKE_ARGS= -DCLANG_ROOT:String="${LOCALBASE}/llvm${LLVM_DEFAULT}"
CMAKE_ON= SYSTEM_CLANG USE_SHARED_LLVM
PLIST_FILES= bin/ccls
OPTIONS_DEFINE= DOCS
DOCS_DISTFILES= MaskRay-ccls.wiki-20181210.tar.gz:docs
DOCS_MASTER_SITES= LOCAL/tobik:docs
PORTDOCS= *
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKDIR}/ccls.wiki && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|