aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2005-01-22 18:37:38 +0800
committeredwin <edwin@FreeBSD.org>2005-01-22 18:37:38 +0800
commitb8da6a35b3049ce11332882866376681e7382a17 (patch)
tree6ff2ee87ecd9e673a6f8c9eece7e696c721abc58
parent0d5a409b6f2f6018ccd5717352272c2b4b0ab9db (diff)
downloadfreebsd-ports-gnome-b8da6a35b3049ce11332882866376681e7382a17.tar.gz
freebsd-ports-gnome-b8da6a35b3049ce11332882866376681e7382a17.tar.zst
freebsd-ports-gnome-b8da6a35b3049ce11332882866376681e7382a17.zip
Re-add port: emulators/linux-ePSXe (linux_base conflicts are gone)
Now that linux_base conflicts have been fixed, emulators/linux-ePSXe must reappear. PR: ports/75838 Submitted by: Jean-Yves Lefort <jylefort@brutele.be>
-rw-r--r--emulators/linux-ePSXe/Makefile88
-rw-r--r--emulators/linux-ePSXe/distinfo2
-rw-r--r--emulators/linux-ePSXe/files/epsxe15
-rw-r--r--emulators/linux-ePSXe/files/epsxe-install.in72
-rw-r--r--emulators/linux-ePSXe/pkg-descr9
-rw-r--r--emulators/linux-ePSXe/pkg-message25
-rw-r--r--emulators/linux-ePSXe/pkg-plist14
7 files changed, 225 insertions, 0 deletions
diff --git a/emulators/linux-ePSXe/Makefile b/emulators/linux-ePSXe/Makefile
new file mode 100644
index 000000000000..503ce13c50cf
--- /dev/null
+++ b/emulators/linux-ePSXe/Makefile
@@ -0,0 +1,88 @@
+# New ports collection makefile for: linux-ePSXe
+# Date created: 21 Dec 2002
+# Whom: Jean-Yves Lefort <jylefort@brutele.be>
+#
+# $FreeBSD$
+#
+
+PORTNAME= epsxe
+PORTVERSION= 1.6.0
+CATEGORIES= emulators linux
+MASTER_SITES= http://www.epsxe.com/files/
+PKGNAMEPREFIX= linux-
+DISTNAME= epsxe160lin
+
+MAINTAINER= jylefort@brutele.be
+COMMENT= A Sony Playstation emulator (Linux version)
+
+# The binary is built against glibc 2.3, so we need linux_base-8.
+RUN_DEPENDS= ${LINUXBASE}/lib/libc-2.3.2.so:${PORTSDIR}/emulators/linux_base-8 \
+ ${LINUXBASE}/usr/X11R6/lib/libX11.so.6:${PORTSDIR}/x11/linux-XFree86-libs \
+ ${LINUXBASE}/usr/lib/libgtk-1.2.so.0:${PORTSDIR}/x11-toolkits/linux-gtk
+
+USE_X_PREFIX= yes
+USE_ZIP= yes
+NO_WRKSUBDIR= yes
+
+BROKEN= "Inconsistent dependencies"
+DEPRECATED= "This port will be removed on April 16 if it is still broken at that time."
+
+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/epsxe
+
+PSEMUPRO_PLUGINS_DIR= ${LOCALBASE}/lib/psemupro/plugins
+PSEMUPRO_CFGBINS_DIR= ${LOCALBASE}/libexec/psemupro/cfg
+PSEMUPRO_CFGFILES_DIR= ${LOCALBASE}/share/psemupro/cfg
+
+do-build:
+ ${MKDIR} ${WRKSRC}/FreeBSD
+ ${SED} \
+ -e "s,@EPSXE@,${EPSXE},g" \
+ -e "s,@DATADIR@,${DATADIR},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}/epsxe-install.in \
+ >${WRKSRC}/FreeBSD/epsxe-install
+
+do-install:
+ ${MKDIR} ${PREFIX}/bin
+ ${INSTALL_SCRIPT} \
+ ${FILESDIR}/epsxe \
+ ${WRKSRC}/FreeBSD/epsxe-install \
+ ${PREFIX}/bin
+
+ ${MKDIR} ${PREFIX}/libexec
+ ${INSTALL_PROGRAM} ${WRKSRC}/epsxe ${EPSXE}
+
+ ${MKDIR} ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/keycodes.lst ${DATADIR}
+
+ ${MKDIR} ${DATADIR}/cheats
+ ${INSTALL_DATA} \
+ ${WRKSRC}/cheats/breath_of_fire_4_usa.cht \
+ ${WRKSRC}/cheats/chrono_cross_ntsc.cht \
+ ${WRKSRC}/cheats/tarzan_pal.cht \
+ ${DATADIR}/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..e49682a9eae4
--- /dev/null
+++ b/emulators/linux-ePSXe/distinfo
@@ -0,0 +1,2 @@
+MD5 (epsxe160lin.zip) = 32704cfc77939b9a1bd047f22b70eca2
+SIZE (epsxe160lin.zip) = 180407
diff --git a/emulators/linux-ePSXe/files/epsxe b/emulators/linux-ePSXe/files/epsxe
new file mode 100644
index 000000000000..b50f5f52c02a
--- /dev/null
+++ b/emulators/linux-ePSXe/files/epsxe
@@ -0,0 +1,15 @@
+#!/bin/sh
+# epsxe - ePSXe launcher
+#
+# (c) 2002-2003 Jean-Yves Lefort.
+# All rights reserved.
+
+USERDIR=$HOME/.epsxe
+
+if [ ! -x $USERDIR/epsxe ]; then
+ echo "$USERDIR/epsxe not found or not executable."
+ echo "You should run epsxe-install."
+ exit 1
+fi
+
+cd $USERDIR && exec ./epsxe "$@"
diff --git a/emulators/linux-ePSXe/files/epsxe-install.in b/emulators/linux-ePSXe/files/epsxe-install.in
new file mode 100644
index 000000000000..5c0e81eee4c8
--- /dev/null
+++ b/emulators/linux-ePSXe/files/epsxe-install.in
@@ -0,0 +1,72 @@
+#!/bin/sh
+# epsxe-install - ePSXe user installation
+#
+# (c) 2002-2003 Jean-Yves Lefort.
+# All rights reserved.
+
+EPSXE=@EPSXE@
+DATADIR=@DATADIR@
+PSEMUPRO_PLUGINS_DIR=@PSEMUPRO_PLUGINS_DIR@
+PSEMUPRO_CFGBINS_DIR=@PSEMUPRO_CFGBINS_DIR@
+PSEMUPRO_CFGFILES_DIR=@PSEMUPRO_CFGFILES_DIR@
+
+USERDIR=$HOME/.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 $DATADIR/$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-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..44c607c3a89c
--- /dev/null
+++ b/emulators/linux-ePSXe/pkg-message
@@ -0,0 +1,25 @@
+-------------------------------------------------------------------------------
+You should now log into your normal user account and issue a
+
+ 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
+
+ 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..a02f45649850
--- /dev/null
+++ b/emulators/linux-ePSXe/pkg-plist
@@ -0,0 +1,14 @@
+bin/epsxe
+bin/epsxe-install
+libexec/epsxe
+share/epsxe/keycodes.lst
+share/epsxe/cheats/breath_of_fire_4_usa.cht
+share/epsxe/cheats/chrono_cross_ntsc.cht
+share/epsxe/cheats/tarzan_pal.cht
+%%PORTDOCS%%%%DOCSDIR%%/epsxe_en.txt
+%%PORTDOCS%%%%DOCSDIR%%/epsxe_linux_en.txt
+%%PORTDOCS%%%%DOCSDIR%%/epsxe_linux_sp.txt
+%%PORTDOCS%%%%DOCSDIR%%/epsxe_sp.txt
+@dirrm share/epsxe/cheats
+@dirrm share/epsxe
+%%PORTDOCS%%@dirrm %%DOCSDIR%%