# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-emulation/pcsx/pcsx-1.4.ebuild,v 1.5 2003/05/27 06:41:26 msterret Exp $ S=${WORKDIR} DESCRIPTION="Playstation emulator" HOMEPAGE="http://www.pcsx.net/" SRC_URI="http://www.pcsx.net/downloads/PcsxSrc-${PV}.zip" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" IUSE="opengl" use opengl && GLDEPEND="app-emulation/psemu-gpupetemesagl" use opengl || GLDEPEND="app-emulation/psemu-peopssoftgpu" 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 ${GLDEPEND}" src_compile() { cd PcsxSrc/Linux # Change some defaults... sed -i \ -e 's:Plugin/:/usr/lib/psemu/plugins/:' \ -e 's:Bios/:/usr/lib/psemu/bios/:' \ -e 's:Pcsx.cfg:~/.pcsx/config:' \ LnxMain.c || die "sed LnxMain.c failed" for f in `find ${WORKDIR} -regex '.*\.[ch]'` ; do sed -i -e 's/ $//' ${f} || die "sed ${f} failed" done emake CC=gcc OPTIMIZE="${CFLAGS} -fPIC -fomit-frame-pointer -finline-functions -ffast-math" || die "emake failed" mv pcsx pcsx.bin } src_install() { dobin PcsxSrc/Linux/pcsx.bin dobin ${FILESDIR}/pcsx dodoc PcsxSrc/Docs/* }