# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils IUSE="speex" DESCRIPTION="OPAL library, used by Ekiga" HOMEPAGE="http://www.ekiga.org" SRC_URI="http://www.ekiga.org/downloads/sources/${P}.tar.gz" LICENSE="MPL-1.0" SLOT="0" KEYWORDS="~amd64 ~x86" RDEPEND="speex? ( media-libs/speex ) >=dev-libs/pwlib-1.9.2" DEPEND="${RDEPEND}" src_compile() { local myconf # Actually compiling with system speex doesn't work # so please disable speex use flag for this package. # Disable IAX2, otherwise the build process fails. myconf="--disable-iax \ $(use_enable !speex localspeex)" econf ${myconf} || die "configure failed" emake || die "make failed" } src_install() { emake DESTDIR="${D}" install || die "install failed" }