Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Dec 2002 07:50:05 -0800 (PST)
From:      Jean-Yves Lefort <jylefort@brutele.be>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/46240: New port: emulators/ePSXe
Message-ID:  <200212141550.gBEFo5PQ000824@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/46240; it has been noted by GNATS.

From: Jean-Yves Lefort <jylefort@brutele.be>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: ports/46240: New port: emulators/ePSXe
Date: Sat, 14 Dec 2002 16:43:05 +0100

 Here's an improved version of the initial submission; since the port
 hasn't been committed yet, I choose to send this as a shell archive
 rather than a diff.
 
 Regards,
 Jean-Yves Lefort
 
 # This is a shell archive.  Save it in a file, remove anything before
 # this line, and then unpack it by entering "sh file".  Note, it may
 # create directories; files and directories will be owned by you and
 # have default permissions.
 #
 # This archive contains:
 #
 #	ePSXe
 #	ePSXe/Makefile
 #	ePSXe/distinfo
 #	ePSXe/pkg-comment
 #	ePSXe/pkg-descr
 #	ePSXe/pkg-message
 #	ePSXe/pkg-plist
 #	ePSXe/files
 #	ePSXe/files/epsxe
 #	ePSXe/files/epsxe_install.in
 #
 echo c - ePSXe
 mkdir -p ePSXe > /dev/null 2>&1
 echo x - ePSXe/Makefile
 sed 's/^X//' >ePSXe/Makefile << 'END-of-ePSXe/Makefile'
 X# New ports collection makefile for:	ePSXe
 X# Date created:			13 Dec 2002
 X# Whom:				Jean-Yves Lefort <jylefort@brutele.be>
 X#
 X# $FreeBSD$
 X#
 X
 XPORTNAME=	ePSXe
 XPORTVERSION=	1.5.2
 XCATEGORIES=	emulators linux
 XMASTER_SITES=	http://download.epsxe.com/files/
 XDISTNAME=	epsxe152lin
 X
 XMAINTAINER=	jylefort@brutele.be
 X
 XRUN_DEPENDS=	${LINUXBASE}/usr/lib/libgtk-1.2.so.0:${PORTSDIR}/x11-toolkits/linux-gtk
 X
 XUSE_ZIP=	yes
 XNO_WRKSUBDIR=	yes
 X
 XONLY_FOR_ARCHS=	i386
 X
 X# Linux binary should not be stripped by INSTALL_PROGRAM
 X# because as a side effect it brands the binary as FreeBSD.
 XSTRIP=
 X
 X.include <bsd.port.pre.mk>
 X
 XLIBDIR=		${PREFIX}/lib/ePSXe
 X
 Xdo-build:
 X	${MKDIR} ${WRKSRC}/FreeBSD
 X	${SED} -e "s,@LIBDIR@,${LIBDIR},g" \
 X		${FILESDIR}/epsxe_install.in >${WRKSRC}/FreeBSD/epsxe_install
 X
 Xdo-install:
 X	${MKDIR} ${PREFIX}/bin
 X	${INSTALL_SCRIPT} \
 X		${FILESDIR}/epsxe \
 X		${WRKSRC}/FreeBSD/epsxe_install \
 X		${PREFIX}/bin
 X
 X	${MKDIR} ${LIBDIR}
 X	${INSTALL_PROGRAM} ${WRKSRC}/epsxe ${LIBDIR}
 X	${INSTALL_DATA} ${WRKSRC}/keycodes.lst ${LIBDIR}
 X
 X	${MKDIR} ${LIBDIR}/cheats
 X	${INSTALL_DATA} \
 X		${WRKSRC}/cheats/breath_of_fire_4_usa.cht \
 X		${WRKSRC}/cheats/chrono_cross_ntsc.cht \
 X		${WRKSRC}/cheats/tarzan_pal.cht \
 X		${LIBDIR}/cheats
 X
 X.if !defined(NOPORTDOCS)
 X	${MKDIR} ${DOCSDIR}
 X	${INSTALL_DATA} \
 X		${WRKSRC}/docs/epsxe_en.txt \
 X		${WRKSRC}/docs/epsxe_linux_en.txt \
 X		${WRKSRC}/docs/epsxe_linux_sp.txt \
 X		${WRKSRC}/docs/epsxe_sp.txt \
 X		${DOCSDIR}
 X.endif
 X
 Xpost-install:
 X	@${CAT} ${PKGMESSAGE}
 X
 X.include <bsd.port.post.mk>
 END-of-ePSXe/Makefile
 echo x - ePSXe/distinfo
 sed 's/^X//' >ePSXe/distinfo << 'END-of-ePSXe/distinfo'
 XMD5 (epsxe152lin.zip) = 5834f34cb904b08d95abda057eff3981
 END-of-ePSXe/distinfo
 echo x - ePSXe/pkg-comment
 sed 's/^X//' >ePSXe/pkg-comment << 'END-of-ePSXe/pkg-comment'
 XA Sony Playstation emulator
 END-of-ePSXe/pkg-comment
 echo x - ePSXe/pkg-descr
 sed 's/^X//' >ePSXe/pkg-descr << 'END-of-ePSXe/pkg-descr'
 XePSXe is a Sony Playstation emulator. It takes advantage of the
 Xpopular PSEmu Pro plugin system.
 X
 XThis is the binary Linux version.
 X
 XWWW: http://www.epsxe.com/
 X
 X- Jean-Yves Lefort
 Xjylefort@brutele.be
 END-of-ePSXe/pkg-descr
 echo x - ePSXe/pkg-message
 sed 's/^X//' >ePSXe/pkg-message << 'END-of-ePSXe/pkg-message'
 X-------------------------------------------------------------------------------
 XYou should now log into your normal user account and issue a
 X
 X	epsxe_install
 X
 Xin order to create and populate ~/.ePSXe, needed to run the program.
 X
 XTo do anything useful with the emulator, you'll need a GPU and a SPU
 Xplugin (the Ports Collection contains a number of those), and a
 XPlaystation BIOS image. From the port's documentation:
 X
 X	"During testing we found out that the scph1001.bin and
 X	 scph7502.bin BIOS are compatible, but the scph1000.bin
 X	 won't work."
 X
 XNote that you may only be in possession of the copyrighted BIOS if
 Xyou're legally entitled to do so.
 X-------------------------------------------------------------------------------
 END-of-ePSXe/pkg-message
 echo x - ePSXe/pkg-plist
 sed 's/^X//' >ePSXe/pkg-plist << 'END-of-ePSXe/pkg-plist'
 Xbin/epsxe
 Xbin/epsxe_install
 Xlib/ePSXe/epsxe
 Xlib/ePSXe/keycodes.lst
 Xlib/ePSXe/cheats/breath_of_fire_4_usa.cht
 Xlib/ePSXe/cheats/chrono_cross_ntsc.cht
 Xlib/ePSXe/cheats/tarzan_pal.cht
 X%%PORTDOCS%%share/doc/ePSXe/epsxe_en.txt
 X%%PORTDOCS%%share/doc/ePSXe/epsxe_linux_en.txt
 X%%PORTDOCS%%share/doc/ePSXe/epsxe_linux_sp.txt
 X%%PORTDOCS%%share/doc/ePSXe/epsxe_sp.txt
 X@dirrm lib/ePSXe/cheats
 X@dirrm lib/ePSXe
 X%%PORTDOCS%%@dirrm share/doc/ePSXe
 END-of-ePSXe/pkg-plist
 echo c - ePSXe/files
 mkdir -p ePSXe/files > /dev/null 2>&1
 echo x - ePSXe/files/epsxe
 sed 's/^X//' >ePSXe/files/epsxe << 'END-of-ePSXe/files/epsxe'
 X#!/bin/sh
 X# epsxe - ePSXe wrapper
 X#
 X# (c) 2002 Jean-Yves Lefort.
 X# All rights reserved.
 X
 XUSERDIR=$HOME/.ePSXe
 X
 Xif [ ! -x $USERDIR/epsxe ]; then
 X    echo "$USERDIR/epsxe not found or not executable"
 X    echo "Please run epsxe_install"
 X    exit 1
 Xfi
 X
 Xcd $USERDIR && exec ./epsxe "$@"
 END-of-ePSXe/files/epsxe
 echo x - ePSXe/files/epsxe_install.in
 sed 's/^X//' >ePSXe/files/epsxe_install.in << 'END-of-ePSXe/files/epsxe_install.in'
 X#!/bin/sh
 X# epsxe_install - ePSXe user installation
 X#
 X# (c) 2002 Jean-Yves Lefort.
 X# All rights reserved.
 X
 XLIBDIR=@LIBDIR@
 XUSERDIR=$HOME/.ePSXe
 X
 Xcond_mkdir () {
 X    if [ -d $1 ]; then
 X	echo "Directory $1 already exists, not created"
 X    else
 X	echo "Creating directory $1"
 X	mkdir -p $1
 X    fi
 X}
 X
 Xcond_ln () {
 X    if [ -e $2 ]; then
 X	echo "File $2 already exists, not replaced"
 X    else
 X	echo "Symlinking $1 to $2"
 X	ln -sf $1 $2
 X    fi
 X}
 X
 Xecho "Performing user installation of ePSXe"
 Xecho
 X
 Xfor d in		\
 X    $USERDIR		\
 X    $USERDIR/cfg	\
 X    $USERDIR/cheats	\
 X    $USERDIR/memcards	\
 X    $USERDIR/patches	\
 X    $USERDIR/plugins	\
 X    $USERDIR/snap	\
 X    $USERDIR/sstates; do
 X    cond_mkdir $d
 Xdone
 X
 Xfor f in				\
 X    epsxe				\
 X    keycodes.lst			\
 X    cheats/breath_of_fire_4_usa.cht	\
 X    cheats/chrono_cross_ntsc.cht	\
 X    cheats/tarzan_pal.cht; do
 X    cond_ln $LIBDIR/$f $USERDIR/$f
 Xdone
 X
 Xecho
 Xecho "User installation finished. Type epsxe to run the emulator"
 END-of-ePSXe/files/epsxe_install.in
 exit
 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200212141550.gBEFo5PQ000824>