blob: 0a23c2f7795997f9beee1d410a867aff44be4328 (
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
77
78
79
|
# 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.1 2001/10/06 10:08:19 azarah 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.10
>=media-libs/libmikmod-3.1.9
>=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.10
>=media-libs/libmikmod-3.1.9
>=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"
export CFLAGS="$CFLAGS -I/opt/gnome/include"
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
try ./configure --host=${CHOST} --prefix=/usr ${myopts}
try make
}
src_install() {
cd ${S}
if [ -n "`use gnome`" ]
then
try make prefix=${D}/usr \
gnorbadir=${D}/etc/gnome/CORBA/servers \
sysdir=${D}/usr/share/applets/Multimedia \
install
else
try make prefix=${D}/usr/X11R6 install
fi
dodoc AUTHORS ChangeLog COPYING FAQ NEWS README TODO
insinto /usr/share/pixmaps/
donewins gnomexmms/gnomexmms.xpm xmms.xpm
}
|