1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="A ncurses based music player with plugin support for many formats"
8 SRC_URI="http://onion.dynserv.net/~timo/files/${P}.tar.bz2"
9 HOMEPAGE="http://onion.dynserv.net/~timo/cmus.html"
11 IUSE="alsa ao arts debug flac oss mad modplug mp3 musepack vorbis"
13 DEPEND="sys-libs/ncurses
14 flac? ( >=media-libs/flac-1.1.2 )
15 mad? ( >=media-libs/libmad-0.14 )
16 modplug? ( >=media-libs/libmodplug-0.7 )
17 mp3? ( >=media-libs/libmad-0.14 )
18 musepack? ( >=media-libs/libmpcdec-1.2 )
19 vorbis? ( >=media-libs/libvorbis-1.0 )
20 alsa? ( >=media-libs/alsa-lib-1.0.11 )
21 ao? ( media-libs/libao )
22 arts? ( kde-base/arts )
32 if ! built_with_use sys-libs/ncurses unicode
35 ewarn "\t sys-libs/ncurses compiled without the unicode USE flag."
36 ewarn "\t Please recompile sys-libs/ncurses with USE=unicode and emerge"
37 ewarn "\t cmus again if you experience any problems with UTF-8 or"
38 ewarn "\t wide characters."
47 use ${1} && value=y || value=n
48 myconf="${myconf} ${2}=${value}"
53 local debuglevel myconf
63 my_config ao CONFIG_AO
64 my_config alsa CONFIG_ALSA
65 my_config arts CONFIG_ARTS
66 my_config flac CONFIG_FLAC
67 my_config oss CONFIG_OSS
68 my_config mp3 CONFIG_MAD
69 my_config mad CONFIG_MAD
70 my_config modplug CONFIG_MODPLUG
71 my_config musepack CONFIG_MPC
72 my_config vorbis CONFIG_VORBIS
74 # econf doesn't work, because configure wants "prefix" without dashes
75 ./configure prefix=/usr ${myconf} DEBUG=$debuglevel || die "Configure failed"
77 emake || die "Make failed"
82 emake DESTDIR="${D}" install || die "Install failed"