diff options
author | Will Andrews <will@FreeBSD.org> | 2001-05-20 02:48:11 +0000 |
---|---|---|
committer | Will Andrews <will@FreeBSD.org> | 2001-05-20 02:48:11 +0000 |
commit | 3855bf6132cccbf1225a1b9c2cf746ba6c5bd3c1 (patch) | |
tree | 46550a1780572f78e0a2c18f1b0ae573c35dbc17 /emulators/zsnes | |
parent | Add ssh-multiadd 1.3, a tool to add multiple ssh keys to the (diff) |
Add zsnes 1.20, an x86 only Super Nintendo Entertainment System
(SNES) Emulator.
PR: 27077
Submitted by: Stijn Hoop <stijn@win.tue.nl>
Diffstat (limited to 'emulators/zsnes')
-rw-r--r-- | emulators/zsnes/Makefile | 46 | ||||
-rw-r--r-- | emulators/zsnes/distinfo | 1 | ||||
-rw-r--r-- | emulators/zsnes/files/patch-src::linux::protect.c | 12 | ||||
-rw-r--r-- | emulators/zsnes/files/patch-src::linux::zfilew.c | 14 | ||||
-rw-r--r-- | emulators/zsnes/files/patch-src::linux::ztcp.c | 14 | ||||
-rw-r--r-- | emulators/zsnes/files/patch-src::makefile.linux | 22 | ||||
-rw-r--r-- | emulators/zsnes/pkg-comment | 1 | ||||
-rw-r--r-- | emulators/zsnes/pkg-descr | 4 | ||||
-rw-r--r-- | emulators/zsnes/pkg-message | 8 | ||||
-rw-r--r-- | emulators/zsnes/pkg-plist | 1 |
10 files changed, 123 insertions, 0 deletions
diff --git a/emulators/zsnes/Makefile b/emulators/zsnes/Makefile new file mode 100644 index 000000000000..8039c4a04a5f --- /dev/null +++ b/emulators/zsnes/Makefile @@ -0,0 +1,46 @@ +# New ports collection makefile for: zsnes +# Date created: Fri May 4 13:10:11 CEST 2001 +# Whom: Stijn Hoop <stijn@win.tue.nl> +# +# $FreeBSD$ +# + +PORTNAME= zsnes +PORTVERSION= 1.20 +CATEGORIES= emulators +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} +DISTNAME= zsnesv${PORTVERSION}src + +MAINTAINER= stijn@win.tue.nl + +# This must be >= 0.98! +BUILD_DEPENDS= nasm-0.98:${PORTSDIR}/devel/nasm +LIB_DEPENDS= SDL-1.1.3:${PORTSDIR}/devel/sdl12 + +USE_X_PREFIX= yes +USE_GMAKE= yes + +MAN1= zsnes.1 + +# non-portable, for a portable version see emulators/snes9x +ONLY_FOR_ARCHS= i386 + +SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config +MAKE_ENV+= SDL_CONFIG=${SDL_CONFIG} PREFIX=${PREFIX} + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +BUILD_WRKSRC= ${WRKSRC}/src +MAKEFILE= makefile.linux +ALL_TARGET= ALL + +.include <bsd.port.pre.mk> + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/src/zsnes ${PREFIX}/bin/zsnes + ${INSTALL_MAN} ${WRKSRC}/src/linux/zsnes.man ${PREFIX}/man/man1/zsnes.1 + +post-install: + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.post.mk> diff --git a/emulators/zsnes/distinfo b/emulators/zsnes/distinfo new file mode 100644 index 000000000000..93120cdc955e --- /dev/null +++ b/emulators/zsnes/distinfo @@ -0,0 +1 @@ +MD5 (zsnesv1.20src.tar.gz) = f8a101cd7504cf620c154d181db6036c diff --git a/emulators/zsnes/files/patch-src::linux::protect.c b/emulators/zsnes/files/patch-src::linux::protect.c new file mode 100644 index 000000000000..e283e7d3a043 --- /dev/null +++ b/emulators/zsnes/files/patch-src::linux::protect.c @@ -0,0 +1,12 @@ +--- src/linux/protect.c.orig Tue May 1 21:33:14 2001 ++++ src/linux/protect.c Thu May 3 20:17:23 2001 +@@ -16,6 +16,9 @@ + //Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + + #include <stdio.h> ++#ifdef __FreeBSD__ ++#include <sys/types.h> ++#endif + #include <sys/mman.h> + #include <limits.h> + #include <unistd.h> diff --git a/emulators/zsnes/files/patch-src::linux::zfilew.c b/emulators/zsnes/files/patch-src::linux::zfilew.c new file mode 100644 index 000000000000..5483ff407fb4 --- /dev/null +++ b/emulators/zsnes/files/patch-src::linux::zfilew.c @@ -0,0 +1,14 @@ +--- src/linux/zfilew.c.orig Tue May 1 21:33:14 2001 ++++ src/linux/zfilew.c Thu May 3 22:47:47 2001 +@@ -365,6 +365,11 @@ + + *(char *)(DTALocPos + 0x15) = 0; + ++#ifdef __FreeBSD__ ++ if (globbuf.gl_matchc == 0) ++ return -1; ++#endif ++ + stat ( globbuf.gl_pathv[globcur], &filetype ); + + if(ZFileFindATTRIB&0x10 && !S_ISDIR ( filetype.st_mode )) return(ZFileFindNext()); diff --git a/emulators/zsnes/files/patch-src::linux::ztcp.c b/emulators/zsnes/files/patch-src::linux::ztcp.c new file mode 100644 index 000000000000..df10aac41cf4 --- /dev/null +++ b/emulators/zsnes/files/patch-src::linux::ztcp.c @@ -0,0 +1,14 @@ +--- src/linux/ztcp.c.orig Tue May 1 21:33:14 2001 ++++ src/linux/ztcp.c Thu May 3 20:17:23 2001 +@@ -92,7 +92,11 @@ + #include <netdb.h> + #include <unistd.h> + #include <sys/ioctl.h> ++#ifndef __FreeBSD__ + #include <asm/ioctls.h> // for FIONREAD ++#else ++#include <sys/filio.h> // for FIONREAD ++#endif + #else + #include <windows.h> + #include <winsock.h> diff --git a/emulators/zsnes/files/patch-src::makefile.linux b/emulators/zsnes/files/patch-src::makefile.linux new file mode 100644 index 000000000000..d2b9468b6aa7 --- /dev/null +++ b/emulators/zsnes/files/patch-src::makefile.linux @@ -0,0 +1,22 @@ +--- src/makefile.linux.orig Tue May 1 21:33:15 2001 ++++ src/makefile.linux Fri May 4 13:21:00 2001 +@@ -23,7 +23,7 @@ + WINDIR=linux + OBJDIR=obj + ZIPDIR=zip +-MANDIR=/usr/man/man1 ++MANDIR=$(PREFIX)/man/man1 + + CHIPSOBJ=${CHIPDIR}/sfxproc.o ${CHIPDIR}/fxemu2.o ${CHIPDIR}/dsp1proc.o\ + ${CHIPDIR}/fxemu2b.o ${CHIPDIR}/fxemu2c.o ${CHIPDIR}/fxtable.o\ +@@ -58,8 +58,8 @@ + MAINOBJ=cfgload.o endmem.o fixsin.o init.o ui.o vcache.o water.o + + OBJS=${CHIPSOBJ} ${CPUOBJ} ${WINOBJ} ${WINDOSOBJ} ${GUIOBJ} ${VIDEOBJ} ${ZIPOBJ} ${MAINOBJ} +-SDLLIBS := $(shell sdl-config --libs) +-SDLCFLAGS := $(shell sdl-config --cflags) ++SDLLIBS := $(shell $(SDL_CONFIG) --libs) ++SDLCFLAGS := $(shell $(SDL_CONFIG) --cflags) + LIBS=${SDLLIBS} -lz + CFLAGS=-g -Wall -D__LINUX__ ${SDLCFLAGS} + ASM=nasm diff --git a/emulators/zsnes/pkg-comment b/emulators/zsnes/pkg-comment new file mode 100644 index 000000000000..ba1d611ac90f --- /dev/null +++ b/emulators/zsnes/pkg-comment @@ -0,0 +1 @@ +Intel x86 only Super Nintendo Entertainment System (SNES) Emulator diff --git a/emulators/zsnes/pkg-descr b/emulators/zsnes/pkg-descr new file mode 100644 index 000000000000..32827132fb8c --- /dev/null +++ b/emulators/zsnes/pkg-descr @@ -0,0 +1,4 @@ +An x86 only Super Nintendo Entertainment System (SNES) Emulator, +with higher compatibility rates than snes9x. + +WWW: http://www.zsnes.com/ diff --git a/emulators/zsnes/pkg-message b/emulators/zsnes/pkg-message new file mode 100644 index 000000000000..06088d398bcd --- /dev/null +++ b/emulators/zsnes/pkg-message @@ -0,0 +1,8 @@ + +*WARNING* *WARNING* *WARNING* *WARNING* *WARNING* *WARNING* *WARNING* + + Please note that this port does *NOT* work in 16bit color mode! + You must set your X-server to at use least 24bit color. + +*WARNING* *WARNING* *WARNING* *WARNING* *WARNING* *WARNING* *WARNING* + diff --git a/emulators/zsnes/pkg-plist b/emulators/zsnes/pkg-plist new file mode 100644 index 000000000000..2cd30972ee1d --- /dev/null +++ b/emulators/zsnes/pkg-plist @@ -0,0 +1 @@ +bin/zsnes |