# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-sound/moc/moc-2.4.1.ebuild,v 1.9 2007/04/22 16:31:21 dertobi123 Exp $ inherit eutils autotools DESCRIPTION="Music On Console - ncurses interface for playing audio files" HOMEPAGE="http://moc.daper.net/" SRC_URI="ftp://ftp.daper.net/pub/soft/${PN}/stable/${P}.tar.bz2" SLOT="0" LICENSE="GPL-2" KEYWORDS="amd64 ppc ppc64 sparc x86" IUSE="flac ffmpeg mad oss vorbis debug alsa speex libsamplerate curl sndfile musepack" # libvorbis is pulled in so the USE flag is vorbis # since upstream apparently assumes ogg is an audio # codec DEPEND="media-libs/libao sys-libs/ncurses alsa? ( >=media-libs/alsa-lib-0.9 ) sndfile? ( >=media-libs/libsndfile-1.0.0 ) flac? ( media-libs/flac ) ffmpeg? ( media-video/ffmpeg ) mad? ( media-libs/libmad sys-libs/zlib media-libs/libid3tag ) musepack? ( media-libs/libmpcdec >=media-libs/taglib-1.3 ) vorbis? ( >=media-libs/libvorbis-1.0 ) speex? ( >=media-libs/speex-1.0.0 ) libsamplerate? ( >=media-libs/libsamplerate-0.1.0 ) curl? ( >=net-misc/curl-7.12.2 )" src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}/${P}+flac-1.1.3.patch" } src_compile() { econf --without-rcc \ $(use_with flac) \ $(use_with mad mp3) \ $(use_with vorbis ogg) \ $(use_with oss) \ $(use_with alsa) \ $(use_with musepack) \ $(use_with sndfile) \ $(use_with libsamplerate samplerate) \ $(use_enable debug) \ || die "./configure failed" emake || die "make failed" } src_install () { emake DESTDIR="${D}" install || die "make install failed" dodoc AUTHORS ChangeLog NEWS README TODO } pkg_postinst() { elog "The binary was renamed due to conflicts with moc" elog "from the QT project. Its new name is mocp." }