mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
Add net/libsrtp2 2.2.0 (API not compatible with net/libsrtp).
PR: 228866
This commit is contained in:
parent
0e9ee35bf1
commit
c6e7f911c6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=472142
@ -423,6 +423,7 @@
|
||||
SUBDIR += libsignal
|
||||
SUBDIR += libsocket++
|
||||
SUBDIR += libsrtp
|
||||
SUBDIR += libsrtp2
|
||||
SUBDIR += libstorj
|
||||
SUBDIR += libtnl
|
||||
SUBDIR += libtrace
|
||||
|
33
net/libsrtp2/Makefile
Normal file
33
net/libsrtp2/Makefile
Normal file
@ -0,0 +1,33 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= libsrtp
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 2.2.0
|
||||
CATEGORIES= net
|
||||
PKGNAMESUFFIX= 2
|
||||
|
||||
MAINTAINER= tijl@FreeBSD.org
|
||||
COMMENT= Secure RTP (SRTP) Reference Implementation
|
||||
|
||||
LICENSE= BSD3CLAUSE
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= cisco
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --enable-openssl \
|
||||
crypto_CFLAGS="-I${OPENSSLINC}" \
|
||||
crypto_LIBS="${OPENSSLLIB}/libcrypto.so"
|
||||
USES= cpe gmake pkgconfig ssl
|
||||
CPE_VENDOR= cisco
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
ALL_TARGET= all shared_library
|
||||
TEST_TARGET= runtest
|
||||
TEST_ENV= LD_LIBRARY_PATH=${WRKSRC}
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} '/supported_cflags=.*-fPIC/d' ${WRKSRC}/configure
|
||||
|
||||
.include <bsd.port.mk>
|
3
net/libsrtp2/distinfo
Normal file
3
net/libsrtp2/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1528637386
|
||||
SHA256 (cisco-libsrtp-v2.2.0_GH0.tar.gz) = 44fd7497bce78767e96b54a11bca520adb2ad32effd515f04bce602b60a1a50b
|
||||
SIZE (cisco-libsrtp-v2.2.0_GH0.tar.gz) = 308469
|
35
net/libsrtp2/files/patch-Makefile.in
Normal file
35
net/libsrtp2/files/patch-Makefile.in
Normal file
@ -0,0 +1,35 @@
|
||||
--- Makefile.in.orig 2018-05-15 19:33:24 UTC
|
||||
+++ Makefile.in
|
||||
@@ -82,12 +82,11 @@ pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = libsrtp2.pc
|
||||
|
||||
SHAREDLIBVERSION = 1
|
||||
-ifneq (,$(or $(findstring linux,@host@), $(findstring gnu,@host@)))
|
||||
SHAREDLIB_DIR = $(libdir)
|
||||
SHAREDLIB_LDFLAGS = -shared -Wl,-soname,$@
|
||||
SHAREDLIBSUFFIXNOVER = so
|
||||
SHAREDLIBSUFFIX = $(SHAREDLIBSUFFIXNOVER).$(SHAREDLIBVERSION)
|
||||
-else ifneq (,$(or $(findstring cygwin,@host@), $(findstring mingw,@host@)))
|
||||
+ifneq (,$(or $(findstring cygwin,@host@), $(findstring mingw,@host@)))
|
||||
SHAREDLIB_DIR = $(bindir)
|
||||
SHAREDLIB_LDFLAGS = -shared -Wl,--out-implib,libsrtp2.dll.a
|
||||
SHAREDLIBVERSION =
|
||||
@@ -106,6 +105,9 @@ endif
|
||||
%.o: %.c
|
||||
$(COMPILE) -c $< -o $@
|
||||
|
||||
+%.So: %.c
|
||||
+ $(COMPILE) -DPIC -fPIC -c $< -o $@
|
||||
+
|
||||
%$(EXE): %.c
|
||||
$(COMPILE) $(LDFLAGS) $< -o $@ $(SRTPLIB) $(LIBS)
|
||||
|
||||
@@ -137,7 +139,7 @@ libsrtp2.a: $(srtpobj) $(cryptobj) $(gdoi)
|
||||
$(AR) cr libsrtp2.a $^
|
||||
$(RANLIB) libsrtp2.a
|
||||
|
||||
-libsrtp2.$(SHAREDLIBSUFFIX): $(srtpobj) $(cryptobj) $(gdoi)
|
||||
+libsrtp2.$(SHAREDLIBSUFFIX): $(srtpobj:.o=.So) $(cryptobj:.o=.So) $(gdoi:.o=.So)
|
||||
$(CC) -shared -o $@ $(SHAREDLIB_LDFLAGS) \
|
||||
$^ $(LDFLAGS) $(LIBS)
|
||||
if [ -n "$(SHAREDLIBVERSION)" ]; then \
|
10
net/libsrtp2/files/patch-libsrtp2.pc.in
Normal file
10
net/libsrtp2/files/patch-libsrtp2.pc.in
Normal file
@ -0,0 +1,10 @@
|
||||
--- libsrtp2.pc.in.orig 2014-12-30 16:27:06 UTC
|
||||
+++ libsrtp2.pc.in
|
||||
@@ -7,5 +7,6 @@ Name: @PACKAGE_NAME@
|
||||
Version: @PACKAGE_VERSION@
|
||||
Description: Library for SRTP (Secure Realtime Transport Protocol)
|
||||
|
||||
-Libs: -L${libdir} -lsrtp2 @LIBS@
|
||||
+Libs: -L${libdir} -lsrtp2
|
||||
+Libs.private: -lcrypto
|
||||
Cflags: -I${includedir}
|
5
net/libsrtp2/pkg-descr
Normal file
5
net/libsrtp2/pkg-descr
Normal file
@ -0,0 +1,5 @@
|
||||
This package provides an implementation of the Secure Real-time
|
||||
Transport Protocol (SRTP), the Universal Security Transform (UST),
|
||||
and a supporting cryptographic kernel.
|
||||
|
||||
WWW: https://github.com/cisco/libsrtp
|
8
net/libsrtp2/pkg-plist
Normal file
8
net/libsrtp2/pkg-plist
Normal file
@ -0,0 +1,8 @@
|
||||
include/srtp2/auth.h
|
||||
include/srtp2/cipher.h
|
||||
include/srtp2/crypto_types.h
|
||||
include/srtp2/srtp.h
|
||||
lib/libsrtp2.a
|
||||
lib/libsrtp2.so
|
||||
lib/libsrtp2.so.1
|
||||
libdata/pkgconfig/libsrtp2.pc
|
Loading…
Reference in New Issue
Block a user