summaryrefslogtreecommitdiff
blob: 1520e492f442888967b4a9dd17e40c536af619d5 (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
63
64
65
66
67
68
69
70
71
72
73
74
75
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/xmp/xmp-2.0.5_pre3-r1.ebuild,v 1.6 2004/11/23 04:06:02 eradicator Exp $

IUSE="xmms arts esd nas X oss"

inherit eutils

S="${WORKDIR}/${PN}-2.0.5-pre3"

DESCRIPTION="Extended Module Player"
HOMEPAGE="http://xmp.sf.net"
SRC_URI="mirror://sourceforge/xmp/${PN}-2.0.5pre3.tar.bz2"

SLOT="0"
LICENSE="GPL-2"
#-amd64: 2.0.5_pre3-r1 - compilation nightmare
#-sparc: Segfaults
KEYWORDS="-amd64 x86 -sparc"

DEPEND="X? ( virtual/x11 )
	esd? ( media-sound/esound )
	nas? ( media-libs/nas )
	arts? ( kde-base/arts )
	xmms? ( media-sound/xmms )"

#	Nobody uses alsa5, but if they do, they can hand edit this...
#	alsa? ( =media-libs/alsa-lib-0.5* )


src_unpack() {
	unpack ${A}
	epatch ${FILESDIR}/${P}-gcc3.3.diff
}

src_compile() {
	local myconf="--disable-alsa"

#	use alsa \
#		&& myconf="${myconf} --enable-alsa" \
#		|| myconf="${myconf} --disable-alsa"

	use arts \
		&& myconf="${myconf} --enable-arts" \
		|| myconf="${myconf} --disable-arts"

	use esd \
		&& myconf="${myconf} --enable-esd" \
		|| myconf="${myconf} --disable-esd"

	use nas \
		&& myconf="${myconf} --enable-nas" \
		|| myconf="${myconf} --disable-nas"

	use oss \
		&& myconf="${myconf} --enable-oss" \
		|| myconf="${myconf} --disable-oss"

	use xmms \
		&& myconf="${myconf} --enable-xmms" \
		|| myconf="${myconf} --disable-xmms"

	use X \
		&& myconf="${myconf} --with-x" \
		|| myconf="${myconf} --with-x"

	econf ${myconf} || die

	make || die
}

src_install () {
	make DEST_DIR=${D} MAN_DIR=${D}/usr/share/man/man1 install || die
	dodoc INSTALL README
}