Fixed sway and wlc ebuilds. Add ring

This commit is contained in:
layman
2016-03-30 08:53:17 +01:00
parent 4b47298fd5
commit e50f745009
13 changed files with 328 additions and 15 deletions

View File

@@ -0,0 +1,21 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit git-r3 cmake-utils
DESCRIPTION="Ring is a Voice-over-IP software phone."
HOMEPAGE="https://ring.cx/"
EGIT_REPO_URI="https://gerrit-ring.savoirfairelinux.com/ring-lrc"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
DEPEND="
dev-qt/qtcore:5
net-voip/ring-daemon"
RDEPEND="${DEPEND}"

View File

@@ -0,0 +1,24 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit git-r3 cmake-utils
DESCRIPTION="A lightweight C++11 Distributed Hash Table implementation originally based on https://github.com/jech/dht by Juliusz Chroboczek."
HOMEPAGE="https://github.com/savoirfairelinux/opendht/"
EGIT_REPO_URI="https://github.com/savoirfairelinux/opendht/"
LICENSE="GPL-3 MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
DEPEND="
>=dev-libs/msgpack-1.2.0[cxx]"
RDEPEND="${DEPEND}"
src_prepare() {
cmake-utils_src_prepare
}

Binary file not shown.

1
net-libs/pjsip/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST pjproject-2.4.tar.bz2 4631778 SHA256 108015aeda8dce20d182ec9b4fc277026d2b1796e82947da106eeb406eb02059 SHA512 164737bed8f688b2c555e2b4c701a568570a592fa7d1259da0be73a6a79f8c8157562cb941a1c00a0bea2954a8d13dd867bfc16b48c722ac4bde303986e4549a WHIRLPOOL 0218b97bd039873ae963c5638a49fd5cfd16feb2a16af59472e1664e73984a4f01a8924553c7934912031a4f3e8f13fa98959c12602a459ec8800af47ca99ff0

View File

@@ -0,0 +1,11 @@
--- pjsip/src/pjsua2/endpoint.cpp 2015-09-26 04:21:41.626163428 +0300
+++ pjsip/src/pjsua2/endpoint.cpp 2015-09-26 04:20:51.008975347 +0300
@@ -21,6 +21,7 @@
#include <pjsua2/call.hpp>
#include <pjsua2/presence.hpp>
#include <algorithm>
+#include <stdint.h>
#include "util.hpp"
using namespace pj;

View File

@@ -0,0 +1,3 @@
export CFLAGS += -fPIC
export LDFLAGS +=

View File

@@ -0,0 +1,123 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/pjsip/pjsip-1.8.10.ebuild,v 1.1 2011/02/22 10:59:09 elvanor Exp $
EAPI="2"
[[ ${PV} = *9999* ]] && VCS_ECLASS="subversion" || VCS_ECLASS=""
inherit ${VCS_ECLASS} git-r3
DESCRIPTION="Multimedia communication libraries written in C language
for building VoIP applications."
HOMEPAGE="http://www.pjsip.org/"
if [[ ${PV} == *9999* ]]; then
ESVN_REPO_URI="http://svn.pjsip.org/repos/pjproject/trunk"
KEYWORDS=""
else
SRC_URI="http://www.pjsip.org/release/${PV}/pjproject-${PV}.tar.bz2"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="GPL-2"
SLOT="0"
IUSE="alsa doc epoll examples ext-sound g711 g722 g7221 gsm ilbc l16
oss python ring speex ssl"
#small-filter large-filter speex-aec
DEPEND="alsa? ( media-libs/alsa-lib )
gsm? ( media-sound/gsm )
ilbc? ( dev-libs/ilbc-rfc3951 )
speex? ( media-libs/speex )
ring? ( ssl? ( net-libs/gnutls ) )
!ring? ( ssl? ( dev-libs/openssl ) )"
RDEPEND="${DEPEND}"
S="${WORKDIR}/pjproject-${PV}"
src_unpack() {
[[ ${PV} = *9999* ]] && subversion_src_unpack || default
if use ring; then
EGIT_REPO_URI="https://gerrit-ring.savoirfairelinux.com/ring-daemon"
EGIT_CHECKOUT_DIR=$WORKDIR/ring
git-r3_src_unpack
fi
}
src_prepare() {
# Fix hardcoded prefix and flags
sed -i \
-e 's/poll@/poll@\nexport PREFIX := @prefix@\n/g' \
-e 's!prefix = /usr/local!prefix = $(PREFIX)!' \
Makefile \
build.mak.in || die "sed failed."
# apply -fPIC globally
cp ${FILESDIR}/user.mak ${S}
# TODO: remove deps to shipped codecs and libs, use system ones
# rm -r third_party
# libresample: https://ccrma.stanford.edu/~jos/resample/Free_Resampling_Software.html
use ring && {
epatch $WORKDIR/ring/contrib/src/pjproject/*.patch $FILESDIR/pjsip-ring-intptr_t.patch
sed -i -e 's#/usr/local#/usr#' aconfigure
}
}
src_configure() {
# Disable through portage available codecs
ssl=''
if use ring; then
use ssl && ssl=--enable-ssl=gnutls
conf=./aconfigure
else
use ssl && ssl=$(use_enable ssl)
conf=econf
fi
$conf --disable-gsm-codec \
--disable-speex-codec \
--disable-ilbc-codec \
--disable-speex-aec \
$ssl \
$(use_enable epoll) \
$(use_enable alsa sound) \
$(use_enable oss) \
$(use_enable ext-sound) \
$(use_enable g711 g711-codec) \
$(use_enable l16 l16-codec) \
$(use_enable g722 g722-codec) \
$(use_enable g7221 g7221-codec) || die "econf failed."
#$(use_enable small-filter) \
#$(use_enable large-filter) \
#$(use_enable speex-aec) \
}
src_compile() {
emake dep || die "emake dep failed."
emake -j1 || die "emake failed."
}
src_install() {
DESTDIR="${D}" emake install || die "emake install failed."
if use python; then
pushd pjsip-apps/src/python
python setup.py install --prefix="${D}/usr/"
popd
fi
if use doc; then
dodoc README.txt README-RTEMS
fi
if use examples; then
insinto "/usr/share/doc/${P}/examples"
doins "${S}/pjsip-apps/src/samples/"*
fi
# Remove files that pjproject should not install
rm -r "${D}/usr/lib/libportaudio.a" \
"${D}/usr/lib/libsrtp.a"
}