Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Jan 2025 16:38:55 GMT
From:      Brooks Davis <brooks@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: dab073e2c95b - main - devel/llvm-cheri: Actually add files/llvm## to patches
Message-ID:  <202501061638.506Gcto2040084@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by brooks:

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

commit dab073e2c95b0f20992b57f1a8ac41bf6d0e9825
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2025-01-06 16:35:35 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2025-01-06 16:38:15 +0000

    devel/llvm-cheri: Actually add files/llvm## to patches
    
    Move condiationl EXTRA_PATCHES additions after bsd.port.pre.mk so
    PATCHDIR is defined.
    
    Sponsored by:   DARPA, AFRL
---
 devel/llvm-cheri/Makefile | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/devel/llvm-cheri/Makefile b/devel/llvm-cheri/Makefile
index 282f5c1bcfad..efed661a6eec 100644
--- a/devel/llvm-cheri/Makefile
+++ b/devel/llvm-cheri/Makefile
@@ -111,13 +111,6 @@ STRIP_LIBS=	BugpointPasses.so \
 		${LIBNAME}.0 \
 		libLTO.so
 
-.if exists(${PATCHDIR}/llvm${LLVM_MAJOR})
-EXTRA_PATCHES+=	${PATCHDIR}/llvm${LLVM_MAJOR}
-.endif
-.if ${.PARSEDIR} != ${.CURDIR} && exists(${.CURDIR}/files)
-EXTRA_PATCHES+=	${.CURDIR}/files
-.endif
-
 .include <bsd.port.options.mk>
 
 # keep in sync with /usr/src/lib/clang/clang.build.mk
@@ -156,6 +149,14 @@ _USES_PYTHON?=	python:build
 USES+=		${_USES_PYTHON}
 
 .include <bsd.port.pre.mk>
+
+.if exists(${PATCHDIR}/llvm${LLVM_MAJOR})
+EXTRA_PATCHES+=	${PATCHDIR}/llvm${LLVM_MAJOR}
+.endif
+.if ${.PARSEDIR} != ${.CURDIR} && exists(${.CURDIR}/files)
+EXTRA_PATCHES+=	${.CURDIR}/files
+.endif
+
 .include "${.CURDIR}/Makefile.COMMANDS"
 .sinclude "${.CURDIR}/Makefile.MAN1SRCS"
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202501061638.506Gcto2040084>