blob: f9f3c9923188c4b3b0e012c642ca0db3b99405b7 (
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
# Author Per Wigren <wigren@home.se>
# $Header: /var/cvsroot/gentoo-x86/app-emulation/pcsx/pcsx-1.2.ebuild,v 1.1 2002/06/03 02:53:20 rphillips Exp $
S=${WORKDIR}
DESCRIPTION="Playstation emulator"
HOMEPAGE="http://www.pcsx.net"
LICENSE="GPL"
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_URI="http://www.pcsx.net/downloads/${PN}src${PV}.zip"
src_unpack() {
cd ${WORKDIR}
set
unzip -a ${DISTDIR}/$(echo ${A} | cut -f1 -d\ )
patch -p0 < ${FILESDIR}/ix86.h.diff
}
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
emake 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/*
}
|