diff options
-rw-r--r-- | emulators/Makefile | 1 | ||||
-rw-r--r-- | emulators/linux-ePSXe/Makefile | 83 | ||||
-rw-r--r-- | emulators/linux-ePSXe/distinfo | 1 | ||||
-rw-r--r-- | emulators/linux-ePSXe/files/linux-epsxe | 15 | ||||
-rw-r--r-- | emulators/linux-ePSXe/files/linux-epsxe_install.in | 72 | ||||
-rw-r--r-- | emulators/linux-ePSXe/pkg-comment | 1 | ||||
-rw-r--r-- | emulators/linux-ePSXe/pkg-descr | 9 | ||||
-rw-r--r-- | emulators/linux-ePSXe/pkg-message | 25 | ||||
-rw-r--r-- | emulators/linux-ePSXe/pkg-plist | 14 |
9 files changed, 221 insertions, 0 deletions
diff --git a/emulators/Makefile b/emulators/Makefile index 0c467186dea9..f652058373e6 100644 --- a/emulators/Makefile +++ b/emulators/Makefile @@ -30,6 +30,7 @@ SUBDIR += ia64sim SUBDIR += ines SUBDIR += libvm68k + SUBDIR += linux-ePSXe SUBDIR += linux-peops-softgpu SUBDIR += linux-peops-spu SUBDIR += linux-vmware-toolbox diff --git a/emulators/linux-ePSXe/Makefile b/emulators/linux-ePSXe/Makefile new file mode 100644 index 000000000000..f487f99c3216 --- /dev/null +++ b/emulators/linux-ePSXe/Makefile @@ -0,0 +1,83 @@ +# New ports collection makefile for: linux-ePSXe +# Date created: 21 Dec 2002 +# Whom: Jean-Yves Lefort <jylefort@brutele.be> +# +# $FreeBSD$ +# + +PORTNAME= ePSXe +PORTVERSION= 1.5.2 +CATEGORIES= emulators linux +MASTER_SITES= http://download.epsxe.com/files/ +PKGNAMEPREFIX= linux- +DISTNAME= epsxe152lin + +MAINTAINER= jylefort@brutele.be + +RUN_DEPENDS= ${LINUXBASE}/usr/lib/libgtk-1.2.so.0:${PORTSDIR}/x11-toolkits/linux-gtk + +USE_ZIP= yes +NO_WRKSUBDIR= yes + +ONLY_FOR_ARCHS= i386 + +# Linux binary should not be stripped by INSTALL_PROGRAM +# because as a side effect it brands the binary as FreeBSD. +STRIP= + +.include <bsd.port.pre.mk> + +EPSXE= ${PREFIX}/libexec/linux-epsxe + +DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} +SHAREDIR= ${PREFIX}/share/${PKGNAMEPREFIX}${PORTNAME} + +PSEMUPRO_PLUGINS_DIR= ${LOCALBASE}/lib/linux-psemupro/plugins +PSEMUPRO_CFGBINS_DIR= ${LOCALBASE}/libexec/linux-psemupro/cfg +PSEMUPRO_CFGFILES_DIR= ${LOCALBASE}/share/linux-psemupro/cfg + +do-build: + ${MKDIR} ${WRKSRC}/FreeBSD + ${SED} \ + -e "s,@EPSXE@,${EPSXE},g" \ + -e "s,@SHAREDIR@,${SHAREDIR},g" \ + -e "s,@PSEMUPRO_PLUGINS_DIR@,${PSEMUPRO_PLUGINS_DIR},g" \ + -e "s,@PSEMUPRO_CFGBINS_DIR@,${PSEMUPRO_CFGBINS_DIR},g" \ + -e "s,@PSEMUPRO_CFGFILES_DIR@,${PSEMUPRO_CFGFILES_DIR},g" \ + ${FILESDIR}/linux-epsxe_install.in \ + >${WRKSRC}/FreeBSD/linux-epsxe_install + +do-install: + ${MKDIR} ${PREFIX}/bin + ${INSTALL_SCRIPT} \ + ${FILESDIR}/linux-epsxe \ + ${WRKSRC}/FreeBSD/linux-epsxe_install \ + ${PREFIX}/bin + + ${MKDIR} ${PREFIX}/libexec + ${INSTALL_PROGRAM} ${WRKSRC}/epsxe ${EPSXE} + + ${MKDIR} ${SHAREDIR} + ${INSTALL_DATA} ${WRKSRC}/keycodes.lst ${SHAREDIR} + + ${MKDIR} ${SHAREDIR}/cheats + ${INSTALL_DATA} \ + ${WRKSRC}/cheats/breath_of_fire_4_usa.cht \ + ${WRKSRC}/cheats/chrono_cross_ntsc.cht \ + ${WRKSRC}/cheats/tarzan_pal.cht \ + ${SHAREDIR}/cheats + +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} \ + ${WRKSRC}/docs/epsxe_en.txt \ + ${WRKSRC}/docs/epsxe_linux_en.txt \ + ${WRKSRC}/docs/epsxe_linux_sp.txt \ + ${WRKSRC}/docs/epsxe_sp.txt \ + ${DOCSDIR} +.endif + +post-install: + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.post.mk> diff --git a/emulators/linux-ePSXe/distinfo b/emulators/linux-ePSXe/distinfo new file mode 100644 index 000000000000..e412ddcbc5fc --- /dev/null +++ b/emulators/linux-ePSXe/distinfo @@ -0,0 +1 @@ +MD5 (epsxe152lin.zip) = 5834f34cb904b08d95abda057eff3981 diff --git a/emulators/linux-ePSXe/files/linux-epsxe b/emulators/linux-ePSXe/files/linux-epsxe new file mode 100644 index 000000000000..6c5feb96d351 --- /dev/null +++ b/emulators/linux-ePSXe/files/linux-epsxe @@ -0,0 +1,15 @@ +#!/bin/sh +# linux-epsxe - linux-ePSXe wrapper +# +# (c) 2002 Jean-Yves Lefort. +# All rights reserved. + +USERDIR=$HOME/.linux-ePSXe + +if [ ! -x $USERDIR/epsxe ]; then + echo "$USERDIR/epsxe not found or not executable." + echo "You should run linux-epsxe_install." + exit 1 +fi + +cd $USERDIR && exec ./epsxe "$@" diff --git a/emulators/linux-ePSXe/files/linux-epsxe_install.in b/emulators/linux-ePSXe/files/linux-epsxe_install.in new file mode 100644 index 000000000000..3688977d6594 --- /dev/null +++ b/emulators/linux-ePSXe/files/linux-epsxe_install.in @@ -0,0 +1,72 @@ +#!/bin/sh +# linux-epsxe_install - linux-ePSXe user installation +# +# (c) 2002 Jean-Yves Lefort. +# All rights reserved. + +EPSXE=@EPSXE@ +SHAREDIR=@SHAREDIR@ +PSEMUPRO_PLUGINS_DIR=@PSEMUPRO_PLUGINS_DIR@ +PSEMUPRO_CFGBINS_DIR=@PSEMUPRO_CFGBINS_DIR@ +PSEMUPRO_CFGFILES_DIR=@PSEMUPRO_CFGFILES_DIR@ + +USERDIR=$HOME/.linux-ePSXe + +_mkdir () { + if [ ! -e $1 ]; then + echo "Creating directory $1" + mkdir -p $1 + fi +} + +_ln () { + if [ ! -e $2 ]; then + echo "Creating symlink $2" + ln -sf $1 $2 + fi +} + +_install () { + if [ ! -e $2 ]; then + echo "Copying $1 to $2" + install -m $3 $1 $2 + fi +} + +for d in \ + $USERDIR \ + $USERDIR/bios \ + $USERDIR/cfg \ + $USERDIR/cheats \ + $USERDIR/memcards \ + $USERDIR/patches \ + $USERDIR/plugins \ + $USERDIR/snap \ + $USERDIR/sstates; do + _mkdir $d || exit $? +done + +_ln $EPSXE $USERDIR/epsxe || exit $? + +for f in \ + keycodes.lst \ + cheats/breath_of_fire_4_usa.cht \ + cheats/chrono_cross_ntsc.cht \ + cheats/tarzan_pal.cht; do + _ln $SHAREDIR/$f $USERDIR/$f || exit $? +done + +for p in $PSEMUPRO_PLUGINS_DIR/*; do + [ -e $p ] || break + _ln $p $USERDIR/plugins/`basename $p` || exit $? +done + +for c in $PSEMUPRO_CFGBINS_DIR/*; do + [ -e $c ] || break + _ln $c $USERDIR/cfg/`basename $c` || exit $? +done + +for c in $PSEMUPRO_CFGFILES_DIR/*; do + [ -e $c ] || break + _install $c $USERDIR/cfg/`basename $c` 0644 || exit $? +done diff --git a/emulators/linux-ePSXe/pkg-comment b/emulators/linux-ePSXe/pkg-comment new file mode 100644 index 000000000000..f6b86353de8d --- /dev/null +++ b/emulators/linux-ePSXe/pkg-comment @@ -0,0 +1 @@ +A Sony Playstation emulator (Linux version) diff --git a/emulators/linux-ePSXe/pkg-descr b/emulators/linux-ePSXe/pkg-descr new file mode 100644 index 000000000000..70a51fb42b7d --- /dev/null +++ b/emulators/linux-ePSXe/pkg-descr @@ -0,0 +1,9 @@ +ePSXe is a Sony Playstation emulator. It takes advantage of the +popular PSEmu Pro plugin system. + +This is the Linux version. + +WWW: http://www.epsxe.com/ + +- Jean-Yves Lefort +jylefort@brutele.be diff --git a/emulators/linux-ePSXe/pkg-message b/emulators/linux-ePSXe/pkg-message new file mode 100644 index 000000000000..840d56a93ede --- /dev/null +++ b/emulators/linux-ePSXe/pkg-message @@ -0,0 +1,25 @@ +------------------------------------------------------------------------------- +You should now log into your normal user account and issue a + + linux-epsxe_install + +in order to create and populate ~/.ePSXe, needed to run the program. + +To do anything useful with the emulator, you'll need a GPU and a SPU +plugin (the Ports Collection contains a number of those), and a +Playstation BIOS image. From the port's documentation: + + "During testing we found out that the scph1001.bin and + scph7502.bin BIOS are compatible, but the scph1000.bin + won't work." + +Note that you may only be in possession of the copyrighted BIOS if +you're legally entitled to do so. + +When you install a PSEmu Pro plugin from a FreeBSD port or package, +you should re-run + + linux-epsxe_install + +in order to make the plugin available to ePSXe. +------------------------------------------------------------------------------- diff --git a/emulators/linux-ePSXe/pkg-plist b/emulators/linux-ePSXe/pkg-plist new file mode 100644 index 000000000000..ef8c303d823d --- /dev/null +++ b/emulators/linux-ePSXe/pkg-plist @@ -0,0 +1,14 @@ +bin/linux-epsxe +bin/linux-epsxe_install +libexec/linux-epsxe +share/linux-ePSXe/keycodes.lst +share/linux-ePSXe/cheats/breath_of_fire_4_usa.cht +share/linux-ePSXe/cheats/chrono_cross_ntsc.cht +share/linux-ePSXe/cheats/tarzan_pal.cht +%%PORTDOCS%%share/doc/linux-ePSXe/epsxe_en.txt +%%PORTDOCS%%share/doc/linux-ePSXe/epsxe_linux_en.txt +%%PORTDOCS%%share/doc/linux-ePSXe/epsxe_linux_sp.txt +%%PORTDOCS%%share/doc/linux-ePSXe/epsxe_sp.txt +@dirrm share/linux-ePSXe/cheats +@dirrm share/linux-ePSXe +%%PORTDOCS%%@dirrm share/doc/linux-ePSXe |