1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Add zsnes 1.20, an x86 only Super Nintendo Entertainment System

(SNES) Emulator.

PR:		27077
Submitted by:	Stijn Hoop <stijn@win.tue.nl>
This commit is contained in:
Will Andrews 2001-05-20 02:48:11 +00:00
parent 5e85f2ad57
commit 3855bf6132
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=42775
11 changed files with 124 additions and 0 deletions

View File

@ -1,5 +1,6 @@
# $FreeBSD$
#
SUBDIR += zsnes
SUBDIR += aftp
SUBDIR += atari800

46
emulators/zsnes/Makefile Normal file
View File

@ -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>

1
emulators/zsnes/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (zsnesv1.20src.tar.gz) = f8a101cd7504cf620c154d181db6036c

View File

@ -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>

View File

@ -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());

View File

@ -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>

View File

@ -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

View File

@ -0,0 +1 @@
Intel x86 only Super Nintendo Entertainment System (SNES) Emulator

View File

@ -0,0 +1,4 @@
An x86 only Super Nintendo Entertainment System (SNES) Emulator,
with higher compatibility rates than snes9x.
WWW: http://www.zsnes.com/

View File

@ -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*

View File

@ -0,0 +1 @@
bin/zsnes