git: ec48599208cc - main - lang/ghc*: Completely stop depending on LLVM

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Tue, 24 Jun 2025 05:12:56 UTC
The branch main has been updated by arrowd:

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

commit ec48599208cce082ba95c3beb35279ba03f79b02
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2025-06-22 11:23:44 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-06-24 05:12:53 +0000

    lang/ghc*: Completely stop depending on LLVM
    
    - LLVM is needed only for arches that are missing the native codegen backend
      in GHC
    - Starting from GHC 9 both AArch64 and X86 are natively supported
    - Leave LLVM_VERSION and LLVM_BOOT_VERSION vars for documentational purpose
    
    PR:             287528
---
 lang/ghc/Makefile | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/lang/ghc/Makefile b/lang/ghc/Makefile
index ce4fa4c9c728..c5c03dc93f3a 100644
--- a/lang/ghc/Makefile
+++ b/lang/ghc/Makefile
@@ -179,19 +179,9 @@ DISTFILES+=		ghc-${BOOT_GHC_VERSION}-boot-${ARCH}-freebsd${EXTRACT_SUFX}:boot
 DISTFILES+=		hadrian-${GHC_VERSION}-boot.tar.gz:boot
 .endif
 
-.if ${ARCH} == aarch64 || ${ARCH:Marmv*}
-# ghc-8.10.x on arm requires devel/llvm10
-# CONFIGURE_TARGET must to be the same as the llvm triple
+.if ${ARCH} == aarch64
 CONFIGURE_TARGET=	${ARCH}-unknown-freebsd${"${ARCH:Maarch64}" != "":?:-gnueabihf}
 CONFIGURE_ARGS+=	--host=${CONFIGURE_TARGET}
-BUILD_DEPENDS+=		llc${LLVM_VERSION}:devel/llvm${LLVM_VERSION}
-RUN_DEPENDS+=		llc${LLVM_VERSION}:devel/llvm${LLVM_VERSION}
-
-# When GHC being compiled and GHC used for bootstrapping support different
-# LLVM versions, we have to pull in both. Luckily, this is relatively rare.
-.  if ${BOOT_LLVM_VERSION} != ${LLVM_VERSION}
-BUILD_DEPENDS+=		llc${BOOT_LLVM_VERSION}:devel/llvm${BOOT_LLVM_VERSION}
-.  endif
 .endif
 
 post-patch: