blob: 67576f8a0b82740d657d1fe7f0ef96ae2e491fe3 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/mpfc/mpfc-1.3.5.ebuild,v 1.5 2006/11/05 20:37:11 aballier Exp $
inherit eutils
DESCRIPTION="Music Player For Console"
HOMEPAGE="http://mpfc.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc sparc x86"
IUSE="alsa esd gpm mad ogg oss"
RDEPEND="alsa? ( >=media-libs/alsa-lib-0.9.0 )
esd? ( >=media-sound/esound-0.2.22 )
gpm? ( >=sys-libs/gpm-1.19.3 )
mad? ( media-libs/libmad )
ogg? ( media-libs/libogg
media-libs/libvorbis )"
src_unpack() {
unpack ${A}
# $(get_libdir) fixes
cd ${S}
find . -name 'Makefile.in' |
xargs grep ^libdir |
cut -f1 -d: |
xargs sed -i "s:^\(libdir.*\)/lib/\(.*\)$:\1/$(get_libdir)/\2:" || die
}
src_compile() {
econf \
$(use_enable alsa) \
$(use_enable esd) \
$(use_enable gpm) \
$(use_enable mad mp3) \
$(use_enable ogg) \
$(use_enable oss) \
--sysconfdir=/etc \
|| die "configure failed"
emake || die "emake failed"
}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
insinto /etc
doins mpfcrc
}
|