telephony/libosip2: update to 5.3.1

Catch up with ten years of changes and take maintainer.
Tested with sole consumer siproxd.
This commit is contained in:
naddy 2022-11-27 18:52:32 +00:00
parent e038c687d7
commit 3a24eeaa0d
5 changed files with 37 additions and 13 deletions

View File

@ -1,25 +1,26 @@
COMMENT= GNU oSIP library
COMMENT= GNU implementation of SIP (RFC3261)
DISTNAME= libosip2-3.5.0
REVISION= 5
DISTNAME= libosip2-5.3.1
SHARED_LIBS += osipparser2 4.0 # 8.0
SHARED_LIBS += osip2 4.0 # 8.0
SHARED_LIBS += osipparser2 5.0 # 15.1
SHARED_LIBS += osip2 5.0 # 15.1
CATEGORIES= telephony devel
HOMEPAGE= https://www.gnu.org/software/osip/
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
# LGPLv2.1+
PERMIT_PACKAGE= Yes
WANTLIB += c
WANTLIB= pthread
MASTER_SITES= ${MASTER_SITE_GNU:=osip/}
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= --disable-debug \
--enable-test
CONFIGURE_ARGS= --enable-test
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/scripts
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (libosip2-3.5.0.tar.gz) = 3ZVdqiTZzi3mcJuME+fATrw6+orAlNahWgKgdb5xmpE=
SIZE (libosip2-3.5.0.tar.gz) = 597632
SHA256 (libosip2-5.3.1.tar.gz) = /oL+hBYIJmrBWlwRGCFtoAxVTVAG4odaisN1Kx5q3Hk=
SIZE (libosip2-5.3.1.tar.gz) = 725024

View File

@ -0,0 +1,12 @@
Index: src/osipparser2/osip_port.c
--- src/osipparser2/osip_port.c.orig
+++ src/osipparser2/osip_port.c
@@ -877,7 +877,7 @@ int __osip_port_gettimeofday(struct timeval *tp, void
tp->tv_usec = timebuffer.millitm * 1000;
return OSIP_SUCCESS;
}
-#elif defined(__linux)
+#elif defined(__linux) || defined(__OpenBSD__)
#include <sys/time.h>
#define __osip_port_gettimeofday gettimeofday
#elif defined(__APPLE__)

View File

@ -44,10 +44,10 @@ include/osipparser2/osip_parser.h
include/osipparser2/osip_port.h
include/osipparser2/osip_uri.h
include/osipparser2/sdp_message.h
lib/libosip2.a
@static-lib lib/libosip2.a
lib/libosip2.la
@lib lib/libosip2.so.${LIBosip2_VERSION}
lib/libosipparser2.a
@static-lib lib/libosipparser2.a
lib/libosipparser2.la
@lib lib/libosipparser2.so.${LIBosipparser2_VERSION}
lib/pkgconfig/libosip2.pc

View File

@ -0,0 +1,11 @@
Index: src/rtpproxy.c
--- src/rtpproxy.c.orig
+++ src/rtpproxy.c
@@ -22,6 +22,7 @@
#include <unistd.h>
#include <sys/types.h>
+#include <sys/time.h>
#include <netinet/in.h>
#include <osipparser2/osip_parser.h>