Remove zsnes.
Ancient, unmaintained, insecure, non-portable software, with multiple alternatives in-tree. ok sthen@ benoit@
This commit is contained in:
parent
c064f21fda
commit
cf4e2e4219
@ -1,55 +0,0 @@
|
||||
# $OpenBSD: Makefile,v 1.26 2014/12/08 21:35:32 naddy Exp $
|
||||
|
||||
ONLY_FOR_ARCHS= i386
|
||||
|
||||
COMMENT= Super Nintendo emulator for x86
|
||||
VERSION= 1.42
|
||||
DISTNAME= zsnes_${VERSION:S/./_/}
|
||||
PKGNAME= zsnes-${VERSION}
|
||||
REVISION= 0
|
||||
CATEGORIES= emulators games
|
||||
HOMEPAGE= http://www.zsnes.com/
|
||||
|
||||
MAINTAINER= Jonathan Schleifer <js@h3c.de>
|
||||
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=zsnes/}
|
||||
DISTFILES= zsnes${VERSION:S/.//}src${EXTRACT_SUFX}
|
||||
|
||||
# GPL
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
|
||||
WANTLIB= GL SDL c m png pthread stdc++ z
|
||||
|
||||
BUILD_DEPENDS= devel/nasm
|
||||
LIB_DEPENDS= sdl-*-!no_x11:devel/sdl \
|
||||
graphics/png
|
||||
|
||||
AUTOCONF_VERSION= 2.59
|
||||
CONFIGURE_STYLE= autoconf automake
|
||||
CONFIGURE_ARGS= --with-sdl-prefix=${LOCALBASE} \
|
||||
--with-png \
|
||||
--with-opengl \
|
||||
--target=${MACHINE}-unknown-openbsd${OSREV}
|
||||
CONFIGURE_ENV+= LDFLAGS="-lm" \
|
||||
CFLAGS="${CFLAGS:N-O*} -I${X11BASE}/include"
|
||||
ALL_TARGET=
|
||||
|
||||
WRKSRC= ${WRKDIST}/src
|
||||
|
||||
NO_TEST= Yes
|
||||
|
||||
post-extract:
|
||||
rm -fr ${WRKSRC}/obj
|
||||
|
||||
post-patch:
|
||||
cd ${WRKSRC} && AUTOMAKE_VERSION=1.4 ${LOCALBASE}/bin/aclocal
|
||||
|
||||
DOCSDIR= ${PREFIX}/share/doc/zsnes
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKDIST}/docs/Linux/*.* ${DOCSDIR}
|
||||
${INSTALL_DATA_DIR} ${DOCSDIR}/images
|
||||
${INSTALL_DATA} ${WRKDIST}/docs/Linux/images/* ${DOCSDIR}/images
|
||||
|
||||
.include <bsd.port.mk>
|
@ -1,2 +0,0 @@
|
||||
SHA256 (zsnes142src.tar.gz) = 8G7xTbjT/a6dfBJEKlLlNaX+7hyxjHi1GnTtKC7YdL4=
|
||||
SIZE (zsnes142src.tar.gz) = 1102840
|
@ -1,20 +0,0 @@
|
||||
$OpenBSD: patch-src_Makefile_in,v 1.4 2005/10/21 18:07:10 naddy Exp $
|
||||
--- src/Makefile.in.orig Mon Oct 3 23:10:46 2005
|
||||
+++ src/Makefile.in Mon Oct 3 23:10:51 2005
|
||||
@@ -76,13 +76,13 @@ OBJS=${CHIPSOBJ} ${CPUOBJ} ${WINOBJ} ${W
|
||||
|
||||
.SUFFIXES: .cpp .c .asm
|
||||
|
||||
-%.o: %.cpp
|
||||
+.cpp.o:
|
||||
@CXX@ @CFLAGS@ -o $@ -c $<
|
||||
|
||||
-%.o: %.c
|
||||
+.c.o:
|
||||
@CC@ @CFLAGS@ -o $@ -c $<
|
||||
|
||||
-%.o: %.asm
|
||||
+.asm.o:
|
||||
@NASMPATH@ @NFLAGS@ -o $@ $<
|
||||
|
||||
ALL: @ZSNESEXE@
|
@ -1,21 +0,0 @@
|
||||
$OpenBSD: patch-src_cfgload_c,v 1.1 2005/10/21 18:07:10 naddy Exp $
|
||||
--- src/cfgload.c.orig Tue Oct 4 00:12:19 2005
|
||||
+++ src/cfgload.c Tue Oct 4 00:13:22 2005
|
||||
@@ -68,7 +68,7 @@ Foundation, Inc., 675 Mass Ave, Cambridg
|
||||
#define ASCIIChar2Bool(x) (((x)-'0') ? 1 : 0)
|
||||
|
||||
extern char CMDLineStr[256];
|
||||
-extern char LoadDir[128];
|
||||
+extern char LoadDir[1024];
|
||||
extern char LoadDrive[2];
|
||||
|
||||
extern unsigned int pl2selk;
|
||||
@@ -146,7 +146,7 @@ extern char zcfgdir[1024];
|
||||
char SRAMDir[1024];
|
||||
|
||||
char LoadDriveB[2];
|
||||
-char LoadDirB[128];
|
||||
+char LoadDirB[1024];
|
||||
|
||||
//extern "C"{
|
||||
unsigned char cfgsoundon = 0;
|
@ -1,48 +0,0 @@
|
||||
$OpenBSD: patch-src_configure_in,v 1.7 2005/10/21 18:07:10 naddy Exp $
|
||||
--- src/configure.in.orig Mon Oct 3 23:11:56 2005
|
||||
+++ src/configure.in Mon Oct 3 23:14:21 2005
|
||||
@@ -39,7 +39,7 @@ case "$target" in
|
||||
;;
|
||||
*-*-*openbsd*)
|
||||
CFLAGS="$CFLAGS -D__LINUX__ -D__FreeBSD__"
|
||||
- NFLAGS="$NFLAGS -D__LINUX__ -D__FreeBSD__ -D__OpenBSD__ -f aoutb"
|
||||
+ NFLAGS="$NFLAGS -D__LINUX__ -D__FreeBSD__ -D__OpenBSD__ -DELF -f elf"
|
||||
;;
|
||||
*-*-*bsd*)
|
||||
CFLAGS="$CFLAGS -D__LINUX__ -D__FreeBSD__"
|
||||
@@ -118,34 +118,9 @@ if test x$debug = xyes; then
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
|
||||
- CFLAGS="$CFLAGS -O3 -ffast-math -fomit-frame-pointer -fexpensive-optimizations -s"
|
||||
+ CFLAGS="$CFLAGS -O3 -ffast-math -fomit-frame-pointer -fexpensive-optimizations"
|
||||
NFLAGS="$NFLAGS -O1"
|
||||
ZSNESEXE="zsnes"
|
||||
-fi
|
||||
-
|
||||
-AC_MSG_CHECKING(which processor class to optimize for)
|
||||
-if test x$debug != xyes; then
|
||||
- case "$target" in
|
||||
- i486-*-*)
|
||||
- CFLAGS="$CFLAGS -march=i486"
|
||||
- AC_MSG_RESULT(486)
|
||||
- ;;
|
||||
- i586-*-*)
|
||||
- CFLAGS="$CFLAGS -march=pentium"
|
||||
- AC_MSG_RESULT(586)
|
||||
- ;;
|
||||
- i686-*-*)
|
||||
- CFLAGS="$CFLAGS -march=pentiumpro"
|
||||
- dnl CFLAGS="$CFLAGS -march=pentium3 -mmmx -msse -mfpmath=sse,387"
|
||||
- AC_MSG_RESULT(686)
|
||||
- ;;
|
||||
- *)
|
||||
- AC_MSG_RESULT(386)
|
||||
- AC_MSG_WARN(*** This is probably not what you want use --target)
|
||||
- ;;
|
||||
- esac
|
||||
-else
|
||||
- AC_MSG_RESULT(no optimization because debug enabled)
|
||||
fi
|
||||
|
||||
dnl Checks for header files.
|
@ -1,15 +0,0 @@
|
||||
$OpenBSD: patch-src_effects_smoke_c,v 1.1 2005/10/21 18:07:10 naddy Exp $
|
||||
--- src/effects/smoke.c.orig Mon Oct 3 23:21:02 2005
|
||||
+++ src/effects/smoke.c Mon Oct 3 23:21:35 2005
|
||||
@@ -13,9 +13,10 @@ Should be fire, but looks more like smok
|
||||
|
||||
*/
|
||||
|
||||
-
|
||||
+#ifndef MIN
|
||||
#define MIN(x, y) \
|
||||
(((x) < (y)) ? (x) : (y))
|
||||
+#endif
|
||||
|
||||
#define ABS(x) \
|
||||
(((x) >= 0) ? (x) : ( - (x)))
|
@ -1,14 +0,0 @@
|
||||
$OpenBSD: patch-src_gblhdr_h,v 1.3 2005/10/21 18:07:10 naddy Exp $
|
||||
--- src/gblhdr.h.orig Mon Oct 3 23:14:52 2005
|
||||
+++ src/gblhdr.h Mon Oct 3 23:15:10 2005
|
||||
@@ -72,9 +72,7 @@ Foundation, Inc., 675 Mass Ave, Cambridg
|
||||
|
||||
// unistd.h stuff
|
||||
|
||||
- //#if HAVE_UNISTD_H
|
||||
- //Small hack for now
|
||||
- #if unix
|
||||
+ #if HAVE_UNISTD_H
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
@ -1,38 +0,0 @@
|
||||
$OpenBSD: patch-src_linux_zfilew_c,v 1.1 2005/10/21 18:07:10 naddy Exp $
|
||||
--- src/linux/zfilew.c.orig Fri Jan 14 14:11:19 2005
|
||||
+++ src/linux/zfilew.c Tue Oct 4 00:42:40 2005
|
||||
@@ -459,7 +459,7 @@ DWORD GetDate()
|
||||
}
|
||||
|
||||
extern char SRAMDir[1024];
|
||||
-extern char LoadDir[512];
|
||||
+extern char LoadDir[1024];
|
||||
|
||||
#ifdef __LINUX__
|
||||
|
||||
@@ -474,11 +474,12 @@ void obtaindir()
|
||||
|
||||
if ((homedir = (char *)getenv("HOME")) == 0)
|
||||
{
|
||||
- homedir = (char *)malloc(ZCFG_DIR_LEN);
|
||||
- getcwd(homedir, ZCFG_DIR_LEN);
|
||||
+ getcwd(zcfgdir, ZCFG_DIR_LEN);
|
||||
}
|
||||
- strcpy(zcfgdir, homedir);
|
||||
- free(homedir);
|
||||
+ else
|
||||
+ {
|
||||
+ strcpy(zcfgdir, homedir);
|
||||
+ }
|
||||
strcat(zcfgdir, ZCFG_DIR);
|
||||
tmp = opendir(zcfgdir);
|
||||
if (tmp == NULL)
|
||||
@@ -496,7 +497,7 @@ void obtaindir()
|
||||
}
|
||||
if (*LoadDir == 0)
|
||||
{
|
||||
- getcwd(LoadDir, 512);
|
||||
+ getcwd(LoadDir, 1024);
|
||||
}
|
||||
}
|
||||
|
@ -1,12 +0,0 @@
|
||||
$OpenBSD: patch-src_ui_asm,v 1.1 2005/10/21 18:07:11 naddy Exp $
|
||||
--- src/ui.asm.orig Tue Oct 4 00:11:28 2005
|
||||
+++ src/ui.asm Tue Oct 4 00:11:51 2005
|
||||
@@ -1237,7 +1237,7 @@ NEWSYM gotoroot, db '\',0
|
||||
|
||||
SECTION .bss
|
||||
NEWSYM InitDir, resb 512
|
||||
-NEWSYM LoadDir, resb 512
|
||||
+NEWSYM LoadDir, resb 1024
|
||||
|
||||
SECTION .text
|
||||
|
@ -1,15 +0,0 @@
|
||||
$OpenBSD: patch-src_zip_zpng_c,v 1.1 2011/07/08 20:38:01 naddy Exp $
|
||||
|
||||
Fix build with png-1.5.
|
||||
|
||||
--- src/zip/zpng.c.orig Wed Jul 6 11:41:15 2011
|
||||
+++ src/zip/zpng.c Wed Jul 6 11:41:26 2011
|
||||
@@ -83,8 +83,6 @@ int Png_Dump(const char * filename, unsigned short wid
|
||||
8, PNG_COLOR_TYPE_RGB_ALPHA, PNG_INTERLACE_NONE,
|
||||
PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT);
|
||||
|
||||
- info_ptr->color_type=PNG_COLOR_TYPE_RGB_ALPHA;
|
||||
-
|
||||
/*Allocate an array of scanline pointers*/
|
||||
row_pointers=(png_bytep*)malloc(height*sizeof(png_bytep));
|
||||
for (i=0;i<height;i++)
|
@ -1,3 +0,0 @@
|
||||
ZSNES is a complete, featureful and highly optimized Super Nintendo
|
||||
emulator written mostly in x86 assembler. It requires a CPU which
|
||||
understands MMX instructions.
|
@ -1,29 +0,0 @@
|
||||
@comment $OpenBSD: PLIST,v 1.4 2005/10/21 18:07:11 naddy Exp $
|
||||
bin/zsnes
|
||||
@man man/man1/zsnes.1
|
||||
share/doc/zsnes/
|
||||
share/doc/zsnes/about.htm
|
||||
share/doc/zsnes/bugs.htm
|
||||
share/doc/zsnes/credits.htm
|
||||
share/doc/zsnes/faq.htm
|
||||
share/doc/zsnes/gui.htm
|
||||
share/doc/zsnes/images/
|
||||
share/doc/zsnes/images/cheat.png
|
||||
share/doc/zsnes/images/config.png
|
||||
share/doc/zsnes/images/corner.png
|
||||
share/doc/zsnes/images/f1_menu.png
|
||||
share/doc/zsnes/images/game.png
|
||||
share/doc/zsnes/images/get.png
|
||||
share/doc/zsnes/images/gui.png
|
||||
share/doc/zsnes/images/linuxlogo.png
|
||||
share/doc/zsnes/images/misc.png
|
||||
share/doc/zsnes/images/netplay.png
|
||||
share/doc/zsnes/images/quick.png
|
||||
share/doc/zsnes/images/safer.png
|
||||
share/doc/zsnes/images/valid-xhtml11.png
|
||||
share/doc/zsnes/images/vcss.png
|
||||
share/doc/zsnes/images/zsneslogo.png
|
||||
share/doc/zsnes/license.txt
|
||||
share/doc/zsnes/netplay.htm
|
||||
share/doc/zsnes/readme.htm
|
||||
share/doc/zsnes/style.css
|
Loading…
x
Reference in New Issue
Block a user