Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Aug 2023 11:53:28 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: 434e2b4fe996 - main - devel/sdts++: Fix build with llvm16
Message-ID:  <202308051153.375BrStl075042@gitrepo.freebsd.org>

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

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

commit 434e2b4fe99643bb159809ac774d4f438fbaf462
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-03 09:38:15 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-05 11:53:18 +0000

    devel/sdts++: Fix build with llvm16
    
    - Pet portclippy
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 devel/sdts++/Makefile | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/devel/sdts++/Makefile b/devel/sdts++/Makefile
index eb76592bfdb5..b0191ce4b231 100644
--- a/devel/sdts++/Makefile
+++ b/devel/sdts++/Makefile
@@ -11,15 +11,24 @@ WWW=		https://mcmcweb.er.usgs.gov/sdts/sdtsxx/
 
 LIB_DEPENDS=	libboost_thread.so:devel/boost-libs
 
-DOS2UNIX_GLOB=	*.cpp
 USES=		autoreconf bison dos2unix gmake libtool makeinfo
+DOS2UNIX_GLOB=	*.cpp
+USE_CXXSTD=	c++14
+USE_LDCONFIG=	yes
+
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--with-boost=${LOCALBASE}/include
+
 INSTALL_TARGET=	install-strip
-USE_LDCONFIG=	yes
 
 INFO=		sdts++
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+CPPFLAGS+=  -Dregister=
+.endif
+
 post-patch:
 .for f in AUTHORS ChangeLog NEWS README
 	@${TOUCH} ${WRKSRC}/sysutils/${f}



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