mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-09 04:51:27 +02:00
iaxclient: fix failure when no wxwidgets is set
This commit is contained in:
parent
12ca9873a3
commit
6dce791196
2 changed files with 67 additions and 0 deletions
|
|
@ -2,3 +2,4 @@ AUX iaxclient-fix-avcodec-include.patch 320 RMD160 88ddfbbd68b3be1d5cc91a15ca8d0
|
|||
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
|
||||
EBUILD iaxclient-2.1_beta3-r3.ebuild 1922 RMD160 37faab9ffb9e908035900b4fac296d5b4c0c404b SHA1 100a67233eb0f0641ada0bd8bb3837599635fa24 SHA256 d9b8840b057fd8985ccee7e44b854c3208c1c1d00dbb1e4e618e33690a4c4825
|
||||
|
|
|
|||
66
net-misc/iaxclient/iaxclient-2.1_beta3-r3.ebuild
Normal file
66
net-misc/iaxclient/iaxclient-2.1_beta3-r3.ebuild
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
# 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}"
|
||||
|
||||
pkg_setup()
|
||||
{
|
||||
if use wxwidgets; then
|
||||
eselect wxwidgets list | grep -q \* || eselect wxwidgets set 1
|
||||
fi
|
||||
}
|
||||
|
||||
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'
|
||||
}
|
||||
Loading…
Reference in a new issue