iaxclient: missing dep, added USE flag for it

This commit is contained in:
Zero_Chaos 2012-05-02 05:36:49 +00:00
parent 0787e3d0d1
commit 74fba93613
2 changed files with 60 additions and 0 deletions

View file

@ -1,3 +1,4 @@
AUX iaxclient-fix-avcodec-include.patch 320 RMD160 88ddfbbd68b3be1d5cc91a15ca8d088c076cf0c4 SHA1 02b675e20a46b7f3d7c59c0d73e3374ee7a4b3b0 SHA256 835c5ac2e404c78c1119a60bce5f25bfc84fa7a4415c03e1f4d8d658602700a3
DIST iaxclient-2.1beta3.tar.gz 1418674 RMD160 3ac516b9a07c48202f2e717baf3de1396f756707 SHA1 dbb0dcdc2f775d741a8e86af1c80e40d70225b4d SHA256 6ca6ce8103837ed6fa2fd2e88c1c0d3a3d93d7b4bd084878351527ebfb205149
EBUILD iaxclient-2.1_beta3-r1.ebuild 1712 RMD160 5006f81fbf414dfe6cf1a859c47caab456ab13ff SHA1 3d562c85d1332a17da769f9447a50ba071a13a86 SHA256 6326c86ecd716def406b8b9d9e52622e43a44b404ce33dbc64e9c65f63a6bc0c
EBUILD iaxclient-2.1_beta3-r2.ebuild 1812 RMD160 5793b73f92e0b4be9a1c39dfc30e985e9bd9c402 SHA1 45e3fd086b3ffe12017f900861b28005a31f7b56 SHA256 a95992f6fcfa3e691493c842b06a099a2fafa2d705c8d1f6361967cc1b6c23e1

View file

@ -0,0 +1,59 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="3"
inherit eutils
MY_PV=${PV/_/}
DESCRIPTION="Multiplatform IAX library for creating telephony solutions that interoperate with Asterisk"
HOMEPAGE="http://iaxclient.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="stresstest vtestcall +wxwidgets"
DEPEND=""
RDEPEND="wxwidgets? ( x11-libs/wxGTK:2.8[X] )
media-libs/portaudio
net-libs/libvidcap
media-sound/gsm
media-video/ffmpeg[speex,gsm]
stresstest? ( media-libs/liboggz )
vtestcall? ( media-libs/libsdl )"
S="${WORKDIR}"/"${PN}"-"${MY_PV}"
src_prepare() {
epatch "${FILESDIR}"/iaxclient-fix-avcodec-include.patch || die "patch failed"
sed -i 's#e->avctx->mb_qmin = e->avctx->qmin = 10;#//e->avctx->mb_qmin = e->avctx->qmin = 10;#' lib/codec_ffmpeg.c
sed -i 's#e->avctx->mb_qmax = e->avctx->qmax = 10;#//e->avctx->mb_qmax = e->avctx->qmax = 10;#' lib/codec_ffmpeg.c
sed -i 's#avcodec_decode_video#avcodec_decode_video2#' lib/codec_ffmpeg.c
sed -i 's#in, inlen)#in)#g' lib/codec_ffmpeg.c
}
src_configure() {
local myclients
myclients="testcall"
if use vtestcall; then
myclients="${myclients} vtestcall"
fi
if use wxwidgets; then
myclients="${myclients} wx"
ewarn 'If your build fails with "configure: error: wx client requires wxWidgets"'
ewarn 'you can fix it with "eselect wxwidgets set 1"'
fi
if use stresstest; then
myclients="${myclients} stresstest"
fi
sed -e 's/m_id/GetId()/' -i simpleclient/wx/wx.cc
econf --enable-clients="${myclients}" --with-gsm-includes=/usr/include/gsm DESTDIR="${ED}" || die 'configure failed'
}
src_install() {
emake DESTDIR="${ED}" install || die 'emake install failed'
}