blob: 6d01a70d6f288ebd7bbd8f0223af717104158338 (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-emulation/psemu-peopsspu/psemu-peopsspu-1.0.7-r2.ebuild,v 1.5 2004/06/28 22:21:35 agriffis Exp $
inherit eutils games
DESCRIPTION="P.E.Op.S Sound Emulation (SPU) PSEmu Plugin"
HOMEPAGE="http://sourceforge.net/projects/peops/"
SRC_URI="mirror://sourceforge/peops/PeopsSpu${PV//./}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~ppc"
IUSE="alsa oss"
RDEPEND="alsa? ( media-libs/alsa-lib )
app-arch/unzip
=x11-libs/gtk+-1*"
DEPEND="${RDEPEND}
>=sys-apps/sed-4
sys-devel/automake"
S="${WORKDIR}"
src_unpack() {
unpack ${A}
cd src/linuxcfg
tar -zxf spucfg.tar.gz
( emake distclean && automake --add-missing ) || die "could not clean up"
edos2unix `find -name '*.in' -o -name '*.am' -o -name '*.[ch]' -o -name 'config*'`
}
src_compile() {
cd src
sed -i \
-e "s/-mpentium//" \
-e "/^CCFLAGS3/s:=:= ${CFLAGS} :" Makefile \
|| die "sed Makefile failed"
if use oss || ! use alsa; then
emake clean || die
emake USEALSA=FALSE || die
mv libspu* ..
fi
if use alsa ; then
emake clean || die
emake USEALSA=TRUE || die
mv libspu* ..
fi
cd linuxcfg
econf || die
emake || die "emake failed"
mv src/spucfg src/cfgPeopsOSS
}
src_install() {
exeinto ${GAMES_LIBDIR}/psemu/plugins
doexe libspu*
exeinto ${GAMES_LIBDIR}/psemu/cfg
doexe cfgPeopsOSS
insinto ${GAMES_LIBDIR}/psemu/cfg
doins spuPeopsOSS.cfg
dodoc src/*.txt *.txt
prepgamesdirs
}
|