# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ ECVS_SERVER="cvs.sourceforge.net://cvsroot/iaxclient" ECVS_MODULE="iaxclient" ECVS_BRANCH="HEAD" ECVS_USER="anonymous" inherit cvs eutils DESCRIPTION="IAX2 softphone" HOMEPAGE="http://iaxclient.sourceforge.net/iaxcomm/index.html" LICENSE="GPL-2.1" SLOT="0" KEYWORDS="~x86" IUSE="alsa" DEPEND=">=x11-libs/wxGTK-2.6.1" S="${WORKDIR}/iaxclient" pkg_setup() { if ! built_with_use x11-libs/wxGTK unicode; then echo eerror "iaxcomm requires wxGTK to be built with unicode" eerror "support. To install iaxcomm-cvs on your system," eerror "first recompile x11-libs/wxGTK with the \"unicode\"" eerror "USE flag enabled, then try to install iaxcomm-cvs" die "unicode support not enabled in \"x11-libs/wxGTK\"" fi } src_unpack(){ cvs_src_unpack if use alsa ; then sed 's/AUDIO_ALSA=0/AUDIO_ALSA=1/' ${S}/lib/Makefile fi } src_compile(){ cd ${S}/lib make shared cd ${S}/simpleclient/iaxcomm make } src_install(){ cd ${S}/simpleclient/iaxcomm dodir /usr/share/applications /usr/share/pixmaps insinto /usr/share/applications doins ${FILESDIR}/iaxcomm-cvs.deskdop insinto /usr/share/pixmaps doins ${FILESDIR}/iaxcomm.png exeinto /usr/bin doexe iaxcomm iaxcomm.htb dodoc README }