git: 0d5a8dbb8b0a - main - net-mgmt/fastnetmon: Fix build on 14
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 18 Aug 2023 07:54:00 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=0d5a8dbb8b0a7698c268b673973f27646ca70e91 commit 0d5a8dbb8b0a7698c268b673973f27646ca70e91 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-08-18 07:43:38 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-08-18 07:53:32 +0000 net-mgmt/fastnetmon: Fix build on 14 - Pet portclippy Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- net-mgmt/fastnetmon/Makefile | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/net-mgmt/fastnetmon/Makefile b/net-mgmt/fastnetmon/Makefile index 8d00bebb60a0..ebacb752541e 100644 --- a/net-mgmt/fastnetmon/Makefile +++ b/net-mgmt/fastnetmon/Makefile @@ -28,26 +28,34 @@ USES= cmake compiler:c++11-lang pkgconfig localbase:ldflags ssl USE_CXXSTD= c++14 USE_GITHUB= yes GH_ACCOUNT= pavel-odintsov +USE_RC_SUBR= ${PORTNAME} + +CMAKE_ARGS+= -DENABLE_NETMAP_SUPPORT=ON \ + -DLINK_WITH_ABSL=ON \ + -DSET_ABSOLUTE_INSTALL_PATH=OFF \ + -DCMAKE_INSTALL_MANDIR=${PREFIX}/man +CMAKE_INSTALL_PREFIX= ${PREFIX} +CMAKE_SOURCE_PATH= ${WRKSRC}/src + +CFLAGS_i386= -march=i586 +CXXFLAGS += -DBOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED \ + -D_GNU_SOURCE USERS= ${PORTNAME} GROUPS= ${PORTNAME} -USE_RC_SUBR= ${PORTNAME} +PORTDOCS= * OPTIONS_DEFINE= DOCS -PORTDOCS= * - -CXXFLAGS += -DBOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED \ - -D_GNU_SOURCE -CFLAGS_i386= -march=i586 -CMAKE_SOURCE_PATH= ${WRKSRC}/src -CMAKE_ARGS+= -DENABLE_NETMAP_SUPPORT=ON \ - -DLINK_WITH_ABSL=ON \ - -DSET_ABSOLUTE_INSTALL_PATH=OFF \ - -DCMAKE_INSTALL_MANDIR=${PREFIX}/man +.include <bsd.port.options.mk> -CMAKE_INSTALL_PREFIX= ${PREFIX} +.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 .include <bsd.port.pre.mk>