Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Aug 2023 06:57:22 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: a5b5a22ade57 - main - biology/mothur: Fix build on 14
Message-ID:  <202308180657.37I6vMd7082935@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=a5b5a22ade5713b3b2f9bddcb6fa95fe4aa51b9c

commit a5b5a22ade5713b3b2f9bddcb6fa95fe4aa51b9c
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-18 05:33:25 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-18 06:57:12 +0000

    biology/mothur: Fix build on 14
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 biology/mothur/Makefile | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/biology/mothur/Makefile b/biology/mothur/Makefile
index 8c2bde5c481e..2d16bf482f08 100644
--- a/biology/mothur/Makefile
+++ b/biology/mothur/Makefile
@@ -14,7 +14,7 @@ BUILD_DEPENDS=	bash:shells/bash
 
 USES=		compiler:c++11-lang gmake localbase readline
 USE_GITHUB=	yes
-USE_CXXSTD=	c++11 # not all C++ files are compiled with -std=c++11 which causes failure in addtargets2.cpp due to a collision of the 'byte' symbol with std::byte
+#USE_CXXSTD=	c++11 # not all C++ files are compiled with -std=c++11 which causes failure in addtargets2.cpp due to a collision of the 'byte' symbol with std::byte
 
 MAKE_ARGS=	INSTALL_DIR=${STAGEDIR}${PREFIX}/bin
 
@@ -24,6 +24,15 @@ BINARY_ALIAS=	g++=${CXX}
 
 PLIST_FILES=	bin/${PORTNAME}
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+USES+=	llvm:max=15
+CC=	clang${LLVM_VERSION}
+CPP=	clang-cpp${LLVM_VERSION}
+CXX=	clang++${LLVM_VERSION}
+.endif
+
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
 


home | help

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