summaryrefslogtreecommitdiff
path: root/net-libs/h323plus
diff options
context:
space:
mode:
Diffstat (limited to 'net-libs/h323plus')
-rw-r--r--net-libs/h323plus/Manifest9
-rw-r--r--net-libs/h323plus/files/h323plus-1.25.0-ptlib-2.10.10.patch15
-rw-r--r--net-libs/h323plus/files/h323plus-1.25.0-ptrace-debugoptionlist.patch13
-rw-r--r--net-libs/h323plus/files/h323plus-1.25.0-ptrace-param.patch18
-rw-r--r--net-libs/h323plus/h323plus-1.25.0-r1.ebuild67
-rw-r--r--net-libs/h323plus/h323plus-1.25.0-r2.ebuild69
-rw-r--r--net-libs/h323plus/metadata.xml13
7 files changed, 204 insertions, 0 deletions
diff --git a/net-libs/h323plus/Manifest b/net-libs/h323plus/Manifest
new file mode 100644
index 000000000000..bb7886c979d1
--- /dev/null
+++ b/net-libs/h323plus/Manifest
@@ -0,0 +1,9 @@
+AUX h323plus-1.25.0-ptlib-2.10.10.patch 668 SHA256 cc590730e3218c6a6a9b80613bd258b047bb75556d2493988109d248aaa7f5f6 SHA512 8c1c1777663a77fbe38d3c033ca388c3dbfaeeef2665a5564d8f482bbe26146d6f79be71100fb395dc35c33fcccda9c6eb0a4cfe9746aa968933e287343b1c93 WHIRLPOOL f87e5cb5a42e6009c422eca99f7a84bfb5b992a379face7c611188cf4c8f7ed92488b4509b9047243cf892b6061eed6514a335a2f6e7a240ff95e50dd84d9e81
+AUX h323plus-1.25.0-ptrace-debugoptionlist.patch 470 SHA256 72df4e0a97be69605ed980a7c857ede3fde42c13c8ea330d6d39181690f6d7ee SHA512 a12809c96ad236a1c3d9aed07976ea64653227f612676f0bac34fde6638e1719ade9fbd31e54f601c6dcefb52170788cead570b6dfdd2e1763b7b55d85e3d9ba WHIRLPOOL 8fb55c14c98647ac70c5d76f05fa4a9995b6f84618fb4385dc8fd1f6d06ac22339923f21efcda8e22147ca62307c241f8632a990c7a15fac6c2a912db7b0ef5b
+AUX h323plus-1.25.0-ptrace-param.patch 598 SHA256 c3035c2a869d391084efb6a0b2b048ad04c0799796e076e06f7211271934c642 SHA512 b51686ec30930cbf4749f233625a9f26651f7a93570468e70ff7e423fc74508f0495b74e565ff7f907a2e775572a54dc7253ebe8434e1d4f5a2b1b990638c09d WHIRLPOOL babe144faaf833ab7f1f29f21af9000be3123736dd8bf030eea339adf8b48d9618266c13e82b4810f836ddc42d8233cfb37a7a0c46ff03c9590d2958cc6cbea4
+DIST h323plus-v1_25_0.tar.gz 4193136 SHA256 1f4c10f4a087493fdc62e1b27041966f2fa2163941db99b1afe1551968fef190 SHA512 f0b8b26a0062eadc183af60d25302f95d06720dffe23f0bc0c9568ce34d7aae10acef434da9e09839fe19fcdc9f7f5d47396eb7c684ef55e457556abb66a682d WHIRLPOOL d3267238a8eea5537bff1e5b55c84adb3b011ed51f21da1c451f8f28e8bdc537b94a8f294e85cf07ed2d54e53ac6cdc279c365714e556261c8fb799d5ba9a154
+EBUILD h323plus-1.25.0-r1.ebuild 1836 SHA256 ef36c6522d381c00dc88e16c159e06b9ac63fb8667931f06af98e3fc0028d87d SHA512 a0cdc1e6f52db1fe609c4e673a2e18d5c463cfdc8f48409454a8ce9c9eca80586311ff2026e445d47a97d71c8ab0a6a0e621ff45b45cb8c9a6a2051747de5f36 WHIRLPOOL 36bcfc03e7e8300d2762889de9172894d3d07187ffc1bde104624e1454aaf8ce9cfebd4bc83f52bc4a3aa28913a8dd5e9470a490b33ea47b31ca6ed2d2a6aa06
+EBUILD h323plus-1.25.0-r2.ebuild 1882 SHA256 ec47651b7a0ba540015bae2de869047d190807e36fd7181a9be6a86aa791afc2 SHA512 404ea34aa939aeb2316342afde62286f6da1790aa2b5270cfa1bf4b6334611b6814fbb2300fb4790d2db2d72e5538c3ed4b9048d8e5f54a9854f57f8757f1512 WHIRLPOOL 811ca62ffd85397aaa9b5e5fe3a3b1fe37270f24508bd948bc3661954ef1f9e694c33123193f16e7ce90ee9fb689fe37fb745c2af716d940f0b352ab54bd365f
+MISC ChangeLog 3173 SHA256 6117fb0ab26c0ed3013e403bf79a4bde868d7ec7cdb53cef349fb58151b2c7db SHA512 742c47a8ef3d7b134746b85c3297706d62b46824ed8c8060ab4943c3f360484e36416ea31e81e0d5575946b42418c09cab7e27fdca527e614856de5fe6d69f67 WHIRLPOOL c7579ac9eb5c45c9f169367128b5a97dd3b42f7d2bc70e66e5628c46238977d01cb06356c59547292fa868844c97305dfe56b5ddf5696b5698c5e0c3068caa10
+MISC ChangeLog-2015 1405 SHA256 822ef7523fbb8fb0dbb430029f684b670c097de83adfb8d474f9a2362ec72ab7 SHA512 d9508a4f673cbb59188db8cc72afc701b68cd25927bc5171ebeb5d11f8ef3c276eb12faa73b0a495a70f4771bc20355ba142c0e125ed33a4094b52534079e971 WHIRLPOOL fb2c0521563714130233162653fb1e975d99e22f6fb8f3f68284373ccd30413c7d0275c91d48db00d3826d0d84f17d58dff36e1cb59329120eaf54d605458666
+MISC metadata.xml 429 SHA256 09a450a0a1b75e49f89718b7a84735f1e21d67a9d0be78c9d067761c475bd205 SHA512 6f4be02d7183a2a7376ee3d003b91f6996f2b7d4793ee9c91bd038f584efd7f892c8e4065979f50616a9119109f62831904109e834055de2386e176f97cbdb4b WHIRLPOOL 5a3bee270569f4513f9efd30bd7065314127d86a42c0a6aa3e97229b8bcf0b9877ae30f655c0746ba7276e609f1f3a44f6e6f18440074b6e4ff5ec629172b9b8
diff --git a/net-libs/h323plus/files/h323plus-1.25.0-ptlib-2.10.10.patch b/net-libs/h323plus/files/h323plus-1.25.0-ptlib-2.10.10.patch
new file mode 100644
index 000000000000..74856a099c0f
--- /dev/null
+++ b/net-libs/h323plus/files/h323plus-1.25.0-ptlib-2.10.10.patch
@@ -0,0 +1,15 @@
+Fix macro definition for ptlib-2.10.10 compatibility
+http://lists.packetizer.com/pipermail/h323plus/2012-December/002543.html
+
+diff -ur a/include/openh323buildopts.h.in b/include/openh323buildopts.h.in
+--- a/include/openh323buildopts.h.in 2012-09-21 05:53:21.000000000 +0200
++++ b/include/openh323buildopts.h.in 2013-03-05 19:26:25.251373540 +0100
+@@ -35,7 +35,7 @@
+ #include <ptbuildopts.h>
+ #include <ptlib/../../revision.h>
+
+-#if PTLIB_MAJOR == 2 && PTLIB_MINOR < 10
++#if PTLIB_MAJOR == 2 && PTLIB_MINOR <= 10
+ #define PTLIB_VER ( PTLIB_MAJOR*100 + PTLIB_MINOR*10 + PTLIB_BUILD )
+ #else
+ #define PTLIB_VER ( PTLIB_MAJOR*1000 + PTLIB_MINOR*10 + PTLIB_BUILD )
diff --git a/net-libs/h323plus/files/h323plus-1.25.0-ptrace-debugoptionlist.patch b/net-libs/h323plus/files/h323plus-1.25.0-ptrace-debugoptionlist.patch
new file mode 100644
index 000000000000..7e800f490f19
--- /dev/null
+++ b/net-libs/h323plus/files/h323plus-1.25.0-ptrace-debugoptionlist.patch
@@ -0,0 +1,13 @@
+diff -ur a/src/h323pluginmgr.cxx b/src/h323pluginmgr.cxx
+--- a/src/h323pluginmgr.cxx 2012-11-29 17:23:26.000000000 +0100
++++ b/src/h323pluginmgr.cxx 2013-02-22 18:56:33.100356993 +0100
+@@ -1543,7 +1543,9 @@
+ PopulateMediaFormatOptions(codecDefn, fmt);
+ PopulateMediaFormatFromGenericData(fmt,
+ (PluginCodec_H323GenericCodecData *)codecDefn->h323CapabilityData);
++#if PTRACING
+ OpalMediaFormat::DebugOptionList(fmt);
++#endif
+ return true;
+ }
+
diff --git a/net-libs/h323plus/files/h323plus-1.25.0-ptrace-param.patch b/net-libs/h323plus/files/h323plus-1.25.0-ptrace-param.patch
new file mode 100644
index 000000000000..c69e703f42c0
--- /dev/null
+++ b/net-libs/h323plus/files/h323plus-1.25.0-ptrace-param.patch
@@ -0,0 +1,18 @@
+diff -ur a/src/rtp.cxx b/src/rtp.cxx
+--- a/src/rtp.cxx 2012-12-10 18:56:08.000000000 +0100
++++ b/src/rtp.cxx 2013-02-22 18:54:35.360358638 +0100
+@@ -1164,9 +1164,13 @@
+ return e_ProcessPacket;
+ }
+
+-
++#if PTRACING
+ void RTP_Session::OnRxSenderReport(const SenderReport & PTRACE_PARAM(sender),
+ const ReceiverReportArray & PTRACE_PARAM(reports))
++#else
++void RTP_Session::OnRxSenderReport(const SenderReport & sender,
++ const ReceiverReportArray & reports)
++#endif
+ {
+ userData->OnRxSenderReport(sessionID,sender,reports);
+
diff --git a/net-libs/h323plus/h323plus-1.25.0-r1.ebuild b/net-libs/h323plus/h323plus-1.25.0-r1.ebuild
new file mode 100644
index 000000000000..cd5e799e4520
--- /dev/null
+++ b/net-libs/h323plus/h323plus-1.25.0-r1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils flag-o-matic multilib toolchain-funcs
+
+MY_P="${PN}-v${PV//./_}"
+
+DESCRIPTION="Open Source implementation of the ITU H.323 protocol, successor of OpenH323"
+HOMEPAGE="http://www.h323plus.org/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}-v${PV//./_}.tar.gz"
+
+IUSE="aec debug +sound +video"
+SLOT="0/${PV}"
+LICENSE="MPL-1.1"
+KEYWORDS="~alpha ~amd64 ~arm ~ppc ~sparc ~x86"
+
+DEPEND=">=net-libs/ptlib-2.6.4:=[wav]
+ aec? ( >=media-libs/speex-1.2_rc1 )
+ sound? (
+ media-sound/gsm
+ dev-libs/ilbc-rfc3951
+ )
+ video? (
+ media-libs/libtheora
+ virtual/ffmpeg
+ )"
+RDEPEND="${DEPEND}
+ !net-libs/openh323"
+
+S="${WORKDIR}/${PN}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.25.0-ptrace-param.patch
+ epatch "${FILESDIR}"/${PN}-1.25.0-ptrace-debugoptionlist.patch
+ epatch "${FILESDIR}"/${PN}-1.25.0-ptlib-2.10.10.patch
+}
+
+src_configure() {
+ # TODO: support for h.263/h.264/sbc(bluetooth)/celt/spandsp
+ #export OPENH323DIR=${S}
+ econf \
+ PTLIB_CONFIG="${EPREFIX}/usr/bin/ptlib-config" \
+ $(use_enable video) \
+ $(use_enable sound audio) \
+ $(use_enable aec) \
+ $(use_enable debug asntracing)
+ # revision.h does not exist in ptlib(?)
+ sed -i "/revision.h/d" include/openh323buildopts.h || die
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ CXX="$(tc-getCXX)" \
+ AR="$(tc-getAR)"
+ # these should point to the right directories,
+ # openh323.org apps and others need this
+ sed -i -e "s:^OH323_LIBDIR = \$(OPENH323DIR).*:OH323_LIBDIR = /usr/$(get_libdir):" \
+ openh323u.mak || die
+ sed -i -e "s:^OH323_INCDIR = \$(OPENH323DIR).*:OH323_INCDIR = /usr/include/openh323:" \
+ openh323u.mak || die
+ # this is hardcoded now?
+ sed -i -e "s:^\(OPENH323DIR[ \t]\+=\) "${S}":\1 /usr/share/openh323:" \
+ openh323u.mak || die
+}
diff --git a/net-libs/h323plus/h323plus-1.25.0-r2.ebuild b/net-libs/h323plus/h323plus-1.25.0-r2.ebuild
new file mode 100644
index 000000000000..6abbd14d31f1
--- /dev/null
+++ b/net-libs/h323plus/h323plus-1.25.0-r2.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils flag-o-matic multilib toolchain-funcs
+
+MY_P="${PN}-v${PV//./_}"
+
+DESCRIPTION="Open Source implementation of the ITU H.323 protocol, successor of OpenH323"
+HOMEPAGE="http://www.h323plus.org/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}-v${PV//./_}.tar.gz"
+
+IUSE="aec debug +sound +video"
+SLOT="0/${PV}"
+LICENSE="MPL-1.1"
+KEYWORDS="~alpha ~amd64 ~arm ~ppc ~sparc ~x86"
+
+DEPEND=">=net-libs/ptlib-2.6.4:=[-debug,wav]
+ aec? ( >=media-libs/speex-1.2_rc1 )
+ sound? (
+ media-sound/gsm
+ dev-libs/ilbc-rfc3951
+ )
+ video? (
+ media-libs/libtheora
+ virtual/ffmpeg
+ )
+ net-nds/openldap
+ dev-libs/openssl:0="
+RDEPEND="${DEPEND}
+ !net-libs/openh323"
+
+S="${WORKDIR}/${PN}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.25.0-ptrace-param.patch
+ epatch "${FILESDIR}"/${PN}-1.25.0-ptrace-debugoptionlist.patch
+ epatch "${FILESDIR}"/${PN}-1.25.0-ptlib-2.10.10.patch
+}
+
+src_configure() {
+ # TODO: support for h.263/h.264/sbc(bluetooth)/celt/spandsp
+ #export OPENH323DIR=${S}
+ econf \
+ PTLIB_CONFIG="${EPREFIX}/usr/bin/ptlib-config" \
+ $(use_enable video) \
+ $(use_enable sound audio) \
+ $(use_enable aec) \
+ $(use_enable debug asntracing)
+ # revision.h does not exist in ptlib(?)
+ sed -i "/revision.h/d" include/openh323buildopts.h || die
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ CXX="$(tc-getCXX)" \
+ AR="$(tc-getAR)"
+ # these should point to the right directories,
+ # openh323.org apps and others need this
+ sed -i -e "s:^OH323_LIBDIR = \$(OPENH323DIR).*:OH323_LIBDIR = /usr/$(get_libdir):" \
+ openh323u.mak || die
+ sed -i -e "s:^OH323_INCDIR = \$(OPENH323DIR).*:OH323_INCDIR = /usr/include/openh323:" \
+ openh323u.mak || die
+ # this is hardcoded now?
+ sed -i -e "s:^\(OPENH323DIR[ \t]\+=\) "${S}":\1 /usr/share/openh323:" \
+ openh323u.mak || die
+}
diff --git a/net-libs/h323plus/metadata.xml b/net-libs/h323plus/metadata.xml
new file mode 100644
index 000000000000..304a5e0c2a93
--- /dev/null
+++ b/net-libs/h323plus/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <use>
+ <flag name="aec">Enable acoustic echo cancellation</flag>
+ <flag name="sound">Enable audio codecs</flag>
+ <flag name="video">Enable video codecs</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">h323plus</remote-id>
+ </upstream>
+</pkgmetadata>