ports/net/libusrsctp/Makefile
Muhammad Moinur Rahman 52814f7a04 net/libusrsctp: Unbreak on HEAD
Upstream bug: https://github.com/sctplab/usrsctp/issues/667

Approved by:	portmgr (just-fix-it)
2023-04-28 12:18:11 -05:00

36 lines
715 B
Makefile

PORTNAME= libusrsctp
DISTVERSION= 0.9.5.0
CATEGORIES= net devel
MAINTAINER= yuri@FreeBSD.org
COMMENT= Portable SCTP userland stack
WWW= https://github.com/sctplab/usrsctp
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.md
USES= cmake
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= sctplab
GH_PROJECT= usrsctp
CMAKE_ON= BUILD_SHARED_LIBS
PLIST_FILES= include/usrsctp.h \
lib/libusrsctp.so \
lib/libusrsctp.so.2 \
lib/libusrsctp.so.2.0.0 \
libdata/pkgconfig/usrsctp.pc
CFLAGS+= -Wno-error
.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>