mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
devel/edi: add an option to build the port against libclang
This enables code autocompletion and inline error reporting. Allow to override LLVM_DEFAULT: contemporary LLVM versions are quite demanding on machine resources and take long time to build. Those who build their own packages can mitigate this by setting LLVM_VERSION to some lower, saner value e.g. 11, then enabling the option would be less costly.
This commit is contained in:
parent
3968779d8b
commit
6d2a9d6eff
@ -11,12 +11,19 @@ WWW= https://phab.enlightenment.org/w/projects/edi/
|
||||
LIB_DEPENDS= libelementary.so:devel/efl
|
||||
|
||||
USES= desktop-file-utils gettext meson pkgconfig tar:xz
|
||||
MESON_ARGS= -Dlibclang=false
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
PORTDOCS= AUTHORS NEWS TODO
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
OPTIONS_DEFINE= DOCS LIBCLANG
|
||||
|
||||
LIBCLANG_DESC= Autocomplete and inline error reporting via libclang
|
||||
LIBCLANG_LIB_DEPENDS= libclang.so:devel/llvm${LLVM_VERSION}
|
||||
LIBCLANG_MESON_ON= -Dlibclang-libdir=${LOCALBASE}/llvm${LLVM_VERSION}/lib \
|
||||
-Dlibclang-headerdir=${LOCALBASE}/llvm${LLVM_VERSION}/include
|
||||
LIBCLANG_MESON_OFF= -Dlibclang=false
|
||||
|
||||
LLVM_VERSION?= ${LLVM_DEFAULT}
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e '/input : join_paths/d' \
|
||||
|
Loading…
Reference in New Issue
Block a user