added ebuild file
This commit is contained in:
parent
a91e643b53
commit
29a9f57784
|
@ -0,0 +1,42 @@
|
|||
IUSE="encode oggvorbis alsa jack"
|
||||
|
||||
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"
|
||||
RESTRICT="nomirror"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~amd64"
|
||||
|
||||
DEPEND="encode? ( >=media-sound/lame-3.89 )
|
||||
oggvorbis? ( >=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 oggvorbis
|
||||
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 \`oggvorbis' USE flags enabled:"
|
||||
eerror
|
||||
eerror " # USE=\"encode\" emerge darkice"
|
||||
eerror " # USE=\"oggvorbis\" emerge darkice"
|
||||
die "Won't build without support for lame nor vorbis"
|
||||
fi
|
||||
|
||||
econf `use_with alsa` \
|
||||
`use_with encode lame` \
|
||||
`use_with oggvorbis vorbis` \
|
||||
`use_with jack` || die
|
||||
|
||||
emake || die "Compilation failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
einstall darkicedocdir=${D}/usr/share/doc/${PF} || die
|
||||
|
||||
dodoc AUTHORS ChangeLog COPYING NEWS README TODO
|
||||
}
|
Loading…
Reference in New Issue