summaryrefslogtreecommitdiff
blob: eea19902f74437c581d0316b9db89595bf13881a (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/media-sound/xmms-shell/xmms-shell-0.99.0-r1.ebuild,v 1.2 2002/07/11 06:30:42 drobbins Exp $

LICENSE="GPL-2"

S=${WORKDIR}/${P}
DESCRIPTION="XMMS-Shell is a simple utility to control XMMS externally."
SRC_URI="http://download.sourceforge.net/xmms-shell/${P}.tar.gz"
HOMEPAGE="http://www.loganh.com/xmms-shell/"
DEPEND=">=media-sound/xmms-1.2.7
	readline? ( >=sys-libs/readline-4.1 )"

src_unpack() {
	unpack ${A}
	if [ -n "`readlink /etc/make.profile |grep gcc3`" ] 
	then
		# shall be sent upstream
		patch -p0 <${FILESDIR}/xmms-shell-gcc3.patch
	fi
}

src_compile() {
	local myopts

	use readline \
		&& myopts="${myopts} --with-readline" \
		|| myopts="${myopts} --without-readline"

	./configure \
		--host=${CHOST} \
		--prefix=/usr \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man \
		${myopts} || die "./configure failed"
	
	emake || die
}

src_install () {
	make DESTDIR=${D} install || die

	dodoc AUTHORS README
}