blob: 68309b0ed67e30a3478b208d44f1b2507bf4859d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# 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."
}
|