# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-sound/darkice/darkice-0.15.ebuild,v 1.2 2005/05/04 15:52:08 luckyduck Exp $ DESCRIPTION="IceCast live streamer, delivering ogg and mp3 streams simultaneously to multiple hosts." HOMEPAGE="http://darkice.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~amd64" IUSE="alsa encode jack vorbis" DEPEND="encode? ( >=media-sound/lame-1.89 ) vorbis? ( >=media-libs/libvorbis-1.0 ) alsa? ( >=media-libs/alsa-lib-1.0.0 ) jack? ( media-sound/jack-audio-connection-kit )" src_compile() { if ! use encode && ! use vorbis then eerror "You need support for mp3 or Ogg Vorbis enconding for this" eerror "package. Please merge again with at least one of the " eerror "\`encode' and \`vorbis' USE flags enabled:" eerror eerror " # USE=\"encode\" emerge darkice" eerror " # USE=\"vorbis\" emerge darkice" die "Won't build without support for lame nor vorbis" fi econf $(use_with alsa) \ $(use_with encode lame) \ $(use_with jack) \ $(use_with vorbis) || die "configuration failed" emake || die "Compilation failed" } src_install() { einstall darkicedocdir=${D}/usr/share/doc/${PF} || die "make install failed" dodoc AUTHORS ChangeLog NEWS README TODO }