1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00
freebsd-ports/devel/ccls/Makefile
2019-11-07 14:18:33 +00:00

40 lines
962 B
Makefile

# $FreeBSD$
PORTNAME= ccls
DISTVERSION= 0.20190823.4
CATEGORIES= devel
MASTER_SITES= LOCAL/tobik
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.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>