mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-01 03:00:57 +02:00
47 lines
1.2 KiB
Bash
47 lines
1.2 KiB
Bash
# Copyright 1999-2010 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: $
|
|
|
|
EAPI="2"
|
|
|
|
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="+wxwidgets"
|
|
|
|
DEPEND=""
|
|
RDEPEND="wxwidgets? ( x11-libs/wxGTK:2.8[X] )
|
|
media-libs/portaudio
|
|
net-libs/libvidcap
|
|
media-sound/gsm
|
|
media-video/ffmpeg[speex]"
|
|
|
|
S="${WORKDIR}"/"${PN}"-"${MY_PV}"
|
|
|
|
src_prepare() {
|
|
epatch "${FILESDIR}"/iaxclient-fix-avcodec-include.patch || die "patch failed"
|
|
}
|
|
|
|
src_configure() {
|
|
local myclients
|
|
myclients="testcall"
|
|
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
|
|
sed -e 's/m_id/GetId()/' -i simpleclient/wx/wx.cc
|
|
econf --enable-clients="${myclients}" DESTDIR="${D}" || die 'configure failed'
|
|
}
|
|
|
|
src_install() {
|
|
emake DESTDIR="${D}" install || die 'emake install failed'
|
|
}
|