1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/devel/ccls/Makefile
Ka Ho Ng 024be49d6e devel/ccls: Update to 0.20210330
The location of documentation tarball is reset to my ~/public_distfiles.

Approved by:	lwhsu
Differential Revision:	https://reviews.freebsd.org/D29601
2021-04-09 16:58:40 +08:00

57 lines
1.4 KiB
Makefile

PORTNAME= ccls
DISTVERSION= 0.20210330
CATEGORIES= devel
MAINTAINER= khng@FreeBSD.org
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/khng:docs
DOCS_DISTFILES= ccls.wiki-${DISTVERSION}.tar.gz:docs
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKDIR}/ccls.wiki && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
.if defined(MAINTAINER_MODE)
MAINTAINER_DISTFILE= \
${_DISTDIR:S|/$||}/${DOCS_DISTFILES:Mccls.wiki-*.tar.gz\:*:C|\:.*$||}
maintainer-docs-fetch:
@${MAKE} clean
@${MKDIR} ${WRKDIR}/ccls.wiki
@git clone https://github.com/MaskRay/ccls.wiki.git \
${WRKDIR}/ccls.wiki
@${TAR} -zcf ${MAINTAINER_DISTFILE} -C ${WRKDIR} \
--uid 0 --gid 0 --exclude-vcs ccls.wiki
@${MAKE} makesum
@${MAKE} clean
${MAINTAINER_DISTFILE}: maintainer-docs-fetch
maintainer-docs-distfiles: ${MAINTAINER_DISTFILE}
scp ${MAINTAINER_DISTFILE} \
freefall.freebsd.org:public_distfiles/
.endif
.include <bsd.port.mk>