From 67f72647a9fcf71dc8e7a53d4c394934d8b2923a Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Mon, 15 Oct 2018 14:10:55 -0700 Subject: [PATCH] Add latest linphone, remove twinkle --- dev-util/bcunit/Manifest | 2 + dev-util/bcunit/bcunit-3.0.2.ebuild | 28 +++ media-libs/bzrtp/Manifest | 2 + media-libs/bzrtp/bzrtp-1.0.6.ebuild | 20 +++ media-libs/mediastreamer/Manifest | 6 + .../files/mediastreamer-gitversion.patch | 24 +++ .../files/mediastreamer-gitversion2.patch | 13 ++ .../files/mediastreamer-underlinking.patch | 53 ++++++ .../files/mediastreamer-xxd.patch | 16 ++ .../mediastreamer/mediastreamer-2.16.1.ebuild | 165 ++++++++++++++++++ media-plugins/mediastreamer-x264/Manifest | 2 + .../mediastreamer-x264-1.5.3.ebuild | 35 ++++ net-libs/bctoolbox/Manifest | 2 + net-libs/bctoolbox/bctoolbox-0.6.0.ebuild | 19 ++ net-libs/ortp/Manifest | 2 + net-libs/ortp/ortp-1.0.2.ebuild | 48 +++++ net-voip/belle-sip/Manifest | 2 + net-voip/belle-sip/belle-sip-1.6.3.ebuild | 59 +++++++ net-voip/linphone/Manifest | 4 + net-voip/linphone/files/linphone-nls.patch | 19 ++ .../files/linphone-no-cam-crash-fix.patch | 12 ++ net-voip/linphone/linphone-3.12.0.ebuild | 122 +++++++++++++ net-voip/twinkle/Manifest | 2 - net-voip/twinkle/twinkle-1.10.1.ebuild | 48 ----- 24 files changed, 655 insertions(+), 50 deletions(-) create mode 100644 dev-util/bcunit/Manifest create mode 100644 dev-util/bcunit/bcunit-3.0.2.ebuild create mode 100644 media-libs/bzrtp/Manifest create mode 100644 media-libs/bzrtp/bzrtp-1.0.6.ebuild create mode 100644 media-libs/mediastreamer/Manifest create mode 100644 media-libs/mediastreamer/files/mediastreamer-gitversion.patch create mode 100644 media-libs/mediastreamer/files/mediastreamer-gitversion2.patch create mode 100644 media-libs/mediastreamer/files/mediastreamer-underlinking.patch create mode 100644 media-libs/mediastreamer/files/mediastreamer-xxd.patch create mode 100644 media-libs/mediastreamer/mediastreamer-2.16.1.ebuild create mode 100644 media-plugins/mediastreamer-x264/Manifest create mode 100644 media-plugins/mediastreamer-x264/mediastreamer-x264-1.5.3.ebuild create mode 100644 net-libs/bctoolbox/Manifest create mode 100644 net-libs/bctoolbox/bctoolbox-0.6.0.ebuild create mode 100644 net-libs/ortp/Manifest create mode 100644 net-libs/ortp/ortp-1.0.2.ebuild create mode 100644 net-voip/belle-sip/Manifest create mode 100644 net-voip/belle-sip/belle-sip-1.6.3.ebuild create mode 100644 net-voip/linphone/Manifest create mode 100644 net-voip/linphone/files/linphone-nls.patch create mode 100644 net-voip/linphone/files/linphone-no-cam-crash-fix.patch create mode 100644 net-voip/linphone/linphone-3.12.0.ebuild delete mode 100644 net-voip/twinkle/Manifest delete mode 100644 net-voip/twinkle/twinkle-1.10.1.ebuild diff --git a/dev-util/bcunit/Manifest b/dev-util/bcunit/Manifest new file mode 100644 index 0000000..dff565e --- /dev/null +++ b/dev-util/bcunit/Manifest @@ -0,0 +1,2 @@ +DIST bcunit-3.0.2.tar.gz 377172 BLAKE2B a6f78fd87513781fe2ce6d492a9500c34a97004fe010c152ff94c9c96268a9005adbff146e1f0d4042ea2ae2502dd28dc85658247799600bdbd8c1d5fa0ae19f SHA512 dd7ff6f90565451b2f723472907c83154a149354c4689955611444469e33b66ea26152637a075f50f8e97d2c900b28745f8fa0c0d862dbfa005cbee2a68fd61c +EBUILD bcunit-3.0.2.ebuild 792 BLAKE2B 7720741f4802261d90b22f5411a69d9f4732d6a6c606433e0cea2e0548487fa8d8f8f1d3d30a2e456b3795b2f804636ac52004ca534f6d784e3ec9169465a908 SHA512 e553ed24151d37a0b5d6767022dc075d22a9d7e789fee90d02e410939cb43e7b1025fb11dabd59e4236e9363dbc2bc82cb8ddab06f3cb06c7fc56f7bbf4cc290 diff --git a/dev-util/bcunit/bcunit-3.0.2.ebuild b/dev-util/bcunit/bcunit-3.0.2.ebuild new file mode 100644 index 0000000..3658894 --- /dev/null +++ b/dev-util/bcunit/bcunit-3.0.2.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit cmake-utils eutils flag-o-matic multilib-minimal toolchain-funcs + +DESCRIPTION="C Unit Test Framework from Belledonne Comminications" +SRC_URI="https://github.com/BelledonneCommunications/bcunit/archive/${PV}.tar.gz -> ${P}.tar.gz" +HOMEPAGE="https://github.com/BelledonneCommunications/bcunit" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="ncurses static-libs" + +RDEPEND="ncurses? ( >=sys-libs/ncurses-5.9-r3:0=[${MULTILIB_USEDEP}] )" +DEPEND="${RDEPEND}" + +DOCS=( AUTHORS NEWS README ChangeLog ) + +multilib_src_configure() { + local mycmakeargs=( "-DENABLE_CURSES=$(usex ncurses)" ) + cmake-utils_src_configure +} + +multilib_src_install() { + cmake-utils_src_install +} diff --git a/media-libs/bzrtp/Manifest b/media-libs/bzrtp/Manifest new file mode 100644 index 0000000..6b2b359 --- /dev/null +++ b/media-libs/bzrtp/Manifest @@ -0,0 +1,2 @@ +DIST bzrtp-1.0.6.tar.gz 134824 BLAKE2B b6dea2e9a82cd68bc37696a7d86ba4a225b7ff27b075a90113ce6e6aca3a6ed3b787ec9a567bcfa168e05e71d9ad248e3713c3269ce53717c194fcb2f1b7bdb2 SHA512 e1ed1ec43afbc7c5eedfa34d3db926edf16412ad47968d2fab24b6d21dd84353ad0efccd979b99b251e0f98cb4f4b52b5c97b7ca6a577d314da86dcbd6752bb1 +EBUILD bzrtp-1.0.6.ebuild 452 BLAKE2B aa667ae6998f330f0d950a8de3755ec48cda29882f96a3412a8ddfa802e8f4caad41bd72e1542307c344e86ee944e09301058ee5e2ca1eb415395e6ee6d938fa SHA512 77bae3d78da3eb95d003767e96679827fec14a818d9c3acc0e630b71d1953e1948aa1711a2d3bd60cba418bd2e8795e559a673c81b8fc95caa9091bbd08e1ac8 diff --git a/media-libs/bzrtp/bzrtp-1.0.6.ebuild b/media-libs/bzrtp/bzrtp-1.0.6.ebuild new file mode 100644 index 0000000..3a1047e --- /dev/null +++ b/media-libs/bzrtp/bzrtp-1.0.6.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils + +DESCRIPTION="Implementation of ZRTP keys exchange protocol" +HOMEPAGE="http://www.linphone.org" +SRC_URI="http://www.linphone.org/releases/sources/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=net-libs/bctoolbox-0.6.0 + dev-libs/libxml2:2 + dev-db/sqlite:3" +RDEPEND="${DEPEND}" diff --git a/media-libs/mediastreamer/Manifest b/media-libs/mediastreamer/Manifest new file mode 100644 index 0000000..85e0e7a --- /dev/null +++ b/media-libs/mediastreamer/Manifest @@ -0,0 +1,6 @@ +AUX mediastreamer-gitversion.patch 972 BLAKE2B cb96b9f02a1b25131e567d3add8247760da9eb76fe1ef9c7a4714674ac6980f2f84c95ddec0cbe78012f964cea97edb45b0b7f9f73f1606f602b11d1de6bf28e SHA512 8b57e59404ae73dd558508d639f82974fbf5c3905fad7299e77d02aacb58b1e96b107a103ebb09b35197b4c4b117b09fb6b4a583f61592df46ce42ebdeaeb19e +AUX mediastreamer-gitversion2.patch 638 BLAKE2B 27953bd1580a21d433f5116aa561dc52a44d068049698efc188c2a7f3487bbbb3ff9f493450bcb0244dfee90f52bd430dc10aebdedfc22acad6c5900451d74b8 SHA512 fe3d81208dff85c0727a829b6d8895081b2b6ceb506a60ef836a7c6b2b88348e6cab53b5c7f60f230a10a24ab3e534996819a27dd60ec5ce8bc3047e52bcf05f +AUX mediastreamer-underlinking.patch 2073 BLAKE2B 327972b03b20150034da9c4ef8afd811165c3e9fefea48711d87fbb69622b560d3356f1692d2c296c71714fddf7f4bedeaefd8ebabb3cf5328ffc3e4d6400f35 SHA512 8677e1a42680d67bc5624173b406a1c6fc04435917e73a844a79b0ee97648220bf994ed0eaf4762a86ffdc9e489b44774435bd48618f2b0966d39e6d9b40e485 +AUX mediastreamer-xxd.patch 598 BLAKE2B 1c76aafd33204fc8c5f61859e92f67e954ee1a1423a3e04ca22ddc12f355053ed6d9b4742151a7aeae0471985e0d48d08e42341e90bf5c63ab5eceb60d1a49bc SHA512 8fc5c75728833387850bb7d76410d9c65da43f8beae9b683722ddb4291317940a2cb82b29a5eb5db37b26d475c9c5229098baa7e71ea7f7d1cb1650e167f2f17 +DIST mediastreamer-2.16.1.tar.gz 18904458 BLAKE2B 22e721a7fec8ed86e8bb764f338261911b7e91338d87218e42b576b1b604b88fb3df9daaf89e3b998dbc9f4eb59e4095d8050b3a5385d8273cf3bd021d0d8152 SHA512 44b3a5092aedf65b5503c7843c88e4acc2d0e72093a4f057440355c281135a17c898c1c01438e372bf7c8ae2f30a79ad8a59315f3f3d9b914599a185e90fbe81 +EBUILD mediastreamer-2.16.1.ebuild 4396 BLAKE2B f7bf0e584cac334ab58e6b6fa9145940a13039ebc0dbcf404b16d6f6d9f45b57489603bd840d7d84be6c806e53fbffac6f31c481a6819ea35defe6eb7206e257 SHA512 7a2b2817aabb9a0f088ab61c657d64a950794ec0b61dbe1969e814cfffb7a829de1eb20e7d84164fcc88ae1d8d07adb9177f38ab739ac3355db91b1d62c5033e diff --git a/media-libs/mediastreamer/files/mediastreamer-gitversion.patch b/media-libs/mediastreamer/files/mediastreamer-gitversion.patch new file mode 100644 index 0000000..b05f544 --- /dev/null +++ b/media-libs/mediastreamer/files/mediastreamer-gitversion.patch @@ -0,0 +1,24 @@ +diff --git a/src/base/msfactory.c b/src/base/msfactory.c +index 11d5627..94a29e5 100644 +--- a/src/base/msfactory.c ++++ b/src/base/msfactory.c +@@ -24,8 +24,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + # ifndef MEDIASTREAMER_VERSION + # define MEDIASTREAMER_VERSION "unknown" + # endif +-# ifndef MS2_GIT_VERSION +-# define MS2_GIT_VERSION "unknown" ++# ifndef GIT_VERSION ++# define GIT_VERSION "unknown" + # endif + #endif + +@@ -174,7 +174,7 @@ void ms_factory_init(MSFactory *obj){ + ortp_set_log_level_mask(ORTP_LOG_DOMAIN, ORTP_MESSAGE|ORTP_WARNING|ORTP_ERROR|ORTP_FATAL); + } + +- ms_message("Mediastreamer2 factory " MEDIASTREAMER_VERSION " (git: " MS2_GIT_VERSION ") initialized."); ++ ms_message("Mediastreamer2 factory " MEDIASTREAMER_VERSION " (git: " GIT_VERSION ") initialized."); + /* register builtin MSFilter's */ + for (i=0;ms_base_filter_descs[i]!=NULL;i++){ + ms_factory_register_filter(obj,ms_base_filter_descs[i]); diff --git a/media-libs/mediastreamer/files/mediastreamer-gitversion2.patch b/media-libs/mediastreamer/files/mediastreamer-gitversion2.patch new file mode 100644 index 0000000..763021a --- /dev/null +++ b/media-libs/mediastreamer/files/mediastreamer-gitversion2.patch @@ -0,0 +1,13 @@ +diff --git a/src/base/msfactory.c b/src/base/msfactory.c +index 94a29e5..8771281 100644 +--- a/src/base/msfactory.c ++++ b/src/base/msfactory.c +@@ -174,7 +174,7 @@ void ms_factory_init(MSFactory *obj){ + ortp_set_log_level_mask(ORTP_LOG_DOMAIN, ORTP_MESSAGE|ORTP_WARNING|ORTP_ERROR|ORTP_FATAL); + } + +- ms_message("Mediastreamer2 factory " MEDIASTREAMER_VERSION " (git: " GIT_VERSION ") initialized."); ++ ms_message("Mediastreamer2 factory " MEDIASTREAMER_VERSION " (git: unknown) initialized."); + /* register builtin MSFilter's */ + for (i=0;ms_base_filter_descs[i]!=NULL;i++){ + ms_factory_register_filter(obj,ms_base_filter_descs[i]); diff --git a/media-libs/mediastreamer/files/mediastreamer-underlinking.patch b/media-libs/mediastreamer/files/mediastreamer-underlinking.patch new file mode 100644 index 0000000..b6b60a9 --- /dev/null +++ b/media-libs/mediastreamer/files/mediastreamer-underlinking.patch @@ -0,0 +1,53 @@ +From 497ad9c27385c02f4f038b6e787ada9c7b6f8373 Mon Sep 17 00:00:00 2001 +From: hasufell +Date: Wed, 9 Oct 2013 18:24:28 +0200 +Subject: [PATCH] fix underlinking + +--- + configure.ac | 20 ++++++++++++++++++++ + src/Makefile.am | 2 +- + 2 files changed, 21 insertions(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 9f402bd..4b923a9 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -893,6 +893,26 @@ fi + echo "G729 AnnexB in RFC3389 is disabled." + fi + AM_CONDITIONAL(LIBBCG729,test x$g729bCN != xfalse) ++dnl Check for clock_gettime, in libc for FreeBSD, in rt for linux, ++dnl in rt for Solaris 7, in posix4 for Solaris 2.5.1 ++LIB_CLOCK_GETTIME= ++clk_saved_libs=$LIBS ++AC_SEARCH_LIBS([clock_gettime], [rt posix4], ++ [test "$ac_cv_search_clock_gettime" = "none required" || ++ LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime]) ++AC_SUBST([LIB_CLOCK_GETTIME]) ++ ++AC_MSG_CHECKING([for working clock_gettime]) ++AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], ++ [[clock_gettime(CLOCK_REALTIME, 0);]])], [gnupg_cv_clock_gettime=yes], [gnupg_cv_clock_gettime=no]) ++AC_MSG_RESULT($gnupg_cv_clock_gettime) ++ ++if test x"$gnupg_cv_clock_gettime" = xyes; then ++ AC_DEFINE([HAVE_CLOCK_GETTIME], 1, ++ [Define to 1 if you have the `clock_gettime' function.]) ++fi ++LIBS=$clk_saved_libs ++ + + dnl ################################################## + dnl # Check for doxygen +diff --git a/src/Makefile.am b/src/Makefile.am +--- a/src/Makefile.am 2015-03-22 14:54:22.241017401 +0500 ++++ b/src/Makefile.am 2015-03-22 14:53:58.336018407 +0500 +@@ -327,7 +327,7 @@ + awk 'BEGIN { print("MSFilterDesc * ms_voip_filter_descs[]={") } { printf("&%s,\n",$$1) } END{ print("NULL\n};\n") } ' $(abs_builddir)/voipdescs.txt >> $(abs_builddir)/$@ + + +-libmediastreamer_base_la_LIBADD = $(ORTP_LIBS) ++libmediastreamer_base_la_LIBADD = $(ORTP_LIBS) @LIB_CLOCK_GETTIME@ + libmediastreamer_base_la_LDFLAGS = -no-undefined -version-info $(LIBMEDIASTREAMER_SO_VERSION) + libmediastreamer_voip_la_LDFLAGS = -no-undefined -version-info $(LIBMEDIASTREAMER_SO_VERSION) + diff --git a/media-libs/mediastreamer/files/mediastreamer-xxd.patch b/media-libs/mediastreamer/files/mediastreamer-xxd.patch new file mode 100644 index 0000000..d557adb --- /dev/null +++ b/media-libs/mediastreamer/files/mediastreamer-xxd.patch @@ -0,0 +1,16 @@ +--- a/src/Makefile.am 2015-03-22 15:10:30.685976674 +0500 ++++ b/src/Makefile.am 2015-03-22 15:13:33.590968982 +0500 +@@ -471,11 +471,11 @@ + + yuv2rgb.fs.h: yuv2rgb.fs + cd $(abs_srcdir) && \ +- xxd -i yuv2rgb.fs | sed s/}\;/,0x00}\;/ > $(abs_builddir)/yuv2rgb.fs.h ++ xxdi.pl yuv2rgb.fs | sed s/}\;/0x00}\;/ > $(abs_builddir)/yuv2rgb.fs.h + + yuv2rgb.vs.h: yuv2rgb.vs + cd $(abs_srcdir) && \ +- xxd -i yuv2rgb.vs | sed s/}\;/,0x00}\;/ > $(abs_builddir)/yuv2rgb.vs.h ++ xxdi.pl yuv2rgb.vs | sed s/}\;/0x00}\;/ > $(abs_builddir)/yuv2rgb.vs.h + + #because make bundle serahc in this dir + install-data-local: diff --git a/media-libs/mediastreamer/mediastreamer-2.16.1.ebuild b/media-libs/mediastreamer/mediastreamer-2.16.1.ebuild new file mode 100644 index 0000000..b811f38 --- /dev/null +++ b/media-libs/mediastreamer/mediastreamer-2.16.1.ebuild @@ -0,0 +1,165 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils + +DESCRIPTION="Mediastreaming library for telephony application" +HOMEPAGE="http://www.linphone.org/" +SRC_URI="http://www.linphone.org/releases/sources/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0/3" +KEYWORDS="~amd64 ~x86" +# Many cameras will not work or will crash an application if mediastreamer2 is +# not built with v4l2 support (taken from configure.ac) +# TODO: run-time test for ipv6: does it really need ortp[ipv6] ? +IUSE="+alsa amr bindist bv16 coreaudio debug doc examples +filters g726 g729 gsm ilbc + ipv6 jpeg libav matroska ntp-timestamp opengl opus +ortp oss pcap portaudio pulseaudio sdl + silk +speex static-libs test theora tools upnp v4l video vpx x264 X" + +REQUIRED_USE="|| ( oss alsa portaudio coreaudio pulseaudio ) + video? ( || ( opengl sdl X ) ) + theora? ( video ) + X? ( video ) + v4l? ( video ) + opengl? ( video )" + +RDEPEND=">=net-libs/bctoolbox-0.6.0 + media-libs/bzrtp + net-libs/libsrtp:0 + alsa? ( media-libs/alsa-lib ) + g726? ( >=media-libs/spandsp-0.0.6_pre1 ) + gsm? ( media-sound/gsm ) + matroska? ( >=media-libs/bcmatroska2-0.23 ) + opus? ( media-libs/opus ) + ortp? ( >=net-libs/ortp-1.0.2 ) + pcap? ( sys-libs/libcap ) + portaudio? ( media-libs/portaudio ) + pulseaudio? ( media-sound/pulseaudio ) + speex? ( media-libs/speex media-libs/speexdsp ) + upnp? ( net-libs/libupnp:0 ) + video? ( + libav? ( media-video/libav:0/11 ) + + opengl? ( media-libs/glew:0 + virtual/opengl + x11-libs/libX11 ) + v4l? ( media-libs/libv4l + sys-kernel/linux-headers ) + theora? ( media-libs/libtheora ) + sdl? ( media-libs/libsdl[video,X] ) + X? ( x11-libs/libX11 + x11-libs/libXv ) )" + +DEPEND="${RDEPEND} + dev-util/intltool + app-editors/vim-core + virtual/pkgconfig + doc? ( app-doc/doxygen ) + opengl? ( dev-util/xxdi ) + test? ( >=dev-util/cunit-2.1_p3[ncurses] ) + X? ( x11-base/xorg-proto )" + +PDEPEND="amr? ( !bindist? ( media-plugins/mediastreamer-amr ) ) + g729? ( !bindist? ( media-libs/bcg729 ) ) + ilbc? ( media-plugins/mediastreamer-ilbc ) + video? ( x264? ( media-plugins/mediastreamer-x264 ) ) + silk? ( !bindist? ( media-plugins/mediastreamer-silk ) )" + +src_prepare() { + eapply_user + + # variable causes "command not found" warning and is not + # needed anyway + sed -i \ + -e 's/$(ACLOCAL_MACOS_FLAGS)//' \ + Makefile.am || die + + # respect user's CFLAGS + sed -i \ + -e "s:-O2::;s: -g::" \ + configure.ac || die "patching configure.ac failed" + + # change default paths + sed -i \ + -e "s:\(prefix/share\):\1/${PN}:" \ + configure.ac || die "patching configure.ac failed" + + # fix doc installation dir + sed -i \ + -e "s:\$(pkgdocdir):\$(docdir):" \ + help/Makefile.am || die "patching help/Makefile.am failed" + + # fix html installation dir + sed -i \ + -e "s:\(doc_htmldir=\).*:\1\$(htmldir):" \ + help/Makefile.am || die "patching help/Makefile.am failed" + + # linux/videodev.h dropped in 2.6.38 + sed -i \ + -e 's:linux/videodev.h ::' \ + configure.ac || die + + # break check for conflicts with polarssl (emdedtls is used instead anyway) + sed -i \ + -e 's:sha1_update:sha1_update_XXX:' \ + configure.ac || die + + epatch \ + "${FILESDIR}/${PN}-underlinking.patch" \ + "${FILESDIR}/${PN}-xxd.patch" \ + "${FILESDIR}/${PN}-gitversion.patch" \ + "${FILESDIR}/${PN}-gitversion2.patch" # second one because of cmake + + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DENABLE_SHARED=ON + -DENABLE_STATIC=$(usex static-libs) + -DENABLE_DEBUG_LOGS=$(usex debug) + -DENABLE_DOC=$(usex doc) + -DENABLE_NON_FREE_CODECS=ON + -DENABLE_PCAP=$(usex pcap) + -DENABLE_STRICT=OFF + -DENABLE_TOOLS=$(usex tools) + -DENABLE_UNIT_TESTS=$(usex test) + -DENABLE_SRTP=ON + -DENABLE_SOUND=ON + -DENABLE_G726=$(usex g726) + -DENABLE_GSM=$(usex gsm) + -DENABLE_BV16=$(usex bv16) + -DENABLE_OPUS=$(usex opus) + -DENABLE_SPEEX_CODEC=$(usex speex) + -DENABLE_SPEEX_DSP=$(usex speex) + -DENABLE_G729=$(usex g729) + -DENABLE_G729B_CNG=$(usex g729) + -DENABLE_VIDEO=$(usex video) + -DENABLE_MKV=$(usex matroska) + -DENABLE_JPEG=$(usex jpeg) + ) + + # Other options + # -DENABLE_FIXED_POINT=$(usex point) + # -DENABLE_RELATIVE_PREFIX=$(usex prefix) + + cmake-utils_src_configure +} + +src_test() { + default + cd tester || die + ./mediastreamer2_tester || die +} + +src_install() { + cmake-utils_src_install + + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins tester/*.c + fi +} diff --git a/media-plugins/mediastreamer-x264/Manifest b/media-plugins/mediastreamer-x264/Manifest new file mode 100644 index 0000000..283aa00 --- /dev/null +++ b/media-plugins/mediastreamer-x264/Manifest @@ -0,0 +1,2 @@ +DIST msx264-1.5.3.tar.gz 341750 BLAKE2B af9325d900a80b9e6073d6de8ef081bbe1e6e059a7a02311bb75ec368943efed8880a00c45b260cb429ad0bd5826ea3dca4ff0a15b2b0debf7c81f0955214a39 SHA512 fb8e6fd9f82c09386f813a4c502dacd5a959770cf70f49a582a44259626174f38ed0aadc1686fe8f13136fbd1ee7ed92da7ee675d8a0d8c25de640378b55a498 +EBUILD mediastreamer-x264-1.5.3.ebuild 734 BLAKE2B 23ab448847fffd13f2d7d2cf0a92e7a8b4ce69888f1d93c045a246e2051f2f43d5bb4a060c52452ba4a8f2d4487ef2b06903911e6b150b0dbd299fa972d9b34d SHA512 3d1ff24bbb193e432bb009e4def6e486d18636986424fdc553b29589ee66037a1ab41b2561b91cdc8930be5140139f2d44d983b979473cb11a574b203d791f55 diff --git a/media-plugins/mediastreamer-x264/mediastreamer-x264-1.5.3.ebuild b/media-plugins/mediastreamer-x264/mediastreamer-x264-1.5.3.ebuild new file mode 100644 index 0000000..c9c4fad --- /dev/null +++ b/media-plugins/mediastreamer-x264/mediastreamer-x264-1.5.3.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils + +MY_PN="msx264" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="mediastreamer plugin: add H264 support" +HOMEPAGE="http://www.linphone.org/" +SRC_URI="http://www.linphone.org/releases/sources/plugins/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="libav" + +RDEPEND=">=media-libs/mediastreamer-2.7.0:=[video] + >=media-libs/x264-0.0.20100118:= + libav? ( media-video/libav:0= ) + !libav? ( media-video/ffmpeg:0= )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S=${WORKDIR}/${MY_P} + +src_configure() { + mycmakeargs=( + -DENABLE_SHARED=ON + -DENABLE_STATIC=OFF + ) + cmake-utils_src_configure +} diff --git a/net-libs/bctoolbox/Manifest b/net-libs/bctoolbox/Manifest new file mode 100644 index 0000000..1767320 --- /dev/null +++ b/net-libs/bctoolbox/Manifest @@ -0,0 +1,2 @@ +DIST bctoolbox-0.6.0.tar.gz 111344 BLAKE2B 63960c59d3eb6b759d5c8fd32077f94f8da17a9d9d57d524462900cd216ed45c233a4b33cbd72280ad86760024c7bf42539493ca8fc3644df1e2feb797c2ae32 SHA512 83179260632558de5604322e67fb90fb0c1d2c635ce7e9c378442d4fff2bda5ed7e2ba83b8118f04bc450b6de9869685f0a0fb67b020674e9ec484962d202e21 +EBUILD bctoolbox-0.6.0.ebuild 469 BLAKE2B 07b77de0acb0441aa71c87b660dc903765ddc788da1363c1b934b3f96dcc1dc444d4fa597dd837aa99446da002e760e47f15721406750b471fbdc52f7620ecab SHA512 172f2e31046f1cc1cb594798f8d9a3ebe326cc8b36fb457dcb8c84c399eb101ebf0f56ea860ae0bdf6398b368bb21a9017f4a17c9c0e924381c6db7cbddf14a8 diff --git a/net-libs/bctoolbox/bctoolbox-0.6.0.ebuild b/net-libs/bctoolbox/bctoolbox-0.6.0.ebuild new file mode 100644 index 0000000..ac5e3ab --- /dev/null +++ b/net-libs/bctoolbox/bctoolbox-0.6.0.ebuild @@ -0,0 +1,19 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils + +DESCRIPTION="Utilities library used by Belledonne Communications softwares" +HOMEPAGE="https://savannah.nongnu.org/projects/linphone/" +SRC_URI="http://www.linphone.org/releases/sources/${PN}/${P}.tar.gz" + +KEYWORDS="~amd64 ~x86" +SLOT="0" +LICENSE="GPL-2" +IUSE="" + +DEPEND=">=dev-util/bcunit-3.0.2 + net-libs/mbedtls" +RDEPEND="${DEPEND}" diff --git a/net-libs/ortp/Manifest b/net-libs/ortp/Manifest new file mode 100644 index 0000000..16f0c1d --- /dev/null +++ b/net-libs/ortp/Manifest @@ -0,0 +1,2 @@ +DIST ortp-1.0.2.tar.gz 223758 BLAKE2B 04d4d80a11520e1f76326f5df5df1a3fd3d00219ec9358a11d4660ea2f77a9fb67387b9f8cdf6c64719a260dac21504968f96d286fe9b30be8bb13c8ecf4d7e7 SHA512 653f0a607ff8a3d44a81ff73840ffe121140d04288965f18e8e9dc1d09c28eb86cf8efef3b2bbbdff0e76299a2cf87a28d8028a70bf1918616fb10c61d77f95e +EBUILD ortp-1.0.2.ebuild 955 BLAKE2B 9f50001bdce862c866be12204fe411b8e33ec82ba7a96318a9745fef76f54e0415807f02ea30ecebe39ef96e420703f2e5dd9c8850e184d3320f13e2432a0db4 SHA512 34e835490102308264c9ffadf977436134ea6de56327651bab469c6fce6ea145d61d57638af7a04ca390838e5462b26ca6bced81c0a6cc56704a265a40bf517f diff --git a/net-libs/ortp/ortp-1.0.2.ebuild b/net-libs/ortp/ortp-1.0.2.ebuild new file mode 100644 index 0000000..b872b1b --- /dev/null +++ b/net-libs/ortp/ortp-1.0.2.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit cmake-utils + +DESCRIPTION="Open Real-time Transport Protocol (RTP, RFC3550) stack" +HOMEPAGE="http://www.linphone.org/" +SRC_URI="http://www.linphone.org/releases/sources/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0/9" +KEYWORDS="~amd64 ~x86" +IUSE="debug doc examples ntp-timestamp" + +RDEPEND=" + >=net-libs/bctoolbox-0.6 +" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen ) + virtual/pkgconfig +" + +S="${WORKDIR}/${P}-0" + +src_configure() { + local mycmakeargs=( + -DENABLE_SHARED=ON + -DENABLE_STATIC=OFF + -DENABLE_DOC=$(usex doc) + -DENABLE_NTP_TIMESTAMP=$(usex ntp-timestamp) + -DENABLE_PERF=OFF + -DENABLE_STRICT=OFF + -DENABLE_TESTS=OFF + -DENABLE_DEBUG_LOGS=$(usex debug) + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins src/tests/*.c + fi +} diff --git a/net-voip/belle-sip/Manifest b/net-voip/belle-sip/Manifest new file mode 100644 index 0000000..9243813 --- /dev/null +++ b/net-voip/belle-sip/Manifest @@ -0,0 +1,2 @@ +DIST belle-sip-1.6.3.tar.gz 610200 BLAKE2B c5b9d325df32295f935ca76ddda954ef45284621ab5f5037aab026e1db1838b68baa204b0697858f31bd95b458dab8b426f07627e6456c09050161d3e9d4bf77 SHA512 4f7049a06195a702a424fbec1671dc5075c3fbcd3fbb9dd990c15115d291ffcbde2b47440c479ef45d0f3251fa75774729c6a11ff1826adb53359c61e80c5df2 +EBUILD belle-sip-1.6.3.ebuild 1083 BLAKE2B 1920104b16bdc5bc48e5342ff5bc166f70de51c7c81a62625dc7c2320d7fc4d6edb8393145dfba67e224972d6aac8daaea3135ab427fab06a87906e39f953d54 SHA512 e487edf45038a67d848255345f98ed8275cd53609d995bdd34d94d925d03e4b504abb3e905f41d9ae21df4b4fa7b14c3df7e98c9ed0b81822e00ef0e0e02ba1e diff --git a/net-voip/belle-sip/belle-sip-1.6.3.ebuild b/net-voip/belle-sip/belle-sip-1.6.3.ebuild new file mode 100644 index 0000000..72a02f8 --- /dev/null +++ b/net-voip/belle-sip/belle-sip-1.6.3.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils + +DESCRIPTION="C object oriented SIP Stack." +HOMEPAGE="http://www.linphone.org/technical-corner/belle-sip/overview" +SRC_URI="http://www.linphone.org/releases/sources/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" + +SLOT="0" + +IUSE="examples test -tunnel" +REQUIRED_USE="" + +DEPEND="${RDEPEND} + net-libs/bctoolbox + dev-java/antlr:3 + dev-libs/antlr-c + dev-util/intltool + sys-devel/libtool + virtual/pkgconfig + test? ( >=dev-util/cunit-2.1_p3[ncurses] )" + +S="${WORKDIR}/${P}-0" + +src_configure() { + local mycmakeargs=( + -DENABLE_SHARED=ON + -DENABLE_STATIC=OFF + -DENABLE_STRICT=OFF + -DENABLE_TUNNEL=$(usex tunnel) + -DENABLE_TESTS=$(usex test) + ) + + # other options + # -DENABLE_RTP_MAP_ALWAYS_IN_SDP=$(usex sdp) + + cmake-utils_src_configure +} + +src_test() { + default + test -d tester || die + emake -C tester test +} + +src_install() { + cmake-utils_src_install + + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins tester/*.c + fi +} diff --git a/net-voip/linphone/Manifest b/net-voip/linphone/Manifest new file mode 100644 index 0000000..a8a96d6 --- /dev/null +++ b/net-voip/linphone/Manifest @@ -0,0 +1,4 @@ +AUX linphone-nls.patch 401 BLAKE2B 65871bf4882c3e902eea109b2dc923409a95caf1474f2065fe9e2b819a072675aa68e8a18a1987ab69d9969947e765a729e7710c701edc7e9e059f8423f85782 SHA512 cec3043ca002b120907ab64177e5abed50109daae9f6bbcd6d4242667cb180bf33b2cc5a7a4f335c77fc3925736087de3f9e037daa909cc19257ca419f966820 +AUX linphone-no-cam-crash-fix.patch 432 BLAKE2B d23767e45f4fddc345d9df871f84784fcc3a0ac96ae4f0c56e794926acd5e478df880249884f3c05cb991f9b060ef5bd5ec5ec434f4796a011175cc8f737f6c0 SHA512 e9810831b0ab605d77f18b81f2b97f8567ed37cd744ebf944a437b0a38033d2455b120d5e11d0a4ab7d0779c6407a893bf6fc3aebb588ce97a36cffadf1695f2 +DIST linphone-3.12.0.tar.gz 18667484 BLAKE2B 2d0d76e7b10009045627c1ac946a70dd0c0c4d27f3f2f3981a113821d1013e83cef641951b86afe87b203a8ae70b06a7770fff1984b2f1f9e7f82e5f3e6e0d14 SHA512 d4b8c9976c19c468e7c9c9be519840d67861b0d79f8d0d84404ed70cde43434a6be38128f80341862b9f5ec57809bce79060db58550cd8661b31cefe4c6633f0 +EBUILD linphone-3.12.0.ebuild 3254 BLAKE2B f94cef60a1af87c20fa53cedb1e5955d05d156d77b3fdf6b43b8ad5c54d873d02064e851e3734c34fbdfb548e19632cd828b05b864590af6baba1d61b4bff719 SHA512 a25e4e87a5edde26aeaba899dc65ff3592c0939023cafad65d056c47958e2ab80ecaf2347c3f4c64a854ab2481117aa2837129790697bbc9020dadd57960ea63 diff --git a/net-voip/linphone/files/linphone-nls.patch b/net-voip/linphone/files/linphone-nls.patch new file mode 100644 index 0000000..fb53aec --- /dev/null +++ b/net-voip/linphone/files/linphone-nls.patch @@ -0,0 +1,19 @@ +Author: hasufell +Date: Sun Sep 29 20:19:39 2013 +0200 + + fix nls + +--- a/configure.ac ++++ b/configure.ac +@@ -79,7 +79,10 @@ AC_SUBST(CONSOLE_FLAGS) + AC_SUBST(GUI_FLAGS) + + dnl localization tools +-IT_PROG_INTLTOOL([0.40], [no-xml]) ++AM_NLS ++if test "$USE_NLS" != "no"; then ++ IT_PROG_INTLTOOL([0.40], [no-xml]) ++fi + + AM_CONDITIONAL(BUILD_TESTS,test x$build_tests != xno) + diff --git a/net-voip/linphone/files/linphone-no-cam-crash-fix.patch b/net-voip/linphone/files/linphone-no-cam-crash-fix.patch new file mode 100644 index 0000000..a15cc9b --- /dev/null +++ b/net-voip/linphone/files/linphone-no-cam-crash-fix.patch @@ -0,0 +1,12 @@ +diff --git a/gtk/propertybox.c b/gtk/propertybox.c +index 2b1e12c..9e35f3a 100644 +--- a/gtk/propertybox.c ++++ b/gtk/propertybox.c +@@ -42,6 +42,7 @@ void linphone_gtk_fill_combo_box(GtkWidget *combo, const char **devices, const c + This dummy text needs to be removed first*/ + } + ++ if (p) + for(;*p!=NULL;++p){ + if ( cap==CAP_IGNORE + || (cap==CAP_CAPTURE && linphone_core_sound_device_can_capture(linphone_gtk_get_core(),*p)) diff --git a/net-voip/linphone/linphone-3.12.0.ebuild b/net-voip/linphone/linphone-3.12.0.ebuild new file mode 100644 index 0000000..011acad --- /dev/null +++ b/net-voip/linphone/linphone-3.12.0.ebuild @@ -0,0 +1,122 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PLOCALES="ar cs de es fi fr he hu it ja lt nb-NO nl pl pt-BR ru sr sv tr zh-CN zh-TW" + +inherit l10n multilib pax-utils cmake-utils + +DESCRIPTION="Video softphone based on the SIP protocol" +HOMEPAGE="http://www.linphone.org/" +SRC_URI="http://www.linphone.org/releases/sources/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +# TODO: run-time test for ipv6: does it need mediastreamer[ipv6]? +IUSE="assistant -doc gsm-nonstandard gtk ipv6 ldap libnotify -ncurses nls +sqlite tools upnp vcard video zlib" +# w/o sqlite it most likely will crash +REQUIRED_USE="assistant? ( gtk ) + libnotify? ( gtk )" + +RDEPEND=" + >=media-libs/mediastreamer-2.16.0[upnp?,video?] + >=net-libs/ortp-0.24.0 + net-libs/bctoolbox + >=net-voip/belle-sip-1.6.3 + virtual/udev + media-libs/bzrtp + gtk? ( + dev-libs/glib:2 + >=gnome-base/libglade-2.4.0:2.0 + >=x11-libs/gtk+-2.4.0:2 + assistant? ( >=net-libs/libsoup-2.26 ) + libnotify? ( x11-libs/libnotify ) + ) + gsm-nonstandard? ( >=media-libs/mediastreamer-2.15.0[gsm] ) + ldap? ( + dev-libs/cyrus-sasl + net-nds/openldap + ) + ncurses? ( + sys-libs/readline:0 + sys-libs/ncurses:0 + ) + sqlite? ( dev-db/sqlite:3 ) + tools? ( dev-libs/libxml2 ) + upnp? ( net-libs/libupnp:0 ) + vcard? ( >=net-voip/belcard-1.0.2 ) + video? ( >=media-libs/mediastreamer-2.15.0[v4l] ) + zlib? ( sys-libs/zlib ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( app-text/sgmltools-lite ) + nls? ( dev-util/intltool ) +" + +pkg_setup() { + if ! use gtk && ! use ncurses ; then + ewarn "gtk and ncurses are disabled." + ewarn "At least one of these use flags are needed to get a front-end." + ewarn "Only liblinphone is going to be installed." + fi +} + +src_prepare() { + default + eapply "${FILESDIR}"/${PN}-nls.patch \ + "${FILESDIR}"/${PN}-no-cam-crash-fix.patch + + # another workaround for upstream bug + printf "#define LIBLINPHONE_GIT_VERSION \"${PV}\"\n" > "${S}"/coreapi/gitversion.h + printf "#define LIBLINPHONE_GIT_VERSION \"${PV}\"\n" > "${S}"/coreapi/liblinphone_gitversion.h + + l10n_find_plocales_changes po "" .po + rm_locale() { rm -f ${1/-/_}; } + l10n_for_each_disabled_locale_do rm_locale + + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DENABLE_SHARED=ON + -DENABLE_STATIC=OFF + -DENABLE_CONSOLE_UI=$(usex ncurses) + -DENABLE_DOC=$(usex doc) + -DENABLE_JAVADOC=$(usex doc) + -DENABLE_GTK_UI=$(usex gtk) + -DENABLE_LDAP=$(usex ldap) + -DENABLE_SQLITE_STORAGE=$(usex sqlite) + -DENABLE_STRICT=OFF + -DENABLE_TOOLS=$(usex tools) + -DENABLE_TUTORIALS=$(usex doc) + -DENABLE_UNIT_TESTS=OFF + -DENABLE_UPDATE_CHECK=OFF + -DENABLE_VIDEO=$(usex video) + -DENABLE_DEBUG_LOGS=ON + -DENABLE_NLS=$(usex nls) + -DENABLE_VCARD=$(usex vcard) + -DENABLE_ROOTCA_DOWNLOAD=ON + -DENABLE_CXX_WRAPPER=OFF + -DENABLE_CSHARP_WRAPPER=OFF + ) + + # cxx wrapper is broken in 3.12.0 + # who needs csharp wrapper? + + # more options + # -DENABLE_DATE=$(usex date) + # -DENABLE_DAEMON=$(usex daemon) + # -DENABLE_RELATIVE_PREFIX=$(usex prefix) + # -DENABLE_TUNNEL=$(usex tunnel) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + dodoc AUTHORS BUGS ChangeLog NEWS README.md README.arm TODO + pax-mark m "${ED%/}/usr/bin/linphone" +} diff --git a/net-voip/twinkle/Manifest b/net-voip/twinkle/Manifest deleted file mode 100644 index 0c882d8..0000000 --- a/net-voip/twinkle/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST twinkle-1.10.1.tar.gz 1186647 SHA256 450b5440ce7a76e9555d4535152091ec145987efae9d32bf05371b18735350cb SHA512 f2e5504309abf884535fb28bfb9eaf9de749cb693e2a07392013559b0d5d0bb1b97837bc7fcd125b8222de1acf1b289ef34d2ed877c19476981045e3d134a3be WHIRLPOOL 890cf20384e29fec2f6c189107d99af51939175aa87a0fee54f46772a7ea8913e1b35df58f9b3445cb09c3e9321ed5ea011d58c880d830ed7582c9cfe75b1cc4 -EBUILD twinkle-1.10.1.ebuild 1254 SHA256 3c7a60af6d9e4cc39181f76cca1cae1f886a0b05556007efacd0d42df6848468 SHA512 0b74deba58fe6e1f93d0d506310c102f8f80af12064b0ae034f617dda0b553bba91e17319b3d909b16b5b2126dffb67f9de7df80bbecbe29196b9681031280bf WHIRLPOOL 511c338a428ae7ae101baf3d4d856d380899bc5ec0567ef7dc1d607fa60ff4fc2ce568e9fd7da8acc1bb0e8a16aefd3744f4c10a86a3944e33e616302521f68a diff --git a/net-voip/twinkle/twinkle-1.10.1.ebuild b/net-voip/twinkle/twinkle-1.10.1.ebuild deleted file mode 100644 index d7f3fce..0000000 --- a/net-voip/twinkle/twinkle-1.10.1.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="5" -inherit eutils cmake-utils - -DESCRIPTION="Softphone for VoIP communcations using SIP protocol" -HOMEPAGE="http://twinkle.dolezel.info/" - -LICENSE="GPL-2" -SLOT="0" -IUSE="alsa speex ilbc zrtp +qt4 qt5 g729 diamondcard " - -SRC_URI="https://github.com/LubosD/twinkle/archive/v${PV}.tar.gz -> twinkle-${PV}.tar.gz" -KEYWORDS="~amd64 ~x86" - -RDEPEND="media-libs/fontconfig - g729? ( media-plugins/mediastreamer-bcg729 ) - dev-libs/boost - net-libs/ccrtp - speex? ( media-libs/speex ) - ilbc? ( dev-libs/ilbc-rfc3951 ) - zrtp? ( net-libs/libzrtpcpp ) - media-libs/alsa-lib - dev-cpp/commoncpp2 - dev-libs/ucommon - media-libs/libsndfile - " -REQUIRED_USE=" - ?? ( qt4 qt5 ) -" - -src_configure() { - local mycmakeargs=( - -DCMAKE_INSTALL_PREFIX=/usr/local - $(cmake-utils_use_with alsa ALSA) - $(cmake-utils_use_with speex SPEEX) - $(cmake-utils_use_with ilbc ILBC) - $(cmake-utils_use_with zrtp ZRTP) - $(cmake-utils_use_with qt4 QT4) - $(cmake-utils_use_with qt5 QT5) - $(cmake-utils_use_with diamondcard DIAMONDCARD) - $(cmake-utils_use_with g729 G729) - ) - cmake-utils_src_configure -} - -S="${WORKDIR}"/${P}