blob: 5045a6cfc52ab766072247daf69fe1cada45b814 (
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
76
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/media-sound/xmms/xmms-1.2.5-r1.ebuild,v 1.4 2001/10/09 22:15:31 woodchip Exp $
S=${WORKDIR}/${P}
DESCRIPTION="X MultiMedia System"
SRC_URI="ftp://ftp.xmms.org/xmms/1.2.x/${P}.tar.gz"
HOMEPAGE="http://www.xmms.org/"
DEPEND="gnome? ( >=gnome-base/gnome-core-1.4.0.4-r1 )
>=dev-libs/libxml-1.8.15
>=media-libs/libmikmod-3.1.9
esd? ( >=media-sound/esound-0.2.22 )
vorbis? ( >=media-libs/libvorbis-1.0_beta4 )
>=x11-libs/gtk+-1.2.10-r4
virtual/opengl"
RDEPEND="gnome? ( >=gnome-base/gnome-core-1.4.0.4-r1 )
>=dev-libs/libxml-1.8.15
>=media-libs/libmikmod-3.1.9
esd? ( >=media-sound/esound-0.2.22 )
vorbis? ( >=media-libs/libvorbis-1.0_beta4 )
>=x11-libs/gtk+-1.2.10-r4
virtual/opengl"
src_unpack() {
unpack ${A}
cd ${S}
cp configure configure.orig
sed -e "s:-m486::" configure.orig > configure
}
src_compile() {
local myopts
if [ -n "`use gnome`" ]
then
myopts="--with-gnome"
else
myopts="--without-gnome"
fi
if [ "`use 3dnow`" ] ; then
myopts="$myopts --enable-3dnow"
else
myopts="$myopts --disable-3dnow"
fi
if [ "`use ogg`" ] ; then
myopts="$myopts --with-ogg"
else
myopts="$myopts --disable-ogg-test"
fi
if [ "`use vorbis`" ] ; then
myopts="$myopts --with-vorbis"
else
myopts="$myopts --disable-vorbis-test"
fi
./configure --host=${CHOST} --prefix=/usr ${myopts} || die
emake || die
}
src_install() {
make prefix=${D}/usr \
sysconfdir=${D}/etc \
sysdir=${D}/usr/share/applets/Multimedia \
install || die
dodoc AUTHORS ChangeLog COPYING FAQ NEWS README TODO
insinto /usr/share/pixmaps/
donewins gnomexmms/gnomexmms.xpm xmms.xpm
}
|