git: 52814f7a042f - main - net/libusrsctp: Unbreak on HEAD
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 28 Apr 2023 17:19:49 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=52814f7a042fe9699c388e48cf4f0ada175cf6b9
commit 52814f7a042fe9699c388e48cf4f0ada175cf6b9
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-04-28 12:46:15 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-04-28 17:18:11 +0000
net/libusrsctp: Unbreak on HEAD
Upstream bug: https://github.com/sctplab/usrsctp/issues/667
Approved by: portmgr (just-fix-it)
---
net/libusrsctp/Makefile | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/net/libusrsctp/Makefile b/net/libusrsctp/Makefile
index da5b238cd9fd..d5636b99c927 100644
--- a/net/libusrsctp/Makefile
+++ b/net/libusrsctp/Makefile
@@ -9,8 +9,6 @@ WWW= https://github.com/sctplab/usrsctp
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.md
-BROKEN_FreeBSD_14= compilation fails: no netinet6/ip6protosw.h on FreeBSD 14, see https://github.com/sctplab/usrsctp/issues/667
-
USES= cmake
USE_LDCONFIG= yes
@@ -28,4 +26,11 @@ PLIST_FILES= include/usrsctp.h \
CFLAGS+= -Wno-error
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+post-patch:
+.if ${OSVERSION} >= 1400000
+ @${REINPLACE_CMD} -e 's|ip6protosw.h|ip6_var.h|g' \
+ ${WRKSRC}/usrsctplib/netinet/sctp_os_userspace.h
+.endif
+.include <bsd.port.post.mk>