iaxclient: various fixes, mostly horrible hacks. compiles now, no promises that it works

This commit is contained in:
Zero_Chaos 2012-04-12 04:04:49 +00:00
parent e103e3a632
commit 69e562ca2b
2 changed files with 15 additions and 7 deletions

View file

@ -1,3 +1,3 @@
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 1193 RMD160 a960a0b5018f0317813c19caba56f1cf3d710d39 SHA1 16d74df8b4d696c892f7ff194f5f937cce94aab5 SHA256 9634310f966ef0b99f617a6c25ee1faa082427807fbf73c026d7e4d637c75050
EBUILD iaxclient-2.1_beta3-r1.ebuild 1712 RMD160 5006f81fbf414dfe6cf1a859c47caab456ab13ff SHA1 3d562c85d1332a17da769f9447a50ba071a13a86 SHA256 6326c86ecd716def406b8b9d9e52622e43a44b404ce33dbc64e9c65f63a6bc0c

View file

@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
EAPI="3"
inherit eutils
@ -15,33 +15,41 @@ SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="+wxwidgets"
IUSE="stresstest +wxwidgets"
DEPEND=""
RDEPEND="wxwidgets? ( x11-libs/wxGTK:2.8[X] )
media-libs/portaudio
net-libs/libvidcap
media-sound/gsm
media-video/ffmpeg[speex,gsm]"
media-video/ffmpeg[speex,gsm]
stresstest? ( media-libs/liboggz )"
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"
myclients="testcall vtestcall"
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}" DESTDIR="${D}" || die 'configure failed'
econf --enable-clients="${myclients}" --with-gsm-includes=/usr/include/gsm DESTDIR="${ED}" || die 'configure failed'
}
src_install() {
emake DESTDIR="${D}" install || die 'emake install failed'
emake DESTDIR="${ED}" install || die 'emake install failed'
}