git: 5082418d8f29 - main - multimedia/av1an: convert to USES=llvm

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sat, 24 Dec 2022 16:37:18 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5082418d8f29c3822e3c7b892f9faa06749b52a7

commit 5082418d8f29c3822e3c7b892f9faa06749b52a7
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2022-12-24 16:07:59 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2022-12-24 16:35:30 +0000

    multimedia/av1an: convert to USES=llvm
---
 multimedia/av1an/Makefile | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/multimedia/av1an/Makefile b/multimedia/av1an/Makefile
index 6314ba3fbbda..f4c4e2c42bef 100644
--- a/multimedia/av1an/Makefile
+++ b/multimedia/av1an/Makefile
@@ -13,20 +13,19 @@ WWW=		https://github.com/master-of-zen/Av1an
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/LICENSE.md
 
-BUILD_DEPENDS=	llvm${LLVM_DEFAULT}>0:devel/llvm${LLVM_DEFAULT} \
-		${BUILD_DEPENDS_${ARCH}}
+BUILD_DEPENDS=	${BUILD_DEPENDS_${ARCH}}
 BUILD_DEPENDS_amd64=	nasm:devel/nasm
 LIB_DEPENDS=	libavformat.so:multimedia/ffmpeg \
 		libvapoursynth-script.so:multimedia/vapoursynth
 
-USES=		cargo
+USES=		cargo llvm
 USE_GITHUB=	yes
 GH_ACCOUNT=	master-of-zen
 GH_PROJECT=	Av1an
 PLIST_FILES=	bin/${PORTNAME}
 
 post-patch:
-	@${REINPLACE_CMD} -e 's,"llvm-config,&${LLVM_DEFAULT},' \
+	@${REINPLACE_CMD} -e 's,"llvm-config,&${LLVM_VERSION},' \
 		${WRKSRC}/cargo-crates/clang-sys-*/build/common.rs \
 		${WRKSRC}/cargo-crates/clang-sys-*/src/support.rs