Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Apr 2020 01:29:13 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r531279 - in head/www: . librtcdcpp librtcdcpp/files
Message-ID:  <202004100129.03A1TDbV050333@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Fri Apr 10 01:29:13 2020
New Revision: 531279
URL: https://svnweb.freebsd.org/changeset/ports/531279

Log:
  New port: www/librtcdcpp: Simple WebRTC DataChannels library

Added:
  head/www/librtcdcpp/
  head/www/librtcdcpp/Makefile   (contents, props changed)
  head/www/librtcdcpp/distinfo   (contents, props changed)
  head/www/librtcdcpp/files/
  head/www/librtcdcpp/files/patch-CMakeLists.txt   (contents, props changed)
  head/www/librtcdcpp/files/patch-src_Logging.cpp   (contents, props changed)
  head/www/librtcdcpp/pkg-descr   (contents, props changed)
  head/www/librtcdcpp/pkg-plist   (contents, props changed)
Modified:
  head/www/Makefile

Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile	Fri Apr 10 00:57:56 2020	(r531278)
+++ head/www/Makefile	Fri Apr 10 01:29:13 2020	(r531279)
@@ -298,6 +298,7 @@
     SUBDIR += libnghttp2
     SUBDIR += libnghttp3
     SUBDIR += libresonic-standalone
+    SUBDIR += librtcdcpp
     SUBDIR += libwpe
     SUBDIR += libwww
     SUBDIR += lightsquid

Added: head/www/librtcdcpp/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/librtcdcpp/Makefile	Fri Apr 10 01:29:13 2020	(r531279)
@@ -0,0 +1,30 @@
+# $FreeBSD$
+
+PORTNAME=	librtcdcpp
+DISTVERSION=	g20180627
+CATEGORIES=	www devel
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Simple WebRTC DataChannels library
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE.md
+
+BUILD_DEPENDS=	spdlog>0:devel/spdlog
+LIB_DEPENDS=	libnice.so:net-im/libnice \
+		libusrsctp.so:net/libusrsctp
+
+USES=		cmake compiler:c++14-lang gnome ssl
+USE_GITHUB=	yes
+GH_ACCOUNT=	chadnickbok
+GH_TAGNAME=	49ddb949ed5dd2c8e859097b6723347f52e01645
+USE_GNOME=	glib20
+USE_LDCONFIG=	yes
+
+CFLAGS+=	-DSPDLOG_FMT_EXTERNAL
+
+do-install:
+	cd ${WRKSRC}/include && ${COPYTREE_SHARE} rtcdcpp ${STAGEDIR}${PREFIX}/include
+	${INSTALL_LIB} ${BUILD_WRKSRC}/librtcdcpp.so ${STAGEDIR}${PREFIX}/lib
+
+.include <bsd.port.mk>

Added: head/www/librtcdcpp/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/librtcdcpp/distinfo	Fri Apr 10 01:29:13 2020	(r531279)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1586481933
+SHA256 (chadnickbok-librtcdcpp-g20180627-49ddb949ed5dd2c8e859097b6723347f52e01645_GH0.tar.gz) = 032446b7e12b72b86c9bc42dc7b23fb73d553aaae4de6e27eb33a851b70695b0
+SIZE (chadnickbok-librtcdcpp-g20180627-49ddb949ed5dd2c8e859097b6723347f52e01645_GH0.tar.gz) = 5152018

Added: head/www/librtcdcpp/files/patch-CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/librtcdcpp/files/patch-CMakeLists.txt	Fri Apr 10 01:29:13 2020	(r531279)
@@ -0,0 +1,8 @@
+--- CMakeLists.txt.orig	2020-04-09 23:40:12 UTC
++++ CMakeLists.txt
+@@ -66,4 +66,4 @@ target_link_libraries(rtcdcpp
+ add_library(LibRtcdcpp::LibRtcdcpp ALIAS rtcdcpp)
+ 
+ # Build examples
+-add_subdirectory(examples/websocket_client)
++#add_subdirectory(examples/websocket_client)

Added: head/www/librtcdcpp/files/patch-src_Logging.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/librtcdcpp/files/patch-src_Logging.cpp	Fri Apr 10 01:29:13 2020	(r531279)
@@ -0,0 +1,13 @@
+--- src/Logging.cpp.orig	2020-04-10 01:02:36 UTC
++++ src/Logging.cpp
+@@ -27,6 +27,10 @@
+ 
+ #include "rtcdcpp/Logging.hpp"
+ 
++#ifndef SPDLOG_DISABLED
++#include <spdlog/sinks/stdout_color_sinks.h>
++#endif
++
+ namespace rtcdcpp {
+ 
+ #ifndef SPDLOG_DISABLED

Added: head/www/librtcdcpp/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/librtcdcpp/pkg-descr	Fri Apr 10 01:29:13 2020	(r531279)
@@ -0,0 +1,7 @@
+librtcdcpp is a simple C++ implementation of the WebRTC DataChannels API.
+It was originally written by Andrew Gault and Nick Chadwick, and was inspired in
+by librtcdc.
+Its goal is to be the easiest way to build native WebRTC DataChannels apps
+across PC/Mac/Linux/iOS/Android.
+
+WWW: https://github.com/chadnickbok/librtcdcpp

Added: head/www/librtcdcpp/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/librtcdcpp/pkg-plist	Fri Apr 10 01:29:13 2020	(r531279)
@@ -0,0 +1,11 @@
+include/rtcdcpp/Chunk.hpp
+include/rtcdcpp/ChunkQueue.hpp
+include/rtcdcpp/DTLSWrapper.hpp
+include/rtcdcpp/DataChannel.hpp
+include/rtcdcpp/Logging.hpp
+include/rtcdcpp/NiceWrapper.hpp
+include/rtcdcpp/PeerConnection.hpp
+include/rtcdcpp/RTCCertificate.hpp
+include/rtcdcpp/SCTPWrapper.hpp
+include/rtcdcpp/librtcdcpp.h
+lib/librtcdcpp.so



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004100129.03A1TDbV050333>