Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Aug 2023 02:57:27 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 7b0aa2cffd8a - main - editors/hexer: Fix build with llvm16
Message-ID:  <202308180257.37I2vRed080241@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by bofh:

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

commit 7b0aa2cffd8aebd98656f758832979a5e3a7b29c
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-18 02:56:32 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-18 02:57:11 +0000

    editors/hexer: Fix build with llvm16
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 editors/hexer/Makefile | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/editors/hexer/Makefile b/editors/hexer/Makefile
index bf89f9db2357..a5a6b0746576 100644
--- a/editors/hexer/Makefile
+++ b/editors/hexer/Makefile
@@ -22,6 +22,15 @@ OPTIONS_DEFAULT=MYC
 ALL_TARGET=	all
 MYC_ALL_TARGET=	myc
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+USES+=	llvm:max=14
+CC=	clang${LLVM_VERSION}
+CPP=	clang-cpp${LLVM_VERSION}
+CXX=	clang++${LLVM_VERSION}
+.endif
+
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/hexer
 


home | help

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