aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaurerpe <junk4me46806@yahoo.com>2017-11-04 00:07:48 -0400
committerAric Belsito <lluixhi@gmail.com>2018-01-08 10:32:19 -0800
commitdc8f54e8e96a5b0d532bc7d4f1f374f709447472 (patch)
treef8eda64027a76cc3540ad6f9e9000f35e86a14a2 /net-voip
parentnet-libs/libeXosip: new package (diff)
downloadlibressl-dc8f54e8e96a5b0d532bc7d4f1f374f709447472.tar.gz
libressl-dc8f54e8e96a5b0d532bc7d4f1f374f709447472.tar.bz2
libressl-dc8f54e8e96a5b0d532bc7d4f1f374f709447472.zip
net-voip/linphone: new package
Tested by Marek Behun and @maurerpe Gentoo-Bug: https://bugs.gentoo.org/565272
Diffstat (limited to 'net-voip')
-rw-r--r--net-voip/linphone/Manifest2
-rw-r--r--net-voip/linphone/files/linphone-3.6.1-nls.patch19
-rw-r--r--net-voip/linphone/linphone-3.6.1.ebuild119
-rw-r--r--net-voip/linphone/metadata.xml17
4 files changed, 157 insertions, 0 deletions
diff --git a/net-voip/linphone/Manifest b/net-voip/linphone/Manifest
new file mode 100644
index 0000000..5aa0bd8
--- /dev/null
+++ b/net-voip/linphone/Manifest
@@ -0,0 +1,2 @@
+DIST linphone-3.6.1-exosip-4.patch 89376 SHA256 36e72e03bfc215b923b11f360b0435b1ba5df2b2ead4abce12a7b80a7a0fc367 SHA512 bdab74336cb8235b3396230278fd8eb465defac1175b00ff9cf273ef2dbc4e05f63d2574de599618e4d963b42ad17ac4f0c8c9013e40a497c99211041317313d WHIRLPOOL 8f74746447210a284677e6b203c14542bc9e4c9507d37f5adc860ffd4bf825112c9aba6a4dd9d34ca6152a9e0021ea815d14edd33774d6b75124f549d1d0dbc4
+DIST linphone-3.6.1.tar.gz 11458586 SHA256 05ba81223e9378c3bce8d33080213b9925af49bd9623cd9004eb3dd22ca9d2a0 SHA512 688ccfb333b2302ca20c2c77e38b20deee8b1c5f3c31f7a4b666d81114ea3e5cbe38bac6d88116d635ac3fcb7f38d013e35c7c076549cc3d7ae900456d51b5e4 WHIRLPOOL 3b76b6d3bbf1a9e2b06beae41e276abcd5223c5cf6f600c140ab27a60aae7b9c47c1c9da1f26587fac0d77f8a6114115b18d346d33f05b1e2a0a3a83fbf986b0
diff --git a/net-voip/linphone/files/linphone-3.6.1-nls.patch b/net-voip/linphone/files/linphone-3.6.1-nls.patch
new file mode 100644
index 0000000..fb53aec
--- /dev/null
+++ b/net-voip/linphone/files/linphone-3.6.1-nls.patch
@@ -0,0 +1,19 @@
+Author: hasufell <hasufell@gentoo.org>
+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/linphone-3.6.1.ebuild b/net-voip/linphone/linphone-3.6.1.ebuild
new file mode 100644
index 0000000..e4677f6
--- /dev/null
+++ b/net-voip/linphone/linphone-3.6.1.ebuild
@@ -0,0 +1,119 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools eutils multilib pax-utils versionator
+
+DESCRIPTION="Video softphone based on the SIP protocol"
+HOMEPAGE="http://www.linphone.org/"
+SRC_URI="mirror://nongnu/${PN}/$(get_version_component_range 1-2).x/sources/${P}.tar.gz
+ https://dev.gentoo.org/~hasufell/distfiles/${P}-exosip-4.patch"
+
+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 libnotify libressl ncurses nls sqlite ssl tools upnp video"
+
+RDEPEND="
+ >=media-libs/mediastreamer-2.9.0[ipv6?,upnp?,video?]
+ >=net-libs/libeXosip-4.0.0
+ >=net-libs/libosip-4.0.0
+ >=net-libs/ortp-0.22.0
+ virtual/udev
+ 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.9.0[gsm] )
+ ncurses? (
+ sys-libs/readline:0
+ sys-libs/ncurses
+ )
+ sqlite? ( dev-db/sqlite:3 )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0 )
+ libressl? ( dev-libs/libressl )
+ )
+ tools? ( dev-libs/libxml2 )
+ upnp? ( net-libs/libupnp )
+ video? ( >=media-libs/mediastreamer-2.9.0[v4l] )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ doc? ( app-text/sgmltools-lite )
+ nls? ( dev-util/intltool )
+"
+
+IUSE_LINGUAS=" fr it de he ja es pl cs nl sr sv pt_BR hu ru zh_CN"
+IUSE="${IUSE}${IUSE_LINGUAS// / linguas_}"
+
+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
+
+ strip-linguas ${IUSE_LINGUAS}
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-nls.patch \
+ "${DISTDIR}"/${P}-exosip-4.patch
+
+ # variable causes "command not found" warning and is not
+ # needed anyway
+ sed -i \
+ -e 's/$(ACLOCAL_MACOS_FLAGS)//' Makefile.am || die
+
+ # fix path to use lib64
+ sed -i \
+ -e "s:lib\(/liblinphone\):$(get_libdir)\1:" configure.ac \
+ || die "patching configure.ac failed"
+
+ # removing bundled libs dir prevent them to be reconf
+ rm -r mediastreamer2 oRTP || die
+
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable doc manual)
+ $(use_enable nls)
+ --disable-static
+ $(use_enable ncurses console_ui)
+ $(use_enable tools)
+ $(use_enable upnp)
+ $(use_enable gtk gtk_ui)
+ $(use_enable libnotify notify)
+ $(use_enable ipv6)
+ --disable-truespeech
+ $(use_enable gsm-nonstandard nonstandard-gsm)
+ $(use_enable ssl)
+ --disable-speex
+ # seems not used, TODO: ask in ml
+ $(use_enable video)
+ --disable-zrtp
+ $(usex gtk "$(use_enable assistant)" "--disable-assistant")
+ # we don't want -Werror
+ --disable-strict
+ # don't bundle libs
+ --enable-external-mediastreamer
+ $(use_enable sqlite msg-storage)
+ --enable-external-ortp
+ )
+
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" pkgdocdir="/usr/share/doc/${PF}" install # 415161
+ dodoc AUTHORS BUGS ChangeLog NEWS README README.arm TODO
+ pax-mark m "${ED%/}/usr/bin/linphone"
+}
diff --git a/net-voip/linphone/metadata.xml b/net-voip/linphone/metadata.xml
new file mode 100644
index 0000000..de12a8b
--- /dev/null
+++ b/net-voip/linphone/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>bircoph@gentoo.org</email>
+ <name>Andrew Savchenko</name>
+ </maintainer>
+ <use>
+ <flag name="assistant">Turn on assistant compiling
+ (needs gtk enabled)</flag>
+ <flag name="gsm-nonstandard">Support non-standard GSM frequencies
+ </flag>
+ <flag name="sqlite">Turn on compilation of message storage</flag>
+ <flag name="tools">Compile tools</flag>
+ <flag name="video">Enable video support (display/capture)</flag>
+ </use>
+</pkgmetadata>