diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-09-09 16:28:07 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-09-09 16:28:07 +0000 |
commit | ae044aeba549da343d278a26bb72bac844e5a5e4 (patch) | |
tree | b16ea879113ef2bd09bb78bb00e8338b088d3afb /games-emulation/pcsx | |
parent | New package - rename. (diff) | |
download | gentoo-2-ae044aeba549da343d278a26bb72bac844e5a5e4.tar.gz gentoo-2-ae044aeba549da343d278a26bb72bac844e5a5e4.tar.bz2 gentoo-2-ae044aeba549da343d278a26bb72bac844e5a5e4.zip |
welcome to games-emulation
Diffstat (limited to 'games-emulation/pcsx')
-rw-r--r-- | games-emulation/pcsx/ChangeLog | 48 | ||||
-rw-r--r-- | games-emulation/pcsx/Manifest | 5 | ||||
-rw-r--r-- | games-emulation/pcsx/files/1.5-gentoo.patch | 11 | ||||
-rw-r--r-- | games-emulation/pcsx/files/digest-pcsx-1.5-r1 | 1 | ||||
-rw-r--r-- | games-emulation/pcsx/files/pcsx | 56 | ||||
-rw-r--r-- | games-emulation/pcsx/pcsx-1.5-r1.ebuild | 60 |
6 files changed, 181 insertions, 0 deletions
diff --git a/games-emulation/pcsx/ChangeLog b/games-emulation/pcsx/ChangeLog new file mode 100644 index 000000000000..c5748676cd3f --- /dev/null +++ b/games-emulation/pcsx/ChangeLog @@ -0,0 +1,48 @@ +# ChangeLog for app-emulation/pcsx +# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-emulation/pcsx/ChangeLog,v 1.1 2003/09/09 16:26:50 vapier Exp $ + +*pcsx-1.5-r1 (14 Aug 2003) + + 14 Aug 2003; Mike Frysinger <vapier@gentoo.org> : + Added games.eclass support. + +*pcsx-1.5 (27 May 2003) + + 29 Jun 2003; Daniel Ahlberg <aliz@gentoo.org> : + Added missing changelog entry. + + 26 May 2003; <msterret@gentoo.org> pcsx-1.4.ebuild: + New ebuild for 1.5. There's something odd about the RDEPEND stuff in 1.4 but + I don't know what to do about it. Hopefully someone else will pick this ebuild + up and tidy it if necessary. + +*pcsx-1.4 (11 Dec 2002) + + 07 Apr 2003; YAMAKURA Makoto <yakina@gentoo.org> files/pcsx: + get rid of a possibility of copyright infringement + + 11 Dec 2002; Ryan Phillips <rphillips@gentoo.org> pcsx-1.4.ebuild : + New version + +*pcsx-1.2 (27 Jul 2002) + + 17 Oct 2002; Daniel Ahlberg <aliz@gentoo.org> pcsx-1.2.ebuild : + Added IUSE. + + 06 Aug 2002; Mark Guertin <gerk@gentoo.org> : + Added -ppc to keywords + + 27 Jul 2002; Stuart Bouyer <stubear@gentoo.org> pcsx-1.2.ebuild : + + Added KEYWORDS="x86" and SLOT. + +*pcsx-1.2 (2 June 2002) + + 2 June 2002; Ryan Phillips <rphillips@gentoo.org> ChangeLog : + + Added initial ChangeLog which should be updated whenever the package is + updated in any way. This changelog is targetted to users. This means that the + comments should well explained and written in clean English. The details about + writing correct changelogs are explained in the skel.ChangeLog file which you + can find in the root directory of the portage repository. diff --git a/games-emulation/pcsx/Manifest b/games-emulation/pcsx/Manifest new file mode 100644 index 000000000000..d01b52ac4776 --- /dev/null +++ b/games-emulation/pcsx/Manifest @@ -0,0 +1,5 @@ +MD5 5d4178cacae36906aaf26238d2f556b2 files/digest-pcsx-1.5-r1 60 +MD5 fdf3d6afdc389182742ce8e378b17916 files/pcsx 1314 +MD5 2f9732780627a19f6cf58f4f46ae93a4 files/1.5-gentoo.patch 365 +MD5 6def754a7e4af9f39b7c6748bc1e5b24 pcsx-1.5-r1.ebuild 1394 +MD5 14869003388287b479f98d8f5402d6f9 ChangeLog 1665 diff --git a/games-emulation/pcsx/files/1.5-gentoo.patch b/games-emulation/pcsx/files/1.5-gentoo.patch new file mode 100644 index 000000000000..e490758f64af --- /dev/null +++ b/games-emulation/pcsx/files/1.5-gentoo.patch @@ -0,0 +1,11 @@ +--- Linux/LnxMain.c.orig 2003-08-14 00:55:01.529872992 -0400 ++++ Linux/LnxMain.c 2003-08-14 00:54:56.000000000 -0400 +@@ -48,7 +48,7 @@ + bindtextdomain(PACKAGE, "./Langs"); + textdomain(PACKAGE); + #endif +- strcpy(cfgfile, "Pcsx.cfg"); ++ sprintf(cfgfile, "%s/.pcsx/config", getenv("HOME")); + + for (i=1; i<argc; i++) { + if (!strcmp(argv[i], "-runcd")) runcd = 1; diff --git a/games-emulation/pcsx/files/digest-pcsx-1.5-r1 b/games-emulation/pcsx/files/digest-pcsx-1.5-r1 new file mode 100644 index 000000000000..b3b5dc8f697b --- /dev/null +++ b/games-emulation/pcsx/files/digest-pcsx-1.5-r1 @@ -0,0 +1 @@ +MD5 591eaf198d3bb3da45a30e4fdffec11c PcsxSrc-1.5.tgz 441651 diff --git a/games-emulation/pcsx/files/pcsx b/games-emulation/pcsx/files/pcsx new file mode 100644 index 000000000000..0a66d5411542 --- /dev/null +++ b/games-emulation/pcsx/files/pcsx @@ -0,0 +1,56 @@ +#!/bin/bash + +source /sbin/functions.sh + +if [ ! -f ${HOME}/.pcsx/config ]; then + einfo You are running PCSX for the first time. + einfo Setting up your PCSX environment... Please wait... + + mkdir -p ${HOME}/.pcsx + cd ${HOME}/.pcsx + mkdir memcards bios cfg plugins + + ln -s /usr/games/bin/pcsx.bin pcsx + ln -s /usr/games/lib/psemu/plugins/* plugins/ + ln -s /usr/share/games/pcsx .pixmaps + + cd bios + if [ -f /usr/games/lib/psemu/bios/scph1001.bin ]; then + ln -s /usr/games/lib/psemu/bios/scph1001.bin . + biosname=scph1001.bin + else + biosname=HLE + fi + cd .. + + cat >${HOME}/.pcsx/config <<EOF +Bios = $biosname +Gpu = $(basename $(ls plugins/libgpu* | cut -f1 -d\ ) ) +Spu = $(basename $(ls plugins/libspu* | cut -f1 -d\ ) ) +Cdr = $(basename $(ls plugins/libcdr* | cut -f1 -d\ ) ) +Pad1 = $(basename $(ls plugins/libpadXwin-* | cut -f1 -d\ ) ) +Pad2 = $(basename $(ls plugins/libpadXwin-* | cut -f1 -d\ ) ) +Mcd1 = ${HOME}/.pcsx/memcards/Mcd001.mcr +Mcd2 = ${HOME}/.pcsx/memcards/Mcd002.mcr +PluginsDir = ${HOME}/.pcsx/plugins/ +BiosDir = ${HOME}/.pcsx/bios/ +Xa = 0 +Sio = 0 +Mdec = 0 +PsxAuto = 1 +PsxType = 0 +Cdda = 0 +Cpu = 0 +PsxOut = 0 +SpuIrq = 0 +CdTiming = 0 +EOF + unset biosname +fi + +cd ${HOME}/.pcsx/ + +ln -s /usr/games/lib/psemu/cfg/* cfg/ &>/dev/null +ln -s /usr/games/lib/psemu/plugins/* plugins/ &>/dev/null + +exec ./pcsx "$@" diff --git a/games-emulation/pcsx/pcsx-1.5-r1.ebuild b/games-emulation/pcsx/pcsx-1.5-r1.ebuild new file mode 100644 index 000000000000..be8901193996 --- /dev/null +++ b/games-emulation/pcsx/pcsx-1.5-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-emulation/pcsx/pcsx-1.5-r1.ebuild,v 1.1 2003/09/09 16:26:50 vapier Exp $ + +inherit games eutils + +S=${WORKDIR}/PcsxSrc-${PV} +DESCRIPTION="Playstation emulator" +HOMEPAGE="http://www.pcsx.net/" +SRC_URI="http://www.pcsx.net/downloads/PcsxSrc-${PV}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" +IUSE="opengl" + +DEPEND="sys-libs/zlib + >=sys-apps/sed-4 + app-arch/unzip + x11-libs/gtk+ + gnome-base/libglade" +RDEPEND="app-emulation/psemu-cdr + app-emulation/psemu-cdriso + app-emulation/psemu-padxwin + app-emulation/psemu-padjoy + app-emulation/psemu-peopsspu + || ( + opengl? ( app-emulation/psemu-gpupetemesagl ) + app-emulation/psemu-peopssoftgpu + )" + +src_unpack() { + unpack PcsxSrc-${PV}.tgz + cd ${S} + + edos2unix `find -regex '.*\.[ch]'` + + epatch ${FILESDIR}/${PV}-gentoo.patch + sed -i \ + -e "s:Plugin/:${GAMES_LIBDIR}/psemu/plugins/:" \ + -e "s:Bios/:${GAMES_LIBDIR}/psemu/bios/:" \ + -e 's:Pcsx.cfg:~/.pcsx/config:' \ + Linux/LnxMain.c \ + || die "sed LnxMain.c failed" +} + +src_compile() { + cd Linux + econf || die "econf failed" + emake OPTIMIZE="${CFLAGS}" || die "emake failed" +} + +src_install() { + newgamesbin Linux/pcsx pcsx.bin + dogamesbin ${FILESDIR}/pcsx + insinto ${GAMES_DATADIR}/${PN} + doins Linux/.pixmaps/* + dodoc Docs/* + prepgamesdirs +} |