git: 2f038fd050b7 - main - devel/darts: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 25 Jun 2023 21:43:17 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=2f038fd050b7f3003049c0fdd4c6251523e4b25a
commit 2f038fd050b7f3003049c0fdd4c6251523e4b25a
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-25 21:38:07 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-25 21:42:46 +0000
devel/darts: Fix build with llvm16
- Pet portclippy
- Adopt port
Sponsored by: The FreeBSD Foundation
---
devel/darts/Makefile | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/devel/darts/Makefile b/devel/darts/Makefile
index 47812788880d..12aaeee8536b 100644
--- a/devel/darts/Makefile
+++ b/devel/darts/Makefile
@@ -4,7 +4,7 @@ PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.chasen.org/~taku/software/darts/src/
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= bofh@FreeBSD.org
COMMENT= C++ template library that implements Double-Array
WWW= http://www.chasen.org/~taku/software/darts/
@@ -14,16 +14,22 @@ LICENSE_FILE_BSD3CLAUSE=${WRKSRC}/BSD
LICENSE_FILE_LGPL21+ = ${WRKSRC}/LGPL
USES= autoreconf
-GNU_CONFIGURE= yes
-
-OPTIONS_DEFINE= DOCS EXAMPLES
-PORTEXAMPLES= darts.cpp mkdarts.cpp
-PORTDOCS= AUTHORS ChangeLog README doc
+GNU_CONFIGURE= yes
PLIST_FILES= include/darts.h \
libexec/darts/darts \
libexec/darts/mkdarts
+PORTDOCS= AUTHORS ChangeLog README doc
+PORTEXAMPLES= darts.cpp mkdarts.cpp
+
+OPTIONS_DEFINE= DOCS EXAMPLES
+
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CPPFLAGS+= -Dregister=
+.endif
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}