git: 15ba0ea12ca2 - main - lang/ldc: fix build on powerpc64*

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Fri, 11 Sep 2026 17:59:53 UTC
The branch main has been updated by pkubaj:

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

commit 15ba0ea12ca26b9a699fd10ac3a2688047a706c4
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2026-09-11 17:58:29 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2026-09-11 17:59:49 +0000

    lang/ldc: fix build on powerpc64*
    
    Use proper bootstrap filename.
---
 lang/ldc/Makefile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/lang/ldc/Makefile b/lang/ldc/Makefile
index e3aec2b351bd..fc33fee1683b 100644
--- a/lang/ldc/Makefile
+++ b/lang/ldc/Makefile
@@ -4,7 +4,7 @@ DISTVERSIONSUFFIX=	-src
 CATEGORIES=	lang
 MASTER_SITES=	https://github.com/ldc-developers/${PORTNAME}/releases/download/v${DISTVERSION}/
 DISTFILES=	${DISTNAME}${EXTRACT_SUFX} \
-		ldc2-${PORTVERSION}-freebsd-${BOOTSTRAP_ARCH}.tar.xz:bootstrap
+		ldc2-${BOOTSTRAP_VERSION}-freebsd-${BOOTSTRAP_ARCH}.tar.xz:bootstrap
 
 MAINTAINER=	acm@FreeBSD.org
 COMMENT=	LLVM-based D compiler
@@ -25,7 +25,7 @@ USE_LDCONFIG=	yes
 CFLAGS+=	-fPIC
 
 CMAKE_ARGS+=	-DLDC_INSTALL_PREFIX="${PREFIX}" \
-		-DD_COMPILER="${WRKDIR}/ldc2-${PORTVERSION}-freebsd-${BOOTSTRAP_ARCH}/bin/ldmd2" \
+		-DD_COMPILER="${WRKDIR}/ldc2-${BOOTSTRAP_VERSION}-freebsd-${BOOTSTRAP_ARCH}/bin/ldmd2" \
 		-DLLVM_CONFIG=${LOCALBASE}/bin/${LLVM_CONFIG} \
 		-DBUILD_SHARED_LIBS="BOTH" \
 		-DBUILD_LTO_LIBS=ON
@@ -34,9 +34,11 @@ CMAKE_ARGS+=	-DLDC_INSTALL_PREFIX="${PREFIX}" \
 
 .if ${ARCH} == amd64
 BOOTSTRAP_ARCH=	x86_64
+BOOTSTRAP_VERSION=	${PORTVERSION}
 MASTER_SITES+=	https://github.com/ldc-developers/${PORTNAME}/releases/download/v${DISTVERSION}/:bootstrap
 .elif ${ARCH} == powerpc64
 BOOTSTRAP_ARCH=	ppc64
+BOOTSTRAP_VERSION=	1.42.0
 MASTER_SITES+=	LOCAL/pkubaj:bootstrap
 .elif ${ARCH} == powerpc64le
 .  if ${OSVERSION} >= 1600019
@@ -44,6 +46,7 @@ BOOTSTRAP_ARCH=	ppc64le-ld128
 .  else
 BOOTSTRAP_ARCH=	ppc64le
 .  endif
+BOOTSTRAP_VERSION=	1.42.0
 MASTER_SITES+=	LOCAL/pkubaj:bootstrap
 .endif