# Copyright 1999-2005 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="CMus - ncurses based music player." SRC_URI="http://onion.dynserv.net/~timo/files/${P}.tar.bz2" HOMEPAGE="http://onion.dynserv.net/~timo/?page=Projects/cmus" SLOT="0" IUSE="alsa arts debug flac irman oss mad modplug vorbis" DEPEND="sys-libs/ncurses alsa? ( >=media-libs/alsa-lib-0.9.0 ) arts? ( kde-base/arts ) flac? ( >=media-libs/flac-1.1.1 ) mad? ( >=media-libs/libmad-0.14 media-libs/libid3tag ) modplug? ( >=media-libs/libmodplug-0.7 ) vorbis? ( >=media-libs/libvorbis-1.0 ) " RDEPEND=${DEPEND} LICENSE="GPL-2" KEYWORDS="~x86 ~ppc ~ppc64 ~amd64" src_compile() { local debuglevel if use debug then debuglevel=2 else debuglevel=1 fi ./configure \ --prefix=/usr \ `use_enable alsa` \ `use_enable arts` \ `use_enable flac` \ `use_enable irman` \ `use_enable oss` \ `use_enable mad` \ `use_enable modplug` \ `use_enable vorbis` \ DEBUG=$debuglevel \ || die make ${MAKEOPTS} || die } src_install() { make DESTDIR=${D} install || die dodoc README TODO }