Index: head/emulators/Makefile =================================================================== --- head/emulators/Makefile (revision 118778) +++ head/emulators/Makefile (revision 118779) @@ -1,117 +1,118 @@ # $FreeBSD$ # COMMENT = Emulators for other operating systems SUBDIR += adamem SUBDIR += aftp SUBDIR += atari800 SUBDIR += basiliskII SUBDIR += bfe SUBDIR += bochs SUBDIR += bsvc SUBDIR += cinc SUBDIR += cingb SUBDIR += cpmemu SUBDIR += cpmtools SUBDIR += darcnes SUBDIR += dgen-sdl SUBDIR += dlx SUBDIR += dosbox SUBDIR += doscmd SUBDIR += extract-xiso SUBDIR += fceu SUBDIR += fmsx SUBDIR += frodo SUBDIR += fuse SUBDIR += gbe SUBDIR += generator SUBDIR += gngb SUBDIR += gnuboy SUBDIR += grustibus SUBDIR += gsnes9x SUBDIR += gxmame SUBDIR += hatari SUBDIR += hercules SUBDIR += hfs SUBDIR += hfsutils SUBDIR += ia64sim SUBDIR += ines SUBDIR += its SUBDIR += klh10 SUBDIR += kmamerun SUBDIR += lib765 SUBDIR += libspectrum SUBDIR += libvm68k SUBDIR += linux-geepee32 SUBDIR += linux-mupen64 SUBDIR += linux-peops-softgpu SUBDIR += linux-peops-spu SUBDIR += linux-pete-mesagpu SUBDIR += linux-vmware-toolbox2 SUBDIR += linux-vmware-toolbox4 SUBDIR += linux-winetools SUBDIR += linux_base SUBDIR += linux_base-6 SUBDIR += linux_base-8 SUBDIR += linux_base-debian SUBDIR += linux_base-gentoo-stage1 SUBDIR += mastergear SUBDIR += minivmac SUBDIR += mips64emul SUBDIR += mtools + SUBDIR += mupen64-base SUBDIR += osf1_base SUBDIR += p-interp SUBDIR += pcemu SUBDIR += pearpc SUBDIR += prodosemu SUBDIR += psim-freebsd SUBDIR += qcl SUBDIR += qemu SUBDIR += quasi88 SUBDIR += raine SUBDIR += rtc SUBDIR += sim SUBDIR += sim6811 SUBDIR += ski SUBDIR += snes9express SUBDIR += snes9x SUBDIR += spim SUBDIR += stella SUBDIR += stonx SUBDIR += svr4_base SUBDIR += tkhfs SUBDIR += tuxnes SUBDIR += twin SUBDIR += uae SUBDIR += vMac SUBDIR += vba SUBDIR += vgb SUBDIR += vgb-bin SUBDIR += vgba-bin SUBDIR += vice SUBDIR += visualos SUBDIR += vmips SUBDIR += vmsbackup SUBDIR += vmware-guestd3 SUBDIR += vmware-guestd4 SUBDIR += vmware-tools2 SUBDIR += vmware-tools3 SUBDIR += vmware-tools4 SUBDIR += vmware2 SUBDIR += vmware3 SUBDIR += vpce SUBDIR += vx68k SUBDIR += vxtools SUBDIR += wine SUBDIR += x48 SUBDIR += xbraitenberg SUBDIR += xgs SUBDIR += xmame SUBDIR += xmess SUBDIR += xsystem35 SUBDIR += xzx SUBDIR += yape SUBDIR += zsnes .include Property changes on: head/emulators/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.138 \ No newline at end of property +1.139 \ No newline at end of property Index: head/emulators/mupen64-base/Makefile =================================================================== --- head/emulators/mupen64-base/Makefile (nonexistent) +++ head/emulators/mupen64-base/Makefile (revision 118779) @@ -0,0 +1,74 @@ +# New ports collection makefile for: mupen64-base +# Date created: 10.Aug 2004 +# Whom: dirk.meyer@dinoex.sub.org +# +# $FreeBSD$ +# + +PORTNAME= mupen64 +PORTVERSION= 0.4 +CATEGORIES+= emulators +MASTER_SITES= http://mupen64.emulation64.com/files/${PORTVERSION}/ +PKGNAMESUFFIX= -base +DISTNAME= ${PORTNAME}_src-${PORTVERSION} + +MAINTAINER?= tlp@LiquidX.org +COMMENT= Mupen64 is a Nintendo 64 emulator + +USE_BZIP2= yes +HAS_CONFIGURE= yes +USE_REINPLACE= yes +USE_GMAKE= yes +USE_SDL= sdl +USE_GNOME= gtk12 +WRKSRC= ${WRKDIR}/emu64 +USE_GCC= 3.4 +ONLY_FOR_ARCHS= i386 + +DOCFILES= readme.pdf readme.ps +FIXME1= main/vcr.c memory/dma.c r4300/r4300.c r4300/recomp.c \ + r4300/x86/assemble.c +FIXME2= r4300/interupt.c main/gui_gtk/main_gtk.c + +pre-configure: + @${SED} -e 's,%%PREFIX%%,${PREFIX},g' ${FILESDIR}/mupen64.in \ + > ${WRKDIR}/mupen64 +.for i in ${FIXME1} + ${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/${i} +.endfor +.for i in ${FIXME2} + ${REINPLACE_CMD} -e 's|SDL/SDL.h|SDL.h|' ${WRKSRC}/${i} +.endfor + ${REINPLACE_CMD} \ + -e 's|sdl-config|${SDL_CONFIG}|g' ${WRKSRC}/configure + ${REINPLACE_CMD} \ + -e 's|gtk-config|${GTK_CONFIG}|' \ + -e 's|-L/usr/X11R6/lib -lSDL -lGL -lpthread|`${SDL_CONFIG} --libs`|' \ + -e 's|-ldl|${LDFLAGS}|' \ + ${WRKSRC}/Makefile + +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/whatsnew.txt ${DOCSDIR}/whatsnew.txt +.for i in ${DOCFILES} + ${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR}/ +.endfor +.endif + ${INSTALL_PROGRAM} ${WRKSRC}/mupen64 ${PREFIX}/libexec/mupen64 + ${INSTALL_SCRIPT} ${WRKDIR}/mupen64 ${PREFIX}/bin/mupen64 + @${CAT} ${PKGMESSAGE} + +.include + +CFLAGS+= `${SDL_CONFIG} --cflags` +CFLAGS+= -O3 -fomit-frame-pointer -funroll-loops -ffast-math -Wall -pipe +CFLAGS+= -DX86 -mcpu=athlon + +MAKE_ARGS+= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" + +.if ${OSVERSION} < 500000 +LDFLAGS+= -L/usr/lib -lcipher +.endif + +.include Property changes on: head/emulators/mupen64-base/Makefile ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Index: head/emulators/mupen64-base/distinfo =================================================================== --- head/emulators/mupen64-base/distinfo (nonexistent) +++ head/emulators/mupen64-base/distinfo (revision 118779) @@ -0,0 +1,2 @@ +MD5 (mupen64_src-0.4.tar.bz2) = 322f2226f4f67e24868592c6b441e76a +SIZE (mupen64_src-0.4.tar.bz2) = 1871148 Property changes on: head/emulators/mupen64-base/distinfo ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/emulators/mupen64-base/files/mupen64.in =================================================================== --- head/emulators/mupen64-base/files/mupen64.in (nonexistent) +++ head/emulators/mupen64-base/files/mupen64.in (revision 118779) @@ -0,0 +1,64 @@ +#!/bin/sh +# mupen64 - Mupen64 wrapper script +# +# 2004 Travis Poppe + +USERDIR=$HOME/.mupen64 + +if [ ! -x $USERDIR/mupen64 ]; then + echo "$USERDIR/mupen64 not found or not executable." + echo "Setting up Mupen64 for you..." + rm -rf $USERDIR + mkdir $USERDIR + mkdir $USERDIR/lang + mkdir $USERDIR/save + mkdir $USERDIR/roms + mkdir $USERDIR/plugins + cd $USERDIR + ln -s %%PREFIX%%/libexec/mupen64 ./mupen64 + cp %%PREFIX%%/share/mupen64/mupen64.ini ./mupen64.ini + chmod +w ./mupen64.ini + ln -s %%PREFIX%%/share/mupen64/lang/* lang/ + +for source in %%PREFIX%%/share/mupen64/*.conf +do + # source must exist as a plain file + if test ! -f "${source}" + then + continue + fi + target="${USERDIR}/${source##*/}" + cp "${source}" "${target}" + chmod +w "${target}" +done + +for source in %%PREFIX%%/share/mupen64/plugins/*.so +do + # source must exist as a plain file + if test ! -f "${source}" + then + continue + fi + target="${USERDIR}/plugins/${source##*/}" + ln -s "${source}" "${target}" +done + +for source in %%PREFIX%%/share/mupen64/plugins/*.ini +do + # source must exist as a plain file + if test ! -f "${source}" + then + continue + fi + target="${USERDIR}/plugins/${source##*/}" + cp "${source}" "${target}" + chmod +w "${target}" +done + + echo "Done!" + echo "" + echo "Remember to configure your plugins!" + echo "" +fi + +cd $USERDIR && exec ./mupen64 Property changes on: head/emulators/mupen64-base/files/mupen64.in ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/emulators/mupen64-base/files/patch-Makefile =================================================================== --- head/emulators/mupen64-base/files/patch-Makefile (nonexistent) +++ head/emulators/mupen64-base/files/patch-Makefile (revision 118779) @@ -0,0 +1,16 @@ +--- Makefile.orig Mon Jul 5 22:37:09 2004 ++++ Makefile Tue Aug 10 23:03:37 2004 +@@ -1,10 +1,10 @@ + #Makefile MUPEN64 for Linux + +-CC =gcc +-CXX =g++ ++CC ?=gcc ++CXX ?=g++ + + #CFLAGS =-DX86 -O3 -mpentium -Wall -DEMU64_DEBUG +-CFLAGS =-DX86 -O3 -fomit-frame-pointer -funroll-loops -ffast-math -mcpu=athlon -Wall -pipe ++#CFLAGS =-DX86 -O3 -fomit-frame-pointer -funroll-loops -ffast-math -mcpu=athlon -Wall -pipe + #CFLAGS =-DX86 -O3 -mcpu=pentium -Wall -g -pg + #CFLAGS =-DX86 -Wall -pipe -g3 -DEMU64_DEBUG + #CFLAGS =-DX86 -Wall -pipe -g -DEMU64_DEBUG -DCOMPARE_CORE Property changes on: head/emulators/mupen64-base/files/patch-Makefile ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/emulators/mupen64-base/files/patch-configure =================================================================== --- head/emulators/mupen64-base/files/patch-configure (nonexistent) +++ head/emulators/mupen64-base/files/patch-configure (revision 118779) @@ -0,0 +1,128 @@ +--- configure.orig Mon Jul 5 22:37:11 2004 ++++ configure Wed Aug 11 05:57:43 2004 +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/bin/sh + + if [ -z "$CC" ]; then + CC=gcc +@@ -8,7 +8,7 @@ + fi + + # check for a C compiler +-function check_cc() ++check_cc() + { + if [ ! -z "$CC" ]; then + if [ ! -x "`which "$CC"`" ]; then +@@ -23,8 +23,8 @@ + fi + fi + +- FILE="`tempfile`" +- OUTFILE="`tempfile`" ++ FILE="/tmp/mupen64.configure.1" ++ OUTFILE="/tmp/mupen64.configure.2" + echo "int main(void) { return 0; }" > "$FILE" + $CC -x "c" -o "$OUTFILE" "$FILE" 2>&1 | cat >>config.log + +@@ -51,7 +51,7 @@ + } + + # check for a C++ compiler +-function check_cxx() ++check_cxx() + { + if [ ! -z "$CXX" ]; then + if [ ! -x "`which "$CXX"`" ]; then +@@ -66,8 +66,8 @@ + fi + fi + +- FILE="`tempfile`" +- OUTFILE="`tempfile`" ++ FILE="/tmp/mupen64.configure.1" ++ OUTFILE="/tmp/mupen64.configure.2" + echo "int main(void) { return 0; }" > "$FILE" + $CXX -x "c++" -o "$OUTFILE" "$FILE" 2>&1 | cat >>config.log + +@@ -94,7 +94,7 @@ + } + + # check for libavifile +-function check_libavifile() ++check_libavifile() + { + echo "Checking avifile..." + +@@ -103,8 +103,8 @@ + exit 1 + fi + +- FILE="`tempfile`" +- OUTFILE="`tempfile`" ++ FILE="/tmp/mupen64.configure.1" ++ OUTFILE="/tmp/mupen64.configure.2" + echo "#include " > "$FILE" + echo "int main(void) { return 0; }" >> "$FILE" + $CXX -x "c++" -o "$OUTFILE" "$FILE" `avifile-config --libs` `avifile-config --cflags` 2>&1 | cat >>config.log +@@ -132,7 +132,7 @@ + } + + # check for libsdl +-function check_libsdl() ++check_libsdl() + { + echo "Checking SDL..." + +@@ -141,8 +141,8 @@ + exit 1 + fi + +- FILE="`tempfile`" +- OUTFILE="`tempfile`" ++ FILE="/tmp/mupen64.configure.1" ++ OUTFILE="/tmp/mupen64.configure.2" + echo "#include \"SDL.h\"" > "$FILE" + echo "#include " >> "$FILE" + echo "int main(void) { if (SDL_Init( 0 ) < 0) { printf( \"SDL_Init(): %s\\n\", SDL_GetError() ); return 1; } return 0; }" >> "$FILE" +@@ -189,7 +189,8 @@ + echo "Do you want to configure mupen64 to run in a user directory? (Answering no" + echo "will configure it for multi-users usage with the configuration stored in the" + echo "HOME directory)" +-read -p "(Y)es or (N)o [Default is: Yes]: " answer ++#read -p "(Y)es or (N)o [Default is: Yes]: " answer ++answer="No" + + if [ -n "$answer" ] + then +@@ -197,7 +198,8 @@ + then + + echo "In which prefix do u want to install mupen64 ? [Default: /usr/local/] " +- read answer ++# read answer ++ answer="$PREFIX" + + if [ -z $answer ] + then +@@ -211,7 +213,8 @@ + # ---- VCR + echo + echo "Do you want to enable VCR support (requires avifile and a C++ compiler)?" +-read -p "(Y)es or (N)o [Default is: No]: " answer ++# read -p "(Y)es or (N)o [Default is: No]: " answer ++answer="No" + + if [ -n "$answer" ] + then +@@ -273,7 +276,8 @@ + if [ "$CONFIG_CHANGED" -eq "0" ]; then + echo "Note: The configuration has not been changed since the last time it was written." + fi +-read -p "(Y)es or (N)o [Default is: No]: " answer ++#read -p "(Y)es or (N)o [Default is: No]: " answer ++answer="No" + + if [ -n "$answer" ] + then Property changes on: head/emulators/mupen64-base/files/patch-configure ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/emulators/mupen64-base/files/patch-main_gtk.c =================================================================== --- head/emulators/mupen64-base/files/patch-main_gtk.c (nonexistent) +++ head/emulators/mupen64-base/files/patch-main_gtk.c (revision 118779) @@ -0,0 +1,30 @@ +--- main/gui_gtk/main_gtk.c.orig Tue Aug 10 22:44:44 2004 ++++ main/gui_gtk/main_gtk.c Tue Aug 10 22:54:47 2004 +@@ -1783,16 +1783,19 @@ + printf( "SIGSEGV in core thread caught:\n" ); + printf( "\terrno = %d (%s)\n", info->si_errno, strerror( info->si_errno ) ); + printf( "\taddress = 0x%08X\n", (unsigned int)info->si_addr ); ++#ifdef SEGV_MAPERR + switch( info->si_code ) + { + case SEGV_MAPERR: printf( " address not mapped to object\n" ); break; + case SEGV_ACCERR: printf( " invalid permissions for mapped object\n" ); break; + } ++#endif + break; + case SIGILL: + printf( "SIGILL in core thread caught:\n" ); + printf( "\terrno = %d (%s)\n", info->si_errno, strerror( info->si_errno ) ); + printf( "\taddress = 0x%08X\n", (unsigned int)info->si_addr ); ++#ifdef ILL_ILLOPC + switch( info->si_code ) + { + case ILL_ILLOPC: printf( "\tillegal opcode\n" ); break; +@@ -1804,6 +1807,7 @@ + case ILL_COPROC: printf( "\tcoprocessor error\n" ); break; + case ILL_BADSTK: printf( "\tinternal stack error\n" ); break; + } ++#endif + break; + case SIGFPE: + printf( "SIGFPE in core thread caught:\n" ); Property changes on: head/emulators/mupen64-base/files/patch-main_gtk.c ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/emulators/mupen64-base/files/patch-plugin.c =================================================================== --- head/emulators/mupen64-base/files/patch-plugin.c (nonexistent) +++ head/emulators/mupen64-base/files/patch-plugin.c (revision 118779) @@ -0,0 +1,10 @@ +--- main/plugin.c.orig Mon Jul 5 22:37:09 2004 ++++ main/plugin.c Tue Aug 10 22:39:28 2004 +@@ -33,6 +33,7 @@ + #include + #include + #include ++#include + + #include "winlnxdefs.h" + #include "plugin.h" Property changes on: head/emulators/mupen64-base/files/patch-plugin.c ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/emulators/mupen64-base/pkg-descr =================================================================== --- head/emulators/mupen64-base/pkg-descr (nonexistent) +++ head/emulators/mupen64-base/pkg-descr (revision 118779) @@ -0,0 +1,15 @@ +Mupen64 base +- +Mupen64 is a highly portable Nintendo 64 emulator. It has been developed +on/for Linux originally but has already been ported successfully to other +operating systems. The program can easily be ported to all operating systems +supported by the SDL library. + +In its current state, the emulator is highly compatible and uses a plugin +system. With the correct plugins ("correct" can be computer dependent), it +can achieve nearly perfect graphics and sound in many games. + +WWW: http://mupen64.emulation64.com/ + +- Travis Poppe +tlp@liquidx.org Property changes on: head/emulators/mupen64-base/pkg-descr ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/emulators/mupen64-base/pkg-message =================================================================== --- head/emulators/mupen64-base/pkg-message (nonexistent) +++ head/emulators/mupen64-base/pkg-message (revision 118779) @@ -0,0 +1,9 @@ +------------------------------------------------------------------------------- +If you have installed/upgraded any new plugins or are upgrading from a previous +version of Mupen64, please note that in order for these changes to take effect, +you -must- backup and then remove ~/.mupen64 first. After you have removed the +directory, run 'mupen64' to re-create it. Then, manually copy back your save +files/other data you need from the backup if necessary. + +Enjoy! +------------------------------------------------------------------------------- Property changes on: head/emulators/mupen64-base/pkg-message ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/emulators/mupen64-base/pkg-plist =================================================================== --- head/emulators/mupen64-base/pkg-plist (nonexistent) +++ head/emulators/mupen64-base/pkg-plist (revision 118779) @@ -0,0 +1,25 @@ +bin/mupen64 +libexec/mupen64 +share/mupen64/doc/compile.sh +share/mupen64/doc/readme.dvi +share/mupen64/doc/readme.pdf +share/mupen64/doc/readme.latex +share/mupen64/doc/readme.ps +share/mupen64/lang/french.lng +share/mupen64/lang/pt_BR.lng +share/mupen64/lang/german.lng +share/mupen64/lang/spanish.lng +share/mupen64/lang/dutch.lng +share/mupen64/lang/italian.lng +share/mupen64/lang/english.lng +share/mupen64/lang/catalan.lng +share/mupen64/mupen64.ini +share/mupen64/plugins/empty +@dirrm share/mupen64/plugins +@dirrm share/mupen64/lang +@dirrm share/mupen64/doc +@dirrm share/mupen64 +%%PORTDOCS%%%%DOCSDIR%%/whatsnew.txt +%%PORTDOCS%%%%DOCSDIR%%/readme.pdf +%%PORTDOCS%%%%DOCSDIR%%/readme.ps +%%PORTDOCS%%@dirrm %%DOCSDIR%% Property changes on: head/emulators/mupen64-base/pkg-plist ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property