Re: git: 6d2a9d6effb7 - main - devel/edi: add an option to build the port against libclang
- Reply: Alexey Dokuchaev : "Re: git: 6d2a9d6effb7 - main - devel/edi: add an option to build the port against libclang"
- In reply to: Alexey Dokuchaev : "git: 6d2a9d6effb7 - main - devel/edi: add an option to build the port against libclang"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 11 Feb 2023 12:37:58 UTC
Alexey Dokuchaev <danfe@FreeBSD.org> writes: > +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} Can be simplified via USES=llvm e.g., diff --git a/devel/edi/Makefile b/devel/edi/Makefile index b4451139fa6b..1f360a21fee0 100644 --- a/devel/edi/Makefile +++ b/devel/edi/Makefile @@ -18,12 +18,10 @@ PORTDOCS= AUTHORS NEWS TODO 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} +LIBCLANG_USES= llvm:lib +LIBCLANG_MESON_TRUE= libclang +LIBCLANG_MESON_ON= -Dlibclang-libdir="${LLVM_PREFIX}/lib" \ + -Dlibclang-headerdir="${LLVM_PREFIX}/include" post-patch: @${REINPLACE_CMD} -e '/input : join_paths/d' \