Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Sep 2004 19:57:36 -0600
From:      Travis Poppe <tlp@LiquidX.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/71895: [New Port] emulators/mupen64* - A nintendo 64 emulatorwith required plugins.
Message-ID:  <20040918195736.4d0694f5@maya.liquidx.org>
Resent-Message-ID: <200409190200.i8J20jfM099867@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         71895
>Category:       ports
>Synopsis:       [New Port] emulators/mupen64* - A nintendo 64 emulator
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 19 02:00:45 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Travis Poppe <tlp@LiquidX.org>
>Release:        
>Organization:
>Environment:
>Description:
emulators/mupen64*

The following sh archive contains all 9 port skeletons that make up the
entire mupen64 set. The 'mupen64' port is a 'meta-port' that installs
mupen64-base and all the plugins to make a full distribution. 

Please remove my linux-mupen64 port when this is committed if it has not
been removed already! 

I'd like to give a big thanks to Dirk Meyer. Without him, I would have
never completed porting. :-)
>How-To-Repeat:
>Fix:
# 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:
#
#	mupen64
#	mupen64/Makefile
#	mupen64/pkg-descr
#	mupen64/pkg-message
#	mupen64-base
#	mupen64-base/files
#	mupen64-base/files/patch-configure
#	mupen64-base/files/patch-Makefile
#	mupen64-base/files/patch-main_gtk.c
#	mupen64-base/files/patch-plugin.c
#	mupen64-base/files/mupen64.in
#	mupen64-base/Makefile
#	mupen64-base/distinfo
#	mupen64-base/pkg-descr
#	mupen64-base/pkg-plist
#	mupen64-base/pkg-message
#	mupen64-dummyaudio
#	mupen64-dummyaudio/files
#	mupen64-dummyaudio/files/patch-Makefile
#	mupen64-dummyaudio/Makefile
#	mupen64-dummyaudio/distinfo
#	mupen64-dummyaudio/pkg-descr
#	mupen64-dummyaudio/pkg-message
#	mupen64-input
#	mupen64-input/files
#	mupen64-input/files/patch-Makefile
#	mupen64-input/Makefile
#	mupen64-input/distinfo
#	mupen64-input/pkg-descr
#	mupen64-input/pkg-message
#	mupen64-rice
#	mupen64-rice/files
#	mupen64-rice/files/patch-DecodedMux.cpp
#	mupen64-rice/files/patch-Makefile
#	mupen64-rice/files/patch-OGLCombinerTNT2.cpp
#	mupen64-rice/files/patch-OGLExtCombiner.cpp
#	mupen64-rice/files/patch-unique.h
#	mupen64-rice/Makefile
#	mupen64-rice/distinfo
#	mupen64-rice/pkg-descr
#	mupen64-rice/pkg-message
#	mupen64-rsp
#	mupen64-rsp/files
#	mupen64-rsp/files/patch-Makefile
#	mupen64-rsp/Makefile
#	mupen64-rsp/distinfo
#	mupen64-rsp/pkg-descr
#	mupen64-rsp/pkg-message
#	mupen64-sdlaudio
#	mupen64-sdlaudio/files
#	mupen64-sdlaudio/files/patch-Makefile
#	mupen64-sdlaudio/Makefile
#	mupen64-sdlaudio/distinfo
#	mupen64-sdlaudio/pkg-descr
#	mupen64-sdlaudio/pkg-message
#	mupen64-sdlinput
#	mupen64-sdlinput/files
#	mupen64-sdlinput/files/patch-SDL_ttf.c
#	mupen64-sdlinput/Makefile
#	mupen64-sdlinput/distinfo
#	mupen64-sdlinput/pkg-descr
#	mupen64-sdlinput/pkg-message
#	mupen64-sound
#	mupen64-sound/files
#	mupen64-sound/files/patch-Makefile
#	mupen64-sound/Makefile
#	mupen64-sound/distinfo
#	mupen64-sound/pkg-message
#	mupen64-sound/pkg-descr
#
echo c - mupen64
mkdir -p mupen64 > /dev/null 2>&1
echo x - mupen64/Makefile
sed 's/^X//' >mupen64/Makefile << 'END-of-mupen64/Makefile'
X# New ports collection makefile for:    mupen64
X# Date created:         17.Sep 2004
X# Whom:                 dirk.meyer@dinoex.sub.org
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mupen64
XPORTVERSION=	0.4
XCATEGORIES+=	emulators
XMASTER_SITES=	# empty
XDISTFILES=	# empty
XEXTRACT_ONLY=	# empty
X
XMAINTAINER?=	tlp@LiquidX.org
XCOMMENT=	Mupen64 is a Nintendo 64 emulator with plugins
X
XRUN_DEPENDS+=	${LOCALBASE}/bin/mupen64:${PORTSDIR}/${PKGCATEGORY}/mupen64-base
XRUN_DEPENDS+=	${PLUGINDIR}/dummyaudio.so:${PORTSDIR}/${PKGCATEGORY}/mupen64-dummyaudio
XRUN_DEPENDS+=	${PLUGINDIR}/mupen64_audio.so:${PORTSDIR}/${PKGCATEGORY}/mupen64-sound
XRUN_DEPENDS+=	${PLUGINDIR}/jttl_audio.so:${PORTSDIR}/${PKGCATEGORY}/mupen64-sdlaudio
XRUN_DEPENDS+=	${PLUGINDIR}/mupen64_input.so:${PORTSDIR}/${PKGCATEGORY}/mupen64-input
XRUN_DEPENDS+=	${PLUGINDIR}/blight_input.so:${PORTSDIR}/${PKGCATEGORY}/mupen64-sdlinput
XRUN_DEPENDS+=	${PLUGINDIR}/ricedaedalus.so:${PORTSDIR}/${PKGCATEGORY}/mupen64-rice
XRUN_DEPENDS+=	${PLUGINDIR}/mupen64_hle_rsp_azimer.so:${PORTSDIR}/${PKGCATEGORY}/mupen64-rsp
X
XNO_MTREE=	yes
XNO_BUILD=	yes
X
Xdo-install:	# empty
X
XPLUGINDIR=	${LOCALBASE}/share/mupen64/plugins
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-mupen64/Makefile
echo x - mupen64/pkg-descr
sed 's/^X//' >mupen64/pkg-descr << 'END-of-mupen64/pkg-descr'
XMupen64 is a highly portable Nintendo 64 emulator. It has been developed 
Xon/for Linux originally but has already been ported successfully to other 
Xoperating systems. The program can easily be ported to all operating systems 
Xsupported by the SDL library.
X
XIn its current state, the emulator is highly compatible and uses a plugin 
Xsystem. With the correct plugins ("correct" can be computer dependent), it 
Xcan achieve nearly perfect graphics and sound in many games.
X
XWWW: http://mupen64.emulation64.com/
X
X- Travis Poppe
Xtlp@liquidx.org
END-of-mupen64/pkg-descr
echo x - mupen64/pkg-message
sed 's/^X//' >mupen64/pkg-message << 'END-of-mupen64/pkg-message'
X-------------------------------------------------------------------------------
XIf you have installed/upgraded any new plugins or are upgrading from a previous
Xversion of Mupen64, please note that in order for these changes to take effect,
Xyou -must- backup and then remove ~/.mupen64 first. After you have removed the
Xdirectory, run 'mupen64' to re-create it. Then, manually copy back your save 
Xfiles/other data you need from the backup if necessary.
X
XEnjoy!
X-------------------------------------------------------------------------------
END-of-mupen64/pkg-message
echo c - mupen64-base
mkdir -p mupen64-base > /dev/null 2>&1
echo c - mupen64-base/files
mkdir -p mupen64-base/files > /dev/null 2>&1
echo x - mupen64-base/files/patch-configure
sed 's/^X//' >mupen64-base/files/patch-configure << 'END-of-mupen64-base/files/patch-configure'
X--- configure.orig	Mon Jul  5 22:37:11 2004
X+++ configure	Wed Aug 11 05:57:43 2004
X@@ -1,4 +1,4 @@
X-#!/bin/bash
X+#!/bin/sh
X 
X if [ -z "$CC" ]; then
X   CC=gcc
X@@ -8,7 +8,7 @@
X fi
X 
X # check for a C compiler
X-function check_cc()
X+check_cc()
X {
X   if [ ! -z "$CC" ]; then
X     if [ ! -x "`which "$CC"`" ]; then
X@@ -23,8 +23,8 @@
X     fi
X   fi
X 
X-  FILE="`tempfile`"
X-  OUTFILE="`tempfile`"
X+  FILE="/tmp/mupen64.configure.1"
X+  OUTFILE="/tmp/mupen64.configure.2"
X   echo "int main(void) { return 0; }" > "$FILE"
X   $CC -x "c" -o "$OUTFILE" "$FILE" 2>&1 | cat >>config.log
X 
X@@ -51,7 +51,7 @@
X }
X 
X # check for a C++ compiler
X-function check_cxx()
X+check_cxx()
X {
X   if [ ! -z "$CXX" ]; then
X     if [ ! -x "`which "$CXX"`" ]; then
X@@ -66,8 +66,8 @@
X     fi
X   fi
X 
X-  FILE="`tempfile`"
X-  OUTFILE="`tempfile`"
X+  FILE="/tmp/mupen64.configure.1"
X+  OUTFILE="/tmp/mupen64.configure.2"
X   echo "int main(void) { return 0; }" > "$FILE"
X   $CXX -x "c++" -o "$OUTFILE" "$FILE" 2>&1 | cat >>config.log
X 
X@@ -94,7 +94,7 @@
X }
X 
X # check for libavifile
X-function check_libavifile()
X+check_libavifile()
X {
X   echo "Checking avifile..."
X 
X@@ -103,8 +103,8 @@
X     exit 1
X   fi
X 
X-  FILE="`tempfile`"
X-  OUTFILE="`tempfile`"
X+  FILE="/tmp/mupen64.configure.1"
X+  OUTFILE="/tmp/mupen64.configure.2"
X   echo "#include <avifile.h>" > "$FILE"
X   echo "int main(void) { return 0; }" >> "$FILE"
X   $CXX -x "c++" -o "$OUTFILE" "$FILE" `avifile-config --libs` `avifile-config --cflags` 2>&1 | cat >>config.log
X@@ -132,7 +132,7 @@
X }
X 
X # check for libsdl
X-function check_libsdl()
X+check_libsdl()
X {
X   echo "Checking SDL..."
X 
X@@ -141,8 +141,8 @@
X     exit 1
X   fi
X 
X-  FILE="`tempfile`"
X-  OUTFILE="`tempfile`"
X+  FILE="/tmp/mupen64.configure.1"
X+  OUTFILE="/tmp/mupen64.configure.2"
X   echo "#include \"SDL.h\"" > "$FILE"
X   echo "#include <stdio.h>" >> "$FILE"
X   echo "int main(void) { if (SDL_Init( 0 ) < 0) { printf( \"SDL_Init(): %s\\n\", SDL_GetError() ); return 1; } return 0; }" >> "$FILE"
X@@ -189,7 +189,8 @@
X echo "Do you want to configure mupen64 to run in a user directory? (Answering no"
X echo "will configure it for multi-users usage with the configuration stored in the"
X echo "HOME directory)"
X-read -p "(Y)es or (N)o [Default is: Yes]: " answer
X+#read -p "(Y)es or (N)o [Default is: Yes]: " answer
X+answer="No"
X 
X if [ -n "$answer" ]
X then
X@@ -197,7 +198,8 @@
X   then
X 
X     echo "In which prefix do u want to install mupen64 ? [Default: /usr/local/] "
X-    read answer
X+#    read answer
X+    answer="$PREFIX"
X 
X     if [ -z $answer ]
X     then
X@@ -211,7 +213,8 @@
X # ---- VCR
X echo
X echo "Do you want to enable VCR support (requires avifile and a C++ compiler)?"
X-read -p "(Y)es or (N)o [Default is: No]: " answer
X+# read -p "(Y)es or (N)o [Default is: No]: " answer
X+answer="No"
X 
X if [ -n "$answer" ]
X then
X@@ -273,7 +276,8 @@
X if [ "$CONFIG_CHANGED" -eq "0" ]; then
X   echo "Note: The configuration has not been changed since the last time it was written."
X fi
X-read -p "(Y)es or (N)o [Default is: No]: " answer
X+#read -p "(Y)es or (N)o [Default is: No]: " answer
X+answer="No"
X 
X if [ -n "$answer" ]
X then
END-of-mupen64-base/files/patch-configure
echo x - mupen64-base/files/patch-Makefile
sed 's/^X//' >mupen64-base/files/patch-Makefile << 'END-of-mupen64-base/files/patch-Makefile'
X--- Makefile.orig	Mon Jul  5 22:37:09 2004
X+++ Makefile	Tue Aug 10 23:03:37 2004
X@@ -1,10 +1,10 @@
X #Makefile MUPEN64 for Linux
X 
X-CC		=gcc
X-CXX		=g++
X+CC		?=gcc
X+CXX		?=g++
X 
X #CFLAGS		=-DX86 -O3 -mpentium -Wall -DEMU64_DEBUG
X-CFLAGS		=-DX86 -O3 -fomit-frame-pointer -funroll-loops -ffast-math -mcpu=athlon -Wall -pipe
X+#CFLAGS		=-DX86 -O3 -fomit-frame-pointer -funroll-loops -ffast-math -mcpu=athlon -Wall -pipe
X #CFLAGS		=-DX86 -O3 -mcpu=pentium -Wall -g -pg
X #CFLAGS		=-DX86 -Wall -pipe -g3 -DEMU64_DEBUG
X #CFLAGS		=-DX86 -Wall -pipe -g -DEMU64_DEBUG -DCOMPARE_CORE
END-of-mupen64-base/files/patch-Makefile
echo x - mupen64-base/files/patch-main_gtk.c
sed 's/^X//' >mupen64-base/files/patch-main_gtk.c << 'END-of-mupen64-base/files/patch-main_gtk.c'
X--- main/gui_gtk/main_gtk.c.orig	Tue Aug 10 22:44:44 2004
X+++ main/gui_gtk/main_gtk.c	Tue Aug 10 22:54:47 2004
X@@ -1783,16 +1783,19 @@
X 			printf( "SIGSEGV in core thread caught:\n" );
X 			printf( "\terrno = %d (%s)\n", info->si_errno, strerror( info->si_errno ) );
X 			printf( "\taddress = 0x%08X\n", (unsigned int)info->si_addr );
X+#ifdef SEGV_MAPERR
X 			switch( info->si_code )
X 			{
X 			case SEGV_MAPERR: printf( "                address not mapped to object\n" ); break;
X 			case SEGV_ACCERR: printf( "                invalid permissions for mapped object\n" ); break;
X 			}
X+#endif
X 			break;
X 		case SIGILL:
X 			printf( "SIGILL in core thread caught:\n" );
X 			printf( "\terrno = %d (%s)\n", info->si_errno, strerror( info->si_errno ) );
X 			printf( "\taddress = 0x%08X\n", (unsigned int)info->si_addr );
X+#ifdef ILL_ILLOPC
X 			switch( info->si_code )
X 			{
X 			case ILL_ILLOPC: printf( "\tillegal opcode\n" ); break;
X@@ -1804,6 +1807,7 @@
X 			case ILL_COPROC: printf( "\tcoprocessor error\n" ); break;
X 			case ILL_BADSTK: printf( "\tinternal stack error\n" ); break;
X 			}
X+#endif
X 			break;
X 		case SIGFPE:
X 			printf( "SIGFPE in core thread caught:\n" );
END-of-mupen64-base/files/patch-main_gtk.c
echo x - mupen64-base/files/patch-plugin.c
sed 's/^X//' >mupen64-base/files/patch-plugin.c << 'END-of-mupen64-base/files/patch-plugin.c'
X--- main/plugin.c.orig	Mon Jul  5 22:37:09 2004
X+++ main/plugin.c	Tue Aug 10 22:39:28 2004
X@@ -33,6 +33,7 @@
X #include <stdlib.h>
X #include <string.h>
X #include <unistd.h>
X+#include <limits.h>
X 
X #include "winlnxdefs.h"
X #include "plugin.h"
END-of-mupen64-base/files/patch-plugin.c
echo x - mupen64-base/files/mupen64.in
sed 's/^X//' >mupen64-base/files/mupen64.in << 'END-of-mupen64-base/files/mupen64.in'
X#!/bin/sh
X# mupen64 - Mupen64 wrapper script
X#
X# 2004 Travis Poppe
X
XUSERDIR=$HOME/.mupen64
X
Xif [ ! -x $USERDIR/mupen64 ]; then
X    echo "$USERDIR/mupen64 not found or not executable."
X    echo "Setting up Mupen64 for you..."
X    rm -rf $USERDIR
X    mkdir $USERDIR
X    mkdir $USERDIR/lang
X    mkdir $USERDIR/save
X    mkdir $USERDIR/roms
X    mkdir $USERDIR/plugins
X    cd $USERDIR
X    ln -s %%PREFIX%%/libexec/mupen64 ./mupen64
X    ln -s %%PREFIX%%/share/mupen64/mupen64.ini ./mupen64.ini
X    ln -s %%PREFIX%%/share/mupen64/lang/* lang/
X    ln -s %%PREFIX%%/share/mupen64/plugins/* plugins/
X    echo "Done!"
X    echo ""
X    echo "Remember to configure your plugins!"
X    echo ""
Xfi
X
Xcd $USERDIR && exec ./mupen64
END-of-mupen64-base/files/mupen64.in
echo x - mupen64-base/Makefile
sed 's/^X//' >mupen64-base/Makefile << 'END-of-mupen64-base/Makefile'
X# New ports collection makefile for:	mupen64-base
X# Date created:		10.Aug 2004
X# Whom:			dirk.meyer@dinoex.sub.org
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mupen64
XPORTVERSION=	0.4
XCATEGORIES+=	emulators
XMASTER_SITES=	http://mupen64.emulation64.com/files/${PORTVERSION}/
XPKGNAMESUFFIX=	-base
XDISTNAME=	${PORTNAME}_src-${PORTVERSION}
X
XMAINTAINER?=	tlp@LiquidX.org
XCOMMENT=	Mupen64 is a Nintendo 64 emulator
X
XUSE_BZIP2=	yes
XHAS_CONFIGURE=	yes
XUSE_REINPLACE=	yes
XUSE_GMAKE=	yes
XUSE_SDL=	sdl
XUSE_GNOME=	gtk12
XWRKSRC=		${WRKDIR}/emu64
XUSE_GCC=	3.3
XONLY_FOR_ARCHS=	i386
X
XDOCFILES=	readme.pdf readme.ps
XFIXME1=		main/vcr.c memory/dma.c r4300/r4300.c r4300/recomp.c \
X		r4300/x86/assemble.c
XFIXME2=		r4300/interupt.c main/gui_gtk/main_gtk.c
X
Xpre-configure:
X	@${SED} -e 's,%%PREFIX%%,${PREFIX},g' ${FILESDIR}/mupen64.in \
X		> ${WRKDIR}/mupen64
X.for i in ${FIXME1}
X	${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/${i}
X.endfor
X.for i in ${FIXME2}
X	${REINPLACE_CMD} -e 's|SDL/SDL.h|SDL.h|' ${WRKSRC}/${i}
X.endfor
X	${REINPLACE_CMD} \
X		-e 's|sdl-config|${SDL_CONFIG}|g' ${WRKSRC}/configure
X	${REINPLACE_CMD} \
X		-e 's|gtk-config|${GTK_CONFIG}|' \
X		-e 's|-L/usr/X11R6/lib -lSDL -lGL -lpthread|`${SDL_CONFIG} --libs`|' \
X		-e 's|-ldl|${LDFLAGS}|' \
X		${WRKSRC}/Makefile
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/whatsnew.txt ${DOCSDIR}/whatsnew.txt
X.for i in ${DOCFILES}
X	${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR}/
X.endfor
X.endif
X	${INSTALL_PROGRAM} ${WRKSRC}/mupen64 ${PREFIX}/libexec/mupen64
X	${INSTALL_SCRIPT} ${WRKDIR}/mupen64 ${PREFIX}/bin/mupen64
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.pre.mk>
X
XCFLAGS+=	`${SDL_CONFIG} --cflags`
XCFLAGS+=	-O3 -fomit-frame-pointer -funroll-loops -ffast-math -Wall -pipe
XCFLAGS+=	-DX86 -mcpu=athlon
X
XMAKE_ARGS+=	CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
X
X.if ${OSVERSION} < 500000
XLDFLAGS+=	-L/usr/lib -lcipher
X.endif
X
X.include <bsd.port.post.mk>
END-of-mupen64-base/Makefile
echo x - mupen64-base/distinfo
sed 's/^X//' >mupen64-base/distinfo << 'END-of-mupen64-base/distinfo'
XMD5 (mupen64_src-0.4.tar.bz2) = 322f2226f4f67e24868592c6b441e76a
XSIZE (mupen64_src-0.4.tar.bz2) = 1871148
END-of-mupen64-base/distinfo
echo x - mupen64-base/pkg-descr
sed 's/^X//' >mupen64-base/pkg-descr << 'END-of-mupen64-base/pkg-descr'
XMupen64 base
X-
XMupen64 is a highly portable Nintendo 64 emulator. It has been developed 
Xon/for Linux originally but has already been ported successfully to other 
Xoperating systems. The program can easily be ported to all operating systems 
Xsupported by the SDL library.
X
XIn its current state, the emulator is highly compatible and uses a plugin 
Xsystem. With the correct plugins ("correct" can be computer dependent), it 
Xcan achieve nearly perfect graphics and sound in many games.
X
XWWW: http://mupen64.emulation64.com/
X
X- Travis Poppe
Xtlp@liquidx.org
END-of-mupen64-base/pkg-descr
echo x - mupen64-base/pkg-plist
sed 's/^X//' >mupen64-base/pkg-plist << 'END-of-mupen64-base/pkg-plist'
Xbin/mupen64
Xshare/mupen64/doc/compile.sh
Xshare/mupen64/doc/readme.dvi
Xshare/mupen64/doc/readme.pdf
Xshare/mupen64/doc/readme.latex
Xshare/mupen64/doc/readme.ps
Xshare/mupen64/lang/french.lng
Xshare/mupen64/lang/pt_BR.lng
Xshare/mupen64/lang/german.lng
Xshare/mupen64/lang/spanish.lng
Xshare/mupen64/lang/dutch.lng
Xshare/mupen64/lang/italian.lng
Xshare/mupen64/lang/english.lng
Xshare/mupen64/lang/catalan.lng
Xshare/mupen64/mupen64.ini
Xshare/mupen64/plugins/empty
X@dirrm share/mupen64/plugins
X@dirrm share/mupen64/lang
X@dirrm share/mupen64/doc
X@dirrm share/mupen64
X%%PORTDOCS%%%%DOCSDIR%%/whatsnew.txt
X%%PORTDOCS%%%%DOCSDIR%%/readme.pdf
X%%PORTDOCS%%%%DOCSDIR%%/readme.ps
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-mupen64-base/pkg-plist
echo x - mupen64-base/pkg-message
sed 's/^X//' >mupen64-base/pkg-message << 'END-of-mupen64-base/pkg-message'
X-------------------------------------------------------------------------------
XIf you have installed/upgraded any new plugins or are upgrading from a previous
Xversion of Mupen64, please note that in order for these changes to take effect,
Xyou -must- backup and then remove ~/.mupen64 first. After you have removed the
Xdirectory, run 'mupen64' to re-create it. Then, manually copy back your save 
Xfiles/other data you need from the backup if necessary.
X
XEnjoy!
X-------------------------------------------------------------------------------
END-of-mupen64-base/pkg-message
echo c - mupen64-dummyaudio
mkdir -p mupen64-dummyaudio > /dev/null 2>&1
echo c - mupen64-dummyaudio/files
mkdir -p mupen64-dummyaudio/files > /dev/null 2>&1
echo x - mupen64-dummyaudio/files/patch-Makefile
sed 's/^X//' >mupen64-dummyaudio/files/patch-Makefile << 'END-of-mupen64-dummyaudio/files/patch-Makefile'
X--- Makefile.orig	Sun Jul  4 11:44:08 2004
X+++ Makefile	Thu Aug 12 16:02:04 2004
X@@ -1,7 +1,7 @@
X-CC = gcc
X-CFLAGS = -O3 -fomit-frame-pointer -funroll-loops -ffast-math -mcpu=athlon -Wall
X-LD = gcc
X-LDFLAGS = -shared -Wl,-Bsymbolic
X+#CC = gcc
X+#CFLAGS = -O3 -fomit-frame-pointer -funroll-loops -ffast-math -mcpu=athlon -Wall
X+#LD = gcc
X+#LDFLAGS = -shared -Wl,-Bsymbolic
X 
X OBJECTS	=	audio.o
X 
END-of-mupen64-dummyaudio/files/patch-Makefile
echo x - mupen64-dummyaudio/Makefile
sed 's/^X//' >mupen64-dummyaudio/Makefile << 'END-of-mupen64-dummyaudio/Makefile'
X# New ports collection makefile for:	mupen64-dummyaudio
X# Date created:		12.Aug 2004
X# Whom:			dirk.meyer@dinoex.sub.org
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mupen64
XPORTVERSION=	0.4
XCATEGORIES+=	emulators
XMASTER_SITES=	http://mupen64.emulation64.com/files/${PORTVERSION}/
XPKGNAMESUFFIX=	-dummyaudio
XDISTNAME=	dummyaudio
X
XMAINTAINER?=	tlp@LiquidX.org
XCOMMENT=	Dummy audio plugin for Mupen64
X
XUSE_BZIP2=	yes
XUSE_GMAKE=	yes
XUSE_GCC=	3.3
XONLY_FOR_ARCHS=	i386
XWRKSRC=		${WRKDIR}/dummy
X
XPLUGIN_NAME=	dummyaudio
XPLIST_FILES=	share/mupen64/plugins/${PLUGIN_NAME}.so
XPLIST_DIRS=	share/mupen64/plugins
XPLIST_DIRS+=	share/mupen64
X
Xdo-install:
X	@${MKDIR} ${PREFIX}/share/mupen64/plugins
X	${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN_NAME}.so \
X		${PREFIX}/share/mupen64/plugins/
X
X.include <bsd.port.pre.mk>
X
XCFLAGS+=	-fPIC
XCFLAGS+=	-O3 -fomit-frame-pointer -funroll-loops -ffast-math -Wall -pipe
XCFLAGS+=	-DX86 -mcpu=athlon
XLDFLAGS+=	-shared -Wl,-Bsymbolic -lc
X
XMAKE_ARGS+=	CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" LD="${CC}"
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
END-of-mupen64-dummyaudio/Makefile
echo x - mupen64-dummyaudio/distinfo
sed 's/^X//' >mupen64-dummyaudio/distinfo << 'END-of-mupen64-dummyaudio/distinfo'
XMD5 (dummyaudio.tar.bz2) = b305bd25889d7a6eb195679dbc1ef55c
XSIZE (dummyaudio.tar.bz2) = 3417
END-of-mupen64-dummyaudio/distinfo
echo x - mupen64-dummyaudio/pkg-descr
sed 's/^X//' >mupen64-dummyaudio/pkg-descr << 'END-of-mupen64-dummyaudio/pkg-descr'
XDummy sound plugin for Mupen64
X-
XMupen64 is a highly portable Nintendo 64 emulator. It has been developed 
Xon/for Linux originally but has already been ported successfully to other 
Xoperating systems. The program can easily be ported to all operating systems 
Xsupported by the SDL library.
X
XIn its current state, the emulator is highly compatible and uses a plugin 
Xsystem. With the correct plugins ("correct" can be computer dependent), it 
Xcan achieve nearly perfect graphics and sound in many games.
X
XWWW: http://mupen64.emulation64.com/
X
X- Travis Poppe
Xtlp@liquidx.org
END-of-mupen64-dummyaudio/pkg-descr
echo x - mupen64-dummyaudio/pkg-message
sed 's/^X//' >mupen64-dummyaudio/pkg-message << 'END-of-mupen64-dummyaudio/pkg-message'
X-------------------------------------------------------------------------------
XIf you have installed/upgraded any new plugins or are upgrading from a previous
Xversion of Mupen64, please note that in order for these changes to take effect,
Xyou -must- backup and then remove ~/.mupen64 first. After you have removed the
Xdirectory, run 'mupen64' to re-create it. Then, manually copy back your save 
Xfiles/other data you need from the backup if necessary.
X
XEnjoy!
X-------------------------------------------------------------------------------
END-of-mupen64-dummyaudio/pkg-message
echo c - mupen64-input
mkdir -p mupen64-input > /dev/null 2>&1
echo c - mupen64-input/files
mkdir -p mupen64-input/files > /dev/null 2>&1
echo x - mupen64-input/files/patch-Makefile
sed 's/^X//' >mupen64-input/files/patch-Makefile << 'END-of-mupen64-input/files/patch-Makefile'
X--- Makefile.orig	Sat Sep  6 00:55:57 2003
X+++ Makefile	Thu Aug 12 14:35:59 2004
X@@ -2,7 +2,7 @@
X #CXX  		=g++ -O3 -mpentium -Wall -DEMU64_DEBUG
X #CC		=gcc -O3 -I/usr/X11R6/include -fPIC -fomit-frame-pointer -funroll-loops -ffast-math -mcpu=pentium -pipe
X #CC		=gcc -O3 -mpentium -Wall -g -pg
X-CC 		=gcc -O3 -fomit-frame-pointer -funroll-loops -ffast-math -mcpu=athlon -Wall -DUSE_GTK `gtk-config --cflags` -I/usr/X11R6/include -pipe
X+#CC 		=gcc -O3 -fomit-frame-pointer -funroll-loops -ffast-math -mcpu=athlon -Wall -DUSE_GTK `gtk-config --cflags` -I/usr/X11R6/include -pipe
X 
X OBJ		=main.o
X 
END-of-mupen64-input/files/patch-Makefile
echo x - mupen64-input/Makefile
sed 's/^X//' >mupen64-input/Makefile << 'END-of-mupen64-input/Makefile'
X# New ports collection makefile for:	mupen64-input
X# Date created:		11.Aug 2004
X# Whom:			dirk.meyer@dinoex.sub.org
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mupen64
XPORTVERSION=	0.4
XCATEGORIES+=	emulators
XMASTER_SITES=	http://mupen64.emulation64.com/files/${PORTVERSION}/
XPKGNAMESUFFIX=	-input
XDISTNAME=	mupen64_input
X
XMAINTAINER?=	tlp@LiquidX.org
XCOMMENT=	Input plugin for Mupen64
X
XUSE_BZIP2=	yes
XUSE_REINPLACE=	yes
XUSE_GMAKE=	yes
XUSE_SDL=	sdl
XUSE_GNOME=	gtk12
XUSE_GCC=	3.3
XONLY_FOR_ARCHS=	i386
X
XPLUGIN_NAME=	mupen64_input
XPLIST_FILES=	share/mupen64/plugins/${PLUGIN_NAME}.so
XPLIST_DIRS=	share/mupen64/plugins
XPLIST_DIRS+=	share/mupen64
X
XFIXME2=		main.c
X
Xdo-configure:
X.for i in ${FIXME2}
X	${REINPLACE_CMD} -e 's|SDL/SDL.h|SDL.h|' ${WRKSRC}/${i}
X.endfor
X	${REINPLACE_CMD} -e 's|-lSDL|`${SDL_CONFIG} --libs`|' \
X		${WRKSRC}/Makefile
X
Xdo-install:
X	@${MKDIR} ${PREFIX}/share/mupen64/plugins
X	${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN_NAME}.so \
X		${PREFIX}/share/mupen64/plugins/
X
X.include <bsd.port.pre.mk>
X
XCFLAGS+=	`${SDL_CONFIG} --cflags`
XCFLAGS+=	-DUSE_GTK `${GTK_CONFIG} --cflags` -fPIC
XCFLAGS+=	-O3 -fomit-frame-pointer -funroll-loops -ffast-math -Wall -pipe
XCFLAGS+=	-DX86 -mcpu=athlon
X
XMAKE_ARGS+=	CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
END-of-mupen64-input/Makefile
echo x - mupen64-input/distinfo
sed 's/^X//' >mupen64-input/distinfo << 'END-of-mupen64-input/distinfo'
XMD5 (mupen64_input.tar.bz2) = 14fc6075a19bb567afebedd5ab2ea6c1
XSIZE (mupen64_input.tar.bz2) = 4438
END-of-mupen64-input/distinfo
echo x - mupen64-input/pkg-descr
sed 's/^X//' >mupen64-input/pkg-descr << 'END-of-mupen64-input/pkg-descr'
XInput plugin for Mupen64
X-
XMupen64 is a highly portable Nintendo 64 emulator. It has been developed 
Xon/for Linux originally but has already been ported successfully to other 
Xoperating systems. The program can easily be ported to all operating systems 
Xsupported by the SDL library.
X
XIn its current state, the emulator is highly compatible and uses a plugin 
Xsystem. With the correct plugins ("correct" can be computer dependent), it 
Xcan achieve nearly perfect graphics and sound in many games.
X
XWWW: http://mupen64.emulation64.com/
X
X- Travis Poppe
Xtlp@liquidx.org
END-of-mupen64-input/pkg-descr
echo x - mupen64-input/pkg-message
sed 's/^X//' >mupen64-input/pkg-message << 'END-of-mupen64-input/pkg-message'
X-------------------------------------------------------------------------------
XIf you have installed/upgraded any new plugins or are upgrading from a previous
Xversion of Mupen64, please note that in order for these changes to take effect,
Xyou -must- backup and then remove ~/.mupen64 first. After you have removed the
Xdirectory, run 'mupen64' to re-create it. Then, manually copy back your save 
Xfiles/other data you need from the backup if necessary.
X
XEnjoy!
X-------------------------------------------------------------------------------
END-of-mupen64-input/pkg-message
echo c - mupen64-rice
mkdir -p mupen64-rice > /dev/null 2>&1
echo c - mupen64-rice/files
mkdir -p mupen64-rice/files > /dev/null 2>&1
echo x - mupen64-rice/files/patch-DecodedMux.cpp
sed 's/^X//' >mupen64-rice/files/patch-DecodedMux.cpp << 'END-of-mupen64-rice/files/patch-DecodedMux.cpp'
X--- DecodedMux.cpp.orig	Thu Aug 28 22:39:21 2003
X+++ DecodedMux.cpp	Fri Aug 13 21:51:55 2004
X@@ -760,7 +760,7 @@
X ShadeConstMergeMapType MergeShadeWithConstantsMaps[] =
X {
X 	0,	SHADE_DO_NOTHING,
X-	0x0007000600070006,	SHADE_MOD_ENV,		// SHADE * ENV
X+	0x0007000600070006LL,	SHADE_MOD_ENV,		// SHADE * ENV
X };
X 
X // 0x05070501, 0x00070006		//(1 - PRIM) * ENV + PRIM
END-of-mupen64-rice/files/patch-DecodedMux.cpp
echo x - mupen64-rice/files/patch-Makefile
sed 's/^X//' >mupen64-rice/files/patch-Makefile << 'END-of-mupen64-rice/files/patch-Makefile'
X--- Makefile.orig	Sat Jul  3 22:23:08 2004
X+++ Makefile	Thu Aug 12 16:37:42 2004
X@@ -1,10 +1,10 @@
X-CC = gcc
X+#CC = gcc
X #CFLAGS = -DUSE_GTK `sdl-config --cflags` `gtk-config --cflags` -g -mmmx -msse
X-CFLAGS = -DUSE_GTK `sdl-config --cflags` `gtk-config --cflags` -O3 -mcpu=athlon -ffast-math -funroll-loops -fomit-frame-pointer -msse -mmmx
X-CXX = g++
X+#CFLAGS = -DUSE_GTK `sdl-config --cflags` `gtk-config --cflags` -O3 -mcpu=athlon -ffast-math -funroll-loops -fomit-frame-pointer -msse -mmmx
X+#CXX = g++
X CPPFLAGS = $(CFLAGS)
X-LD = g++
X-LDFLAGS = -lGL -lGLU -L/usr/X11R6/lib -lSDL
X+#LD = g++
X+#LDFLAGS = -lGL -lGLU -L/usr/X11R6/lib -lSDL
X 
X OBJECTS = DaedalusGraphics.o \
X 	DaedalusRenderBase.o \
END-of-mupen64-rice/files/patch-Makefile
echo x - mupen64-rice/files/patch-OGLCombinerTNT2.cpp
sed 's/^X//' >mupen64-rice/files/patch-OGLCombinerTNT2.cpp << 'END-of-mupen64-rice/files/patch-OGLCombinerTNT2.cpp'
X--- OGLCombinerTNT2.cpp.orig	Fri Aug 29 15:50:40 2003
X+++ OGLCombinerTNT2.cpp	Fri Aug 13 21:54:26 2004
X@@ -120,6 +120,7 @@
X 
X GLenum COGLColorCombinerTNT2::RGBArgsMap[] =
X {
X+#ifndef __FreeBSD__
X 	{GL_ZERO,					},	//MUX_0
X 	{GL_ZERO,					},	//MUX_1
X 	{GL_PREVIOUS_EXT,			},	//MUX_COMBINED,
X@@ -136,6 +137,24 @@
X 	{GL_CONSTANT_EXT,			},	//MUX_ENV_ALPHA,
X 	{GL_CONSTANT_EXT,			},	//MUX_LODFRAC,
X 	{GL_CONSTANT_EXT,			},	//MUX_PRIMLODFRAC,
X+#else
X+	GL_ZERO,					//MUX_0
X+	GL_ZERO,					//MUX_1
X+	GL_PREVIOUS_EXT,				//MUX_COMBINED,
X+	GL_TEXTURE0_ARB,				//MUX_TEXEL0,
X+	GL_TEXTURE1_ARB,				//MUX_TEXEL1,
X+	GL_CONSTANT_EXT,				//MUX_PRIM,
X+	GL_PRIMARY_COLOR_EXT,				//MUX_SHADE,
X+	GL_CONSTANT_EXT,				//MUX_ENV,
X+	GL_PREVIOUS_EXT,				//MUX_COMBALPHA,
X+	GL_TEXTURE0_ARB,				//MUX_T0_ALPHA,
X+	GL_TEXTURE1_ARB,				//MUX_T1_ALPHA,
X+	GL_CONSTANT_EXT,				//MUX_PRIM_ALPHA,
X+	GL_PRIMARY_COLOR_EXT,				//MUX_SHADE_ALPHA,
X+	GL_CONSTANT_EXT,				//MUX_ENV_ALPHA,
X+	GL_CONSTANT_EXT,				//MUX_LODFRAC,
X+	GL_CONSTANT_EXT,				//MUX_PRIMLODFRAC,
X+#endif
X };
X 
X 
END-of-mupen64-rice/files/patch-OGLCombinerTNT2.cpp
echo x - mupen64-rice/files/patch-OGLExtCombiner.cpp
sed 's/^X//' >mupen64-rice/files/patch-OGLExtCombiner.cpp << 'END-of-mupen64-rice/files/patch-OGLExtCombiner.cpp'
X--- OGLExtCombiner.cpp.orig	Thu Aug 28 23:31:44 2003
X+++ OGLExtCombiner.cpp	Fri Aug 13 21:55:55 2004
X@@ -474,6 +474,7 @@
X 
X GLenum COGLExtColorCombiner::RGBArgsMap[] =
X {
X+#ifndef __FreeBSD__
X 	{GL_PRIMARY_COLOR_ARB,		},	//MUX_0
X 	{GL_PRIMARY_COLOR_ARB,		},	//MUX_1
X 	{GL_PREVIOUS_ARB,			},	//MUX_COMBINED,
X@@ -490,6 +491,24 @@
X 	{GL_CONSTANT_ARB,			},	//MUX_ENV_ALPHA,
X 	{GL_CONSTANT_ARB,			},	//MUX_LODFRAC,
X 	{GL_CONSTANT_ARB,			},	//MUX_PRIMLODFRAC,
X+#else
X+	GL_PRIMARY_COLOR_ARB,				//MUX_0
X+	GL_PRIMARY_COLOR_ARB,				//MUX_1
X+	GL_PREVIOUS_ARB,				//MUX_COMBINED,
X+	GL_TEXTURE0_ARB,				//MUX_TEXEL0,
X+	GL_TEXTURE1_ARB,				//MUX_TEXEL1,
X+	GL_CONSTANT_ARB,				//MUX_PRIM,
X+	GL_PRIMARY_COLOR_ARB,				//MUX_SHADE,
X+	GL_CONSTANT_ARB,				//MUX_ENV,
X+	GL_PREVIOUS_ARB,				//MUX_COMBALPHA,
X+	GL_TEXTURE0_ARB,				//MUX_T0_ALPHA,
X+	GL_TEXTURE1_ARB,				//MUX_T1_ALPHA,
X+	GL_CONSTANT_ARB,				//MUX_PRIM_ALPHA,
X+	GL_PRIMARY_COLOR_ARB,				//MUX_SHADE_ALPHA,
X+	GL_CONSTANT_ARB,				//MUX_ENV_ALPHA,
X+	GL_CONSTANT_ARB,				//MUX_LODFRAC,
X+	GL_CONSTANT_ARB,				//MUX_PRIMLODFRAC,
X+#endif
X };
X 
X 
END-of-mupen64-rice/files/patch-OGLExtCombiner.cpp
echo x - mupen64-rice/files/patch-unique.h
sed 's/^X//' >mupen64-rice/files/patch-unique.h << 'END-of-mupen64-rice/files/patch-unique.h'
X--- unique.h.orig	Tue Aug 26 00:25:58 2003
X+++ unique.h	Fri Aug 13 21:51:55 2004
X@@ -18,6 +18,7 @@
X 
X */
X 
X+#include <assert.h>
X #ifndef __UNIQUE_H__
X #define __UNIQUE_H__
X 
END-of-mupen64-rice/files/patch-unique.h
echo x - mupen64-rice/Makefile
sed 's/^X//' >mupen64-rice/Makefile << 'END-of-mupen64-rice/Makefile'
X# New ports collection makefile for:	mupen64-rice
X# Date created:		11.Aug 2004
X# Whom:			dirk.meyer@dinoex.sub.org
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mupen64
XPORTVERSION=	5.2.0
XCATEGORIES+=	emulators
XMASTER_SITES=	http://mupen64.emulation64.com/files/0.4/
XPKGNAMESUFFIX=	-rice
XDISTNAME=	riceplugin
X
XMAINTAINER?=	tlp@LiquidX.org
XCOMMENT=	Rice Daedalus graphics plugin for Mupen64
X
XUSE_BZIP2=	yes
XUSE_REINPLACE=	yes
XUSE_GMAKE=	yes
XUSE_SDL=	sdl
XUSE_GNOME=	gtk12
XUSE_GCC=	3.3
XONLY_FOR_ARCHS=	i386
X
XPLUGIN_NAME=	ricedaedalus
XPLIST_FILES=	share/mupen64/plugins/${PLUGIN_NAME}.so
XPLIST_FILES+=	share/mupen64/plugins/RiceDaedalus5.1.0.ini
XPLIST_DIRS=	share/mupen64/plugins
XPLIST_DIRS+=	share/mupen64
X
XFIXME2=		glh_genext.h
X
Xdo-configure:
X.for i in ${FIXME2}
X	${REINPLACE_CMD} -e 's|SDL/SDL.h|SDL.h|' ${WRKSRC}/${i}
X.endfor
X	${REINPLACE_CMD} -e 's|`gtk-config --libs`||' ${WRKSRC}/Makefile
X
Xdo-install:
X	@${MKDIR} ${PREFIX}/share/mupen64/plugins
X	${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN_NAME}.so \
X		${PREFIX}/share/mupen64/plugins/
X	${INSTALL_DATA} ${WRKSRC}/RiceDaedalus5.1.0.ini \
X		${PREFIX}/share/mupen64/plugins/
X
X.include <bsd.port.pre.mk>
X
XCFLAGS+=	`${SDL_CONFIG} --cflags`
XCFLAGS+=	-DUSE_GTK `${GTK_CONFIG} --cflags` -fPIC
XCFLAGS+=	-O3 -fomit-frame-pointer -funroll-loops -ffast-math -Wall -pipe
XCFLAGS+=	-DX86 -mcpu=athlon -msse -mmmx
XLDFLAGS+=	`${GTK_CONFIG} --libs`  \
X		-lGL -lGLU -L${X11BASE}/lib `${SDL_CONFIG} --libs` -lc
X
XMAKE_ARGS+=	CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" LD="${CXX}"
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
END-of-mupen64-rice/Makefile
echo x - mupen64-rice/distinfo
sed 's/^X//' >mupen64-rice/distinfo << 'END-of-mupen64-rice/distinfo'
XMD5 (riceplugin.tar.bz2) = f6f42d31cee3fce0ea92176f42ef73ba
XSIZE (riceplugin.tar.bz2) = 287672
END-of-mupen64-rice/distinfo
echo x - mupen64-rice/pkg-descr
sed 's/^X//' >mupen64-rice/pkg-descr << 'END-of-mupen64-rice/pkg-descr'
XRice Daedalus graphics plugin for Mupen64
X-
XMupen64 is a highly portable Nintendo 64 emulator. It has been developed 
Xon/for Linux originally but has already been ported successfully to other 
Xoperating systems. The program can easily be ported to all operating systems 
Xsupported by the SDL library.
X
XIn its current state, the emulator is highly compatible and uses a plugin 
Xsystem. With the correct plugins ("correct" can be computer dependent), it 
Xcan achieve nearly perfect graphics and sound in many games.
X
XWWW: http://mupen64.emulation64.com/
X
X- Travis Poppe
Xtlp@liquidx.org
END-of-mupen64-rice/pkg-descr
echo x - mupen64-rice/pkg-message
sed 's/^X//' >mupen64-rice/pkg-message << 'END-of-mupen64-rice/pkg-message'
X-------------------------------------------------------------------------------
XIf you have installed/upgraded any new plugins or are upgrading from a previous
Xversion of Mupen64, please note that in order for these changes to take effect,
Xyou -must- backup and then remove ~/.mupen64 first. After you have removed the
Xdirectory, run 'mupen64' to re-create it. Then, manually copy back your save 
Xfiles/other data you need from the backup if necessary.
X
XEnjoy!
X-------------------------------------------------------------------------------
END-of-mupen64-rice/pkg-message
echo c - mupen64-rsp
mkdir -p mupen64-rsp > /dev/null 2>&1
echo c - mupen64-rsp/files
mkdir -p mupen64-rsp/files > /dev/null 2>&1
echo x - mupen64-rsp/files/patch-Makefile
sed 's/^X//' >mupen64-rsp/files/patch-Makefile << 'END-of-mupen64-rsp/files/patch-Makefile'
X--- Makefile.orig	Sat Jul  3 18:52:25 2004
X+++ Makefile	Wed Aug 11 10:53:40 2004
X@@ -1,11 +1,11 @@
X-CC = gcc
X-CFLAGS = -DUSE_GTK `gtk-config --cflags` -O3 -mcpu=athlon \
X-         -ffast-math -funroll-loops -fomit-frame-pointer
X+#CC = gcc
X+#CFLAGS = -DUSE_GTK `gtk-config --cflags` -O3 -mcpu=athlon \
X+#         -ffast-math -funroll-loops -fomit-frame-pointer
X #CFLAGS = -DUSE_GTK `gtk-config --cflags` -g -fPIC
X-CXX = g++
X-CXXFLAGS = $(CFLAGS)
X-LD = g++
X-LDFLAGS =
X+#CXX = g++
X+#CXXFLAGS = $(CFLAGS)
X+#LD = g++
X+#LDFLAGS =
X 
X TARGET = mupen64_hle_rsp_azimer.so
X OBJECTS = main.o disasm.o jpeg.o ucode1.o ucode2.o ucode3.o ucode3mp3.o
END-of-mupen64-rsp/files/patch-Makefile
echo x - mupen64-rsp/Makefile
sed 's/^X//' >mupen64-rsp/Makefile << 'END-of-mupen64-rsp/Makefile'
X# New ports collection makefile for:	mupen64-rsp
X# Date created:		10.Aug 2004
X# Whom:			dirk.meyer@dinoex.sub.org
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mupen64
XPORTVERSION=	0.4
XCATEGORIES+=	emulators
XMASTER_SITES=	http://mupen64.emulation64.com/files/${PORTVERSION}/
XPKGNAMESUFFIX=	-rsp
XDISTNAME=	hack_azi_rsp_hle
X
XMAINTAINER?=	tlp@LiquidX.org
XCOMMENT=	RSP plugin for Mupen64
X
XUSE_BZIP2=	yes
XUSE_GMAKE=	yes
XUSE_GNOME=	gtk12
XUSE_GCC=	3.3
XONLY_FOR_ARCHS=	i386
X
XPLUGIN_NAME=	mupen64_hle_rsp_azimer
XPLIST_FILES=	share/mupen64/plugins/${PLUGIN_NAME}.so
XPLIST_DIRS=	share/mupen64/plugins
XPLIST_DIRS+=	share/mupen64
X
Xdo-install:
X	@${MKDIR} ${PREFIX}/share/mupen64/plugins
X	${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN_NAME}.so \
X		${PREFIX}/share/mupen64/plugins/
X
X.include <bsd.port.pre.mk>
X
XCFLAGS+=	-DUSE_GTK `${GTK_CONFIG} --cflags` -fPIC
XCFLAGS+=	-O3 -fomit-frame-pointer -funroll-loops -ffast-math -Wall -pipe
XCFLAGS+=	-DX86 -mcpu=athlon
XLDFLAGS+=	-lc
X
XMAKE_ARGS+=	CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" LD="${CXX}"
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
END-of-mupen64-rsp/Makefile
echo x - mupen64-rsp/distinfo
sed 's/^X//' >mupen64-rsp/distinfo << 'END-of-mupen64-rsp/distinfo'
XMD5 (hack_azi_rsp_hle.tar.bz2) = 9eb823e0f4a62c8ef0428dabf3f01370
XSIZE (hack_azi_rsp_hle.tar.bz2) = 38268
END-of-mupen64-rsp/distinfo
echo x - mupen64-rsp/pkg-descr
sed 's/^X//' >mupen64-rsp/pkg-descr << 'END-of-mupen64-rsp/pkg-descr'
XRSP plugin for Mupen64
X-
XMupen64 is a highly portable Nintendo 64 emulator. It has been developed 
Xon/for Linux originally but has already been ported successfully to other 
Xoperating systems. The program can easily be ported to all operating systems 
Xsupported by the SDL library.
X
XIn its current state, the emulator is highly compatible and uses a plugin 
Xsystem. With the correct plugins ("correct" can be computer dependent), it 
Xcan achieve nearly perfect graphics and sound in many games.
X
XWWW: http://mupen64.emulation64.com/
X
X- Travis Poppe
Xtlp@liquidx.org
END-of-mupen64-rsp/pkg-descr
echo x - mupen64-rsp/pkg-message
sed 's/^X//' >mupen64-rsp/pkg-message << 'END-of-mupen64-rsp/pkg-message'
X-------------------------------------------------------------------------------
XIf you have installed/upgraded any new plugins or are upgrading from a previous
Xversion of Mupen64, please note that in order for these changes to take effect,
Xyou -must- backup and then remove ~/.mupen64 first. After you have removed the
Xdirectory, run 'mupen64' to re-create it. Then, manually copy back your save 
Xfiles/other data you need from the backup if necessary.
X
XEnjoy!
X-------------------------------------------------------------------------------
END-of-mupen64-rsp/pkg-message
echo c - mupen64-sdlaudio
mkdir -p mupen64-sdlaudio > /dev/null 2>&1
echo c - mupen64-sdlaudio/files
mkdir -p mupen64-sdlaudio/files > /dev/null 2>&1
echo x - mupen64-sdlaudio/files/patch-Makefile
sed 's/^X//' >mupen64-sdlaudio/files/patch-Makefile << 'END-of-mupen64-sdlaudio/files/patch-Makefile'
X--- Makefile.orig	Sun Mar 28 20:09:45 2004
X+++ Makefile	Thu Aug 12 15:25:07 2004
X@@ -1,11 +1,11 @@
X-CC = gcc
X+#CC = gcc
X #CFLAGS = -g -O3 -fomit-frame-pointer -funroll-loops -ffast-math -mcpu=athlon `gtk-config --cflags` -DUSE_GTK -Wall `sdl-config --cflags` -lm `sdl-config --libs`
X-CFLAGS = -O3 -fomit-frame-pointer -funroll-loops -ffast-math -mcpu=athlon `gtk-config --cflags` -DUSE_GTK -Wall `sdl-config --cflags`
X+#CFLAGS = -O3 -fomit-frame-pointer -funroll-loops -ffast-math -mcpu=athlon `gtk-config --cflags` -DUSE_GTK -Wall `sdl-config --cflags`
X 
X #CFLAGS = -g -O3 -fomit-frame-pointer -funroll-loops -ffast-math -mcpu=athlon `gtk-config --cflags` -DUSE_GTK -Wall
X 
X-LD = gcc
X-LDFLAGS = -shared -Wl,-Bsymbolic `gtk-config --libs` -lpthread -lm `sdl-config --libs`
X+#LD = gcc
X+#LDFLAGS = -shared -Wl,-Bsymbolic `gtk-config --libs` -lpthread -lm `sdl-config --libs`
X 
X OBJECTS	=	main.o
X 
END-of-mupen64-sdlaudio/files/patch-Makefile
echo x - mupen64-sdlaudio/Makefile
sed 's/^X//' >mupen64-sdlaudio/Makefile << 'END-of-mupen64-sdlaudio/Makefile'
X# New ports collection makefile for:	mupen64-sdlaudio
X# Date created:		12.Aug 2004
X# Whom:			dirk.meyer@dinoex.sub.org
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mupen64
XPORTVERSION=	1.2
XCATEGORIES+=	emulators
XMASTER_SITES=	http://mupen64.emulation64.com/files/0.4/
XPKGNAMESUFFIX=	-sdlaudio
XDISTNAME=	jttl_sound-${PORTVERSION}
X
XMAINTAINER?=	tlp@LiquidX.org
XCOMMENT=	JttL's SDL audio plugin for Mupen64
X
XUSE_BZIP2=	yes
XUSE_GMAKE=	yes
XUSE_SDL=	sdl
XUSE_GNOME=	gtk12
XUSE_GCC=	3.3
XONLY_FOR_ARCHS=	i386
X
XPLUGIN_NAME=	jttl_audio
XPLIST_FILES=	share/mupen64/plugins/${PLUGIN_NAME}.so
XPLIST_FILES+=	share/mupen64/jttl_audio.conf
XPLIST_DIRS=	share/mupen64/plugins
XPLIST_DIRS+=	share/mupen64
X
Xdo-install:
X	@${MKDIR} ${PREFIX}/share/mupen64/plugins
X	${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN_NAME}.so \
X		${PREFIX}/share/mupen64/plugins/
X	${INSTALL_DATA} ${WRKSRC}/${PLUGIN_NAME}.conf \
X		${PREFIX}/share/mupen64/${PLUGIN_NAME}.conf
X
X.include <bsd.port.pre.mk>
X
XCFLAGS+=	`${SDL_CONFIG} --cflags`
XCFLAGS+=	-DUSE_GTK `${GTK_CONFIG} --cflags` -fPIC
XCFLAGS+=	-O3 -fomit-frame-pointer -funroll-loops -ffast-math -Wall -pipe
XCFLAGS+=	-DX86 -mcpu=athlon
XLDFLAGS+=	-shared -Wl,-Bsymbolic `${GTK_CONFIG} --libs` -lm
XLDFLAGS+=	`${SDL_CONFIG} --libs` -lc
X
XMAKE_ARGS+=	CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" LD="${CC}"
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
END-of-mupen64-sdlaudio/Makefile
echo x - mupen64-sdlaudio/distinfo
sed 's/^X//' >mupen64-sdlaudio/distinfo << 'END-of-mupen64-sdlaudio/distinfo'
XMD5 (jttl_sound-1.2.tar.bz2) = 7bb104cf6ca94c0e761027eb9895fcbe
XSIZE (jttl_sound-1.2.tar.bz2) = 10015
END-of-mupen64-sdlaudio/distinfo
echo x - mupen64-sdlaudio/pkg-descr
sed 's/^X//' >mupen64-sdlaudio/pkg-descr << 'END-of-mupen64-sdlaudio/pkg-descr'
XJttL SDL sound plugin for Mupen64
X-
XMupen64 is a highly portable Nintendo 64 emulator. It has been developed 
Xon/for Linux originally but has already been ported successfully to other 
Xoperating systems. The program can easily be ported to all operating systems 
Xsupported by the SDL library.
X
XIn its current state, the emulator is highly compatible and uses a plugin 
Xsystem. With the correct plugins ("correct" can be computer dependent), it 
Xcan achieve nearly perfect graphics and sound in many games.
X
XWWW: http://mupen64.emulation64.com/
X
X- Travis Poppe
Xtlp@liquidx.org
END-of-mupen64-sdlaudio/pkg-descr
echo x - mupen64-sdlaudio/pkg-message
sed 's/^X//' >mupen64-sdlaudio/pkg-message << 'END-of-mupen64-sdlaudio/pkg-message'
X-------------------------------------------------------------------------------
XIf you have installed/upgraded any new plugins or are upgrading from a previous
Xversion of Mupen64, please note that in order for these changes to take effect,
Xyou -must- backup and then remove ~/.mupen64 first. After you have removed the
Xdirectory, run 'mupen64' to re-create it. Then, manually copy back your save 
Xfiles/other data you need from the backup if necessary.
X
XEnjoy!
X-------------------------------------------------------------------------------
END-of-mupen64-sdlaudio/pkg-message
echo c - mupen64-sdlinput
mkdir -p mupen64-sdlinput > /dev/null 2>&1
echo c - mupen64-sdlinput/files
mkdir -p mupen64-sdlinput/files > /dev/null 2>&1
echo x - mupen64-sdlinput/files/patch-SDL_ttf.c
sed 's/^X//' >mupen64-sdlinput/files/patch-SDL_ttf.c << 'END-of-mupen64-sdlinput/files/patch-SDL_ttf.c'
X--- src/SDL_ttf.c.orig	Wed Oct 15 02:44:17 2003
X+++ src/SDL_ttf.c	Thu Aug 12 15:06:42 2004
X@@ -39,7 +39,8 @@
X #define FREEA(p) free(p)
X #endif
X 
X-#include <freetype/freetype.h>
X+#include <ft2build.h>
X+#include FT_FREETYPE_H
X #include <freetype/ftoutln.h>
X #include <freetype/ttnameid.h>
X #include <freetype/internal/ftobjs.h>
END-of-mupen64-sdlinput/files/patch-SDL_ttf.c
echo x - mupen64-sdlinput/Makefile
sed 's/^X//' >mupen64-sdlinput/Makefile << 'END-of-mupen64-sdlinput/Makefile'
X# New ports collection makefile for:	mupen64-sdlinput
X# Date created:		12.Aug 2004
X# Whom:			dirk.meyer@dinoex.sub.org
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mupen64
XPORTVERSION=	0.0.8
XCATEGORIES+=	emulators
XMASTER_SITES=	http://mupen64.emulation64.com/files/0.4/
XPKGNAMESUFFIX=	-sdlinput
XDISTNAME=	blight_input-${PORTVERSION}-b
X
XMAINTAINER?=	tlp@LiquidX.org
XCOMMENT=	Blight's SDL input plugin for Mupen64
X
XLIB_DEPENDS+=	freetype.9:${PORTSDIR}/print/freetype2
X
XGNU_CONFIGURE=	yes
XUSE_GMAKE=	yes
XUSE_SDL=	sdl
XUSE_GCC=	3.3
XUSE_AUTOHEADER_VER=	259
XONLY_FOR_ARCHS=	i386
X
XPLUGIN_NAME=	blight_input
XPLIST_FILES=	share/mupen64/plugins/${PLUGIN_NAME}.so
XPLIST_DIRS=	share/mupen64/plugins
XPLIST_DIRS+=	share/mupen64
X
Xdo-install:
X	@${MKDIR} ${PREFIX}/share/mupen64/plugins
X	${INSTALL_SCRIPT} ${WRKSRC}/src/.libs/${PLUGIN_NAME}.so \
X		${PREFIX}/share/mupen64/plugins/
X
X.include <bsd.port.pre.mk>
X
XCFLAGS+=	-fPIC
XCFLAGS+=	-O3 -fomit-frame-pointer -funroll-loops -ffast-math -Wall -pipe
XCFLAGS+=	-DX86 -mcpu=athlon
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
END-of-mupen64-sdlinput/Makefile
echo x - mupen64-sdlinput/distinfo
sed 's/^X//' >mupen64-sdlinput/distinfo << 'END-of-mupen64-sdlinput/distinfo'
XMD5 (blight_input-0.0.8-b.tar.gz) = 31661c6fca2dc455d7cbe7e87d316021
XSIZE (blight_input-0.0.8-b.tar.gz) = 733624
END-of-mupen64-sdlinput/distinfo
echo x - mupen64-sdlinput/pkg-descr
sed 's/^X//' >mupen64-sdlinput/pkg-descr << 'END-of-mupen64-sdlinput/pkg-descr'
XBlight's SDL input plugin for Mupen64
X-
XMupen64 is a highly portable Nintendo 64 emulator. It has been developed 
Xon/for Linux originally but has already been ported successfully to other 
Xoperating systems. The program can easily be ported to all operating systems 
Xsupported by the SDL library.
X
XIn its current state, the emulator is highly compatible and uses a plugin 
Xsystem. With the correct plugins ("correct" can be computer dependent), it 
Xcan achieve nearly perfect graphics and sound in many games.
X
XWWW: http://mupen64.emulation64.com/
X
X- Travis Poppe
Xtlp@liquidx.org
END-of-mupen64-sdlinput/pkg-descr
echo x - mupen64-sdlinput/pkg-message
sed 's/^X//' >mupen64-sdlinput/pkg-message << 'END-of-mupen64-sdlinput/pkg-message'
X-------------------------------------------------------------------------------
XIf you have installed/upgraded any new plugins or are upgrading from a previous
Xversion of Mupen64, please note that in order for these changes to take effect,
Xyou -must- backup and then remove ~/.mupen64 first. After you have removed the
Xdirectory, run 'mupen64' to re-create it. Then, manually copy back your save 
Xfiles/other data you need from the backup if necessary.
X
XEnjoy!
X-------------------------------------------------------------------------------
END-of-mupen64-sdlinput/pkg-message
echo c - mupen64-sound
mkdir -p mupen64-sound > /dev/null 2>&1
echo c - mupen64-sound/files
mkdir -p mupen64-sound/files > /dev/null 2>&1
echo x - mupen64-sound/files/patch-Makefile
sed 's/^X//' >mupen64-sound/files/patch-Makefile << 'END-of-mupen64-sound/files/patch-Makefile'
X--- Makefile.orig	Sun Jul  4 11:43:39 2004
X+++ Makefile	Thu Aug 12 16:09:11 2004
X@@ -1,7 +1,7 @@
X-CC = gcc
X-CFLAGS = -O3 -fomit-frame-pointer -funroll-loops -ffast-math -mcpu=athlon `gtk-config --cflags` -DUSE_GTK -Wall
X-LD = gcc
X-LDFLAGS = -shared -Wl,-Bsymbolic `gtk-config --libs` -lpthread
X+#CC = gcc
X+#CFLAGS = -O3 -fomit-frame-pointer -funroll-loops -ffast-math -mcpu=athlon `gtk-config --cflags` -DUSE_GTK -Wall
X+#LD = gcc
X+#LDFLAGS = -shared -Wl,-Bsymbolic `gtk-config --libs` -lpthread
X 
X OBJECTS	=	main.o
X 
END-of-mupen64-sound/files/patch-Makefile
echo x - mupen64-sound/Makefile
sed 's/^X//' >mupen64-sound/Makefile << 'END-of-mupen64-sound/Makefile'
X# New ports collection makefile for:	mupen64-sound
X# Date created:		12.Aug 2004
X# Whom:			dirk.meyer@dinoex.sub.org
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mupen64
XPORTVERSION=	0.4
XCATEGORIES+=	emulators
XMASTER_SITES=	http://mupen64.emulation64.com/files/${PORTVERSION}/
XPKGNAMESUFFIX=	-sound
XDISTNAME=	mupen64_sound
X
XMAINTAINER?=	tlp@LiquidX.org
XCOMMENT=	Sound plugin for Mupen64
X
XUSE_BZIP2=	yes
XUSE_GMAKE=	yes
XUSE_GNOME=	gtk12
XUSE_GCC=	3.3
XUSE_REINPLACE=	yes
XONLY_FOR_ARCHS=	i386
X
XPLUGIN_NAME=	mupen64_audio
XPLIST_FILES=	share/mupen64/plugins/${PLUGIN_NAME}.so
XPLIST_DIRS=	share/mupen64/plugins
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|linux/soundcard.h|sys/soundcard.h|' ${WRKSRC}/main.c
X
Xdo-install:
X	@${MKDIR} ${PREFIX}/share/mupen64/plugins
X	${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN_NAME}.so \
X		${PREFIX}/share/mupen64/plugins/
X
X.include <bsd.port.pre.mk>
X
XCFLAGS+=	-DUSE_GTK `${GTK_CONFIG} --cflags` -fPIC
XCFLAGS+=	-O3 -fomit-frame-pointer -funroll-loops -ffast-math -Wall -pipe
XCFLAGS+=	-DX86 -mcpu=athlon
XLDFLAGS+=	-shared -Wl,-Bsymbolic
X
XMAKE_ARGS+=	CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" LD="${CC}"
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
END-of-mupen64-sound/Makefile
echo x - mupen64-sound/distinfo
sed 's/^X//' >mupen64-sound/distinfo << 'END-of-mupen64-sound/distinfo'
XMD5 (mupen64_sound.tar.bz2) = 88dfa0045794db7f1fc100b4c7b23125
XSIZE (mupen64_sound.tar.bz2) = 5932
END-of-mupen64-sound/distinfo
echo x - mupen64-sound/pkg-message
sed 's/^X//' >mupen64-sound/pkg-message << 'END-of-mupen64-sound/pkg-message'
X-------------------------------------------------------------------------------
XIf you have installed/upgraded any new plugins or are upgrading from a previous
Xversion of Mupen64, please note that in order for these changes to take effect,
Xyou -must- backup and then remove ~/.mupen64 first. After you have removed the
Xdirectory, run 'mupen64' to re-create it. Then, manually copy back your save 
Xfiles/other data you need from the backup if necessary.
X
XEnjoy!
X-------------------------------------------------------------------------------
END-of-mupen64-sound/pkg-message
echo x - mupen64-sound/pkg-descr
sed 's/^X//' >mupen64-sound/pkg-descr << 'END-of-mupen64-sound/pkg-descr'
XSound plugin for Mupen64
XTip: Use mupen64-sdlaudio (JttL's SDL plugin) instead!
X-
XMupen64 is a highly portable Nintendo 64 emulator. It has been developed 
Xon/for Linux originally but has already been ported successfully to other 
Xoperating systems. The program can easily be ported to all operating systems 
Xsupported by the SDL library.
X
XIn its current state, the emulator is highly compatible and uses a plugin 
Xsystem. With the correct plugins ("correct" can be computer dependent), it 
Xcan achieve nearly perfect graphics and sound in many games.
X
XWWW: http://mupen64.emulation64.com/
X
X- Travis Poppe
Xtlp@liquidx.org
END-of-mupen64-sound/pkg-descr
exit



>Release-Note:
>Audit-Trail:
>Unformatted:
 with required plugins



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