summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/libsrtp/Makefile45
-rw-r--r--net/libsrtp/distinfo4
-rw-r--r--net/libsrtp/files/patch-libsrtp.pc.in10
-rw-r--r--net/libsrtp/pkg-descr7
-rw-r--r--net/libsrtp/pkg-plist8
5 files changed, 58 insertions, 16 deletions
diff --git a/net/libsrtp/Makefile b/net/libsrtp/Makefile
index cdda4b302751..f742f98a3ecd 100644
--- a/net/libsrtp/Makefile
+++ b/net/libsrtp/Makefile
@@ -2,21 +2,46 @@
# $FreeBSD$
PORTNAME= libsrtp
-PORTVERSION= 1.4.4
-PORTREVISION= 1
+DISTVERSIONPREFIX= v
+DISTVERSION= 1.5.0
CATEGORIES= net
-MASTER_SITES= SF/${ORIGNAME}/${ORIGNAME}/${PORTVERSION}
-DISTNAME= ${ORIGNAME}-${PORTVERSION}
+MASTER_SITES= GHR
MAINTAINER= alexander@brovikov.ru
-COMMENT= Library implementing Secure RTP
+COMMENT= Secure RTP (SRTP) Reference Implementation
-WRKSRC= ${WRKDIR}/${ORIGNAME}
-ORIGNAME= srtp
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USE_GITHUB= yes
+GH_ACCOUNT= cisco
+WRKSRC= ${WRKDIR}/${GH_PROJECT}-${DISTVERSION}
GNU_CONFIGURE= yes
-USES= gmake tar:tgz
-USE_CSTD= gnu89
-CFLAGS+= -fPIC
+CONFIGURE_ARGS= --enable-openssl
+CFLAGS+= -fPIC # Taken from configure script
+USES= gmake pathfix pkgconfig
+USE_LDCONFIG= yes
+USE_OPENSSL= yes
+WITH_OPENSSL_PORT= yes
+
+.if ! defined(WITH_DEBUG)
+CONFIGURE_ARGS+=--disable-debug
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} \
+ -e 's/@LDFLAGS@ -L\./-L. @LDFLAGS@/' \
+ -e 's/libsrtp.so/&.0/g' \
+ ${WRKSRC}/Makefile.in
+ @${REINPLACE_CMD} '/pkg-config/s/openssl/libcrypto/' \
+ ${WRKSRC}/configure
+
+post-build:
+ @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \
+ ${MAKEFILE} ${MAKE_ARGS} libsrtp.so.0)
+
+post-install:
+ ${LN} -s libsrtp.so.0 ${STAGEDIR}${PREFIX}/lib/libsrtp.so
.include <bsd.port.mk>
diff --git a/net/libsrtp/distinfo b/net/libsrtp/distinfo
index 6770168773d9..b40190da1617 100644
--- a/net/libsrtp/distinfo
+++ b/net/libsrtp/distinfo
@@ -1,2 +1,2 @@
-SHA256 (srtp-1.4.4.tgz) = d9c2cbb1c95172ed2dc963eff0d6ce1072326dc81cb1dd38414e9f0e430af314
-SIZE (srtp-1.4.4.tgz) = 502890
+SHA256 (libsrtp-v1.5.0.tar.gz) = ecf5e9be5a6ec3c73841977dc2e059c69209849f2e500269fa133d4c654f1b47
+SIZE (libsrtp-v1.5.0.tar.gz) = 1687709
diff --git a/net/libsrtp/files/patch-libsrtp.pc.in b/net/libsrtp/files/patch-libsrtp.pc.in
new file mode 100644
index 000000000000..a954489a06b6
--- /dev/null
+++ b/net/libsrtp/files/patch-libsrtp.pc.in
@@ -0,0 +1,10 @@
+--- libsrtp.pc.in.orig 2014-12-30 16:27:06 UTC
++++ libsrtp.pc.in
+@@ -7,5 +7,6 @@ Name: @PACKAGE_NAME@
+ Version: @PACKAGE_VERSION@
+ Description: Library for SRTP (Secure Realtime Transport Protocol)
+
+-Libs: -L${libdir} -lsrtp @LIBS@
++Libs: -L${libdir} -lsrtp
++Requires.private: libcrypto
+ Cflags: -I${includedir}
diff --git a/net/libsrtp/pkg-descr b/net/libsrtp/pkg-descr
index bd8c5f68a330..3edb51cd5bde 100644
--- a/net/libsrtp/pkg-descr
+++ b/net/libsrtp/pkg-descr
@@ -1,4 +1,5 @@
-libsrtp is a library implementing Secure RTP.
-RTP is used for Voice over IP (VoIP) as well as audio and video streaming;
+This package provides an implementation of the Secure Real-time
+Transport Protocol (SRTP), the Universal Security Transform (UST),
+and a supporting cryptographic kernel.
-WWW: http://sourceforge.net/projects/srtp/
+WWW: https://github.com/cisco/libsrtp
diff --git a/net/libsrtp/pkg-plist b/net/libsrtp/pkg-plist
index e4c068b8470e..eea0ce3ca8cd 100644
--- a/net/libsrtp/pkg-plist
+++ b/net/libsrtp/pkg-plist
@@ -1,7 +1,8 @@
-lib/libsrtp.a
include/srtp/aes.h
include/srtp/aes_cbc.h
+include/srtp/aes_gcm_ossl.h
include/srtp/aes_icm.h
+include/srtp/aes_icm_ossl.h
include/srtp/alloc.h
include/srtp/auth.h
include/srtp/cipher.h
@@ -12,6 +13,7 @@ include/srtp/crypto_math.h
include/srtp/crypto_types.h
include/srtp/cryptoalg.h
include/srtp/datatypes.h
+include/srtp/ekt.h
include/srtp/err.h
include/srtp/getopt_s.h
include/srtp/gf2_8.h
@@ -33,3 +35,7 @@ include/srtp/srtp_priv.h
include/srtp/stat.h
include/srtp/ut_sim.h
include/srtp/xfm.h
+lib/libsrtp.a
+lib/libsrtp.so
+lib/libsrtp.so.0
+libdata/pkgconfig/libsrtp.pc