# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-misc/kphone/kphone-4.2.ebuild,v 1.6 2006/04/03 22:22:51 gustavoz Exp $ inherit qt3 eutils DESCRIPTION="A SIP user agent for Linux, with which you can initiate VoIP connections over the Internet." HOMEPAGE="http://www.wirlab.net/kphone/index.html" SRC_URI="http://www.wirlab.net/kphone/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ppc sparc ~x86" IUSE="alsa debug jack" S=${WORKDIR}/${PN} DEPEND="=x11-libs/qt-3* dev-libs/openssl alsa? ( media-libs/alsa-lib ) jack? ( media-sound/jack-audio-connection-kit )" # TODO: support for Secure RTP, needs libSRTP in portage src_unpack() { unpack ${A} epatch ${FILESDIR}/kphone-4.2-gcc4.diff } src_compile() { local myconf="$(use_enable alsa) $(use_enable jack) $(use_enable debug) --disable-srtp" econf ${myconf} || die emake || die } src_install() { make DESTDIR="${D}" install || die dodoc CHANGES README }