Date: Sat, 11 Feb 2023 13:37:58 +0100 From: Jan Beich <jbeich@FreeBSD.org> To: Alexey Dokuchaev <danfe@FreeBSD.org> Cc: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: Re: git: 6d2a9d6effb7 - main - devel/edi: add an option to build the port against libclang Message-ID: <o7q0-pec9-wny@FreeBSD.org> In-Reply-To: <202302111217.31BCHAJB089240@gitrepo.freebsd.org> (Alexey Dokuchaev's message of "Sat, 11 Feb 2023 12:17:10 GMT") References: <202302111217.31BCHAJB089240@gitrepo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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' \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?o7q0-pec9-wny>