# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/app-emulation/mupen64/mupen64-0.0.90a.ebuild,v 1.1 2002/12/26 20:41:02 rphillips Exp $ S=${WORKDIR}/${PN} S2=${WORKDIR}/emu64 DESCRIPTION="A Nintendo 64 (N64) emulator" SRC_URI="http://mupen64.emulation64.com/mupen64_linux_0_0_90a.tgz" HOMEPAGE="http://mupen64.emulation64.com/" SLOT="0" LICENSE="GPL-2" KEYWORDS="x86 -ppc -sparc -sparc64" DEPEND="=x11-libs/gtk+-1.2* media-libs/libsdl virtual/glu virtual/opengl" src_compile() { if [ -f ${DISTDIR}/mupen64_0_0_90_src.zip ]; then cd ${WORKDIR} unzip ${DISTDIR}/mupen64_0_0_90_src.zip cd ${S2} mv Makefile Makefile.old sed -e "s:CC.*=.*:CC=gcc -DX86 ${CFLAGS} -fomit-frame-pointer -funroll-loops -ffast-math -Wall:" Makefile.old > Makefile emake else einfo "For a small speed up grab the mupen64 source." einfo "from the forums for mupen64" einfo "and put the file (mupen64_0_0_90_src.zip) in ${DISTDIR}" fi } src_install () { cd ${S} dodir /opt/${PN} /opt/${PN}/plugins insinto /usr/lib/${PN}/plugins doins plugins/* dodoc *.txt README.OBSIDIAN dohtml index.html exeinto /opt/${PN}/ if [ -d ${S2} ]; then cd ${S2} fi doexe mupen64 dobin ${FILESDIR}/mupen64 } pkg_postinst() { einfo "Please note that mupen64 currectly only works in pure interpreter mode." einfo "For best results, use the TR64 gfx plugin and emerge the blight_input plugin." }