blob: 8f0a622e4e971f6e0fb2593ef302421085262347 (
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
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/pcsx/pcsx-1.4.ebuild,v 1.3 2003/01/13 04:30:37 vapier Exp $
S=${WORKDIR}
DESCRIPTION="Playstation emulator"
HOMEPAGE="http://www.pcsx.net/"
SRC_URI="http://www.pcsx.net/downloads/PcsxSrc-${PV}.zip"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE="opengl"
use opengl && GLDEPEND="app-emulation/psemu-gpupetemesagl"
use opengl || GLDEPEND="app-emulation/psemu-peopssoftgpu"
DEPEND="sys-libs/zlib
app-arch/unzip
x11-libs/gtk+
gnome-base/libglade"
#RDEPEND="net-misc/wget
# app-emulation/psemu-cdr
# app-emulation/psemu-cdriso
# app-emulation/psemu-padxwin
# app-emulation/psemu-padjoy
# app-emulation/psemu-peopsspu
# ${GLDEPEND}"
src_compile() {
cd PcsxSrc/Linux
# Change some defaults...
sed -e 's:Plugin/:/usr/lib/psemu/plugins/:' \
-e 's:Bios/:/usr/lib/psemu/bios/:' \
-e 's:Pcsx.cfg:~/.pcsx/config:' \
<LnxMain.c >LnxMain.tmp
mv -f LnxMain.tmp LnxMain.c
for f in `find ${WORKDIR} -regex '.*\.[ch]'` ; do
cp ${f}{,.old}
sed -e 's/
$//' ${f}.old > ${f}
done
emake CC=gcc OPTIMIZE="${CFLAGS} -fPIC -fomit-frame-pointer -finline-functions -ffast-math" || die
mv pcsx pcsx.bin
}
src_install() {
dobin PcsxSrc/Linux/pcsx.bin
dobin ${FILESDIR}/pcsx
dodoc PcsxSrc/Docs/*
}
|