summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
Diffstat (limited to 'emulators')
-rw-r--r--emulators/raine/DESCR4
-rw-r--r--emulators/raine/Makefile32
-rw-r--r--emulators/raine/PLIST29
-rw-r--r--emulators/raine/distinfo7
-rw-r--r--emulators/raine/files/raine.sh7
-rw-r--r--emulators/raine/patches/patch-aa73
-rw-r--r--emulators/raine/patches/patch-ab150
-rw-r--r--emulators/raine/patches/patch-ac22
8 files changed, 324 insertions, 0 deletions
diff --git a/emulators/raine/DESCR b/emulators/raine/DESCR
new file mode 100644
index 00000000000..9595ad320b2
--- /dev/null
+++ b/emulators/raine/DESCR
@@ -0,0 +1,4 @@
+Raine is an emulator, it emulates some M68000 and M68020 arcade games and is
+mainly focused on Taito and Jaleco games hardware. It started as an experiment
+with the Rainbow Islands romset, dumped by Aracorn/Romlist. Raine can emulate
+many nice games now, including new additions from Cave and other companies.
diff --git a/emulators/raine/Makefile b/emulators/raine/Makefile
new file mode 100644
index 00000000000..7a5c21d5f2b
--- /dev/null
+++ b/emulators/raine/Makefile
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/04/05 05:05:27 xtraeme Exp $
+#
+
+DISTNAME= raines-0.40.0
+PKGNAME= ${DISTNAME:S/raines/raine/}
+CATEGORIES= emulators
+MASTER_SITES= http://www.rainemu.com/html/archive/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= xtraeme@NetBSD.org
+HOMEPAGE= http://www.rainemu.com/
+COMMENT= 680x0 Arcade Emulator
+
+BUILD_DEPENDS+= nasm-[0-9]*:../../devel/nasm
+
+WRKSRC= ${WRKDIR}/raine
+USE_BUILDLINK3= yes
+USE_GNU_TOOLS+= make
+MAKEFILE= makefile
+MAKE_ENV+= OSTYPE=linux
+USE_PERL5= run
+
+ONLY_FOR_PLATFORM= *-*-i386
+
+pre-install:
+ @${SED} -e s,@RAINEDATA@,${PREFIX}/share/raine, \
+ ${FILESDIR}/raine.sh > ${WRKSRC}/raine.sh
+ @${INSTALL_SCRIPT} ${WRKSRC}/raine.sh ${PREFIX}/bin/raine
+
+.include "../../devel/allegro/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/emulators/raine/PLIST b/emulators/raine/PLIST
new file mode 100644
index 00000000000..afb2450e48e
--- /dev/null
+++ b/emulators/raine/PLIST
@@ -0,0 +1,29 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/04/05 05:05:28 xtraeme Exp $
+bin/raine
+share/raine/languages/Brasil.cfg
+share/raine/languages/CZECH.CFG
+share/raine/languages/Catala.cfg
+share/raine/languages/Dansk.cfg
+share/raine/languages/Dutch.cfg
+share/raine/languages/English.cfg
+share/raine/languages/Espaņol.cfg
+share/raine/languages/Euskera.cfg
+share/raine/languages/Finnish.cfg
+share/raine/languages/French.cfg
+share/raine/languages/French2.cfg
+share/raine/languages/German.cfg
+share/raine/languages/German2.cfg
+share/raine/languages/Italian.cfg
+share/raine/languages/Japanese.cfg
+share/raine/languages/POLISH.CFG
+share/raine/languages/Portugal.cfg
+share/raine/languages/Spanish.cfg
+share/raine/languages/Svenska.cfg
+share/raine/languages/Template.cfg
+share/raine/languages/Turkish.cfg
+share/raine/languages/galego.cfg
+share/raine/raine
+share/raine/raine.dat
+@dirrm share/raine/languages
+@dirrm share/raine/roms
+@dirrm share/raine
diff --git a/emulators/raine/distinfo b/emulators/raine/distinfo
new file mode 100644
index 00000000000..ac2f26a798e
--- /dev/null
+++ b/emulators/raine/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/04/05 05:05:28 xtraeme Exp $
+
+SHA1 (raines-0.40.0.tar.bz2) = bb3fe7aa758f8081e5aa14632ddff1858dfb86bb
+Size (raines-0.40.0.tar.bz2) = 1505268 bytes
+SHA1 (patch-aa) = abee628fbe69a12a98fdc88aee96f59a7a2ec721
+SHA1 (patch-ab) = 3fc85718ec2079fbbb7a59d06f782e2832889d0a
+SHA1 (patch-ac) = 40ec161397eed474a1274ea8f0e802eb5e687608
diff --git a/emulators/raine/files/raine.sh b/emulators/raine/files/raine.sh
new file mode 100644
index 00000000000..3c0d7b1debb
--- /dev/null
+++ b/emulators/raine/files/raine.sh
@@ -0,0 +1,7 @@
+#! /bin/sh
+#
+# $NetBSD: raine.sh,v 1.1.1.1 2004/04/05 05:05:28 xtraeme Exp $
+#
+
+cd @RAINEDATA@ && ./raine "$@"
+exit 0
diff --git a/emulators/raine/patches/patch-aa b/emulators/raine/patches/patch-aa
new file mode 100644
index 00000000000..53f0604a2f2
--- /dev/null
+++ b/emulators/raine/patches/patch-aa
@@ -0,0 +1,73 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/04/05 05:05:28 xtraeme Exp $
+
+--- makefile.orig 2004-04-05 06:00:31.000000000 +0200
++++ makefile 2004-04-05 06:08:35.000000000 +0200
+@@ -171,10 +171,10 @@
+
+ # SDL = 1
+
+- bindir = $(prefix)/usr/games
+- sharedir = $(prefix)/usr/share
++ bindir = $(PREFIX)/bin
++ sharedir = $(PREFIX)/share
+ mandir = $(sharedir)/man/man6
+- rainedata = $(sharedir)/games/raine
++ rainedata = $(sharedir)/raine
+ langdir = $(rainedata)/languages
+ romdir = $(rainedata)/roms
+
+@@ -197,10 +197,10 @@
+ DEFINE = -D__RAINE__ \
+ -DRAINE_UNIX \
+
+- LIBS = -lz `allegro-config --libs` -lvga # -lreadline -lefence
+- LIBS_DEBUG = -lz -lvga `allegro-config --libs debug`
++ LIBS = -lz `allegro-config --libs` # -lreadline -lefence
++ LIBS_DEBUG = -lz `allegro-config --libs debug`
+
+- LIBS_STATIC = -lz -lvga `allegro-config --static`
++ LIBS_STATIC = -lz `allegro-config --static`
+
+ endif # linux / mingw32
+ endif # djgpp
+@@ -950,11 +950,7 @@
+ make.dep:
+ ./makedep $(OBJDIR) $(OBJS) > make.dep
+
+-cpuinfo:
+- @sh ./detect-cpu
+-
+ include make.dep
+-include cpuinfo
+
+ # create directories
+
+@@ -983,7 +979,6 @@
+ $(RM) -r $(OBJDIR)
+ @echo Deleting $(RAINE_EXE)...
+ $(RM) $(RAINE_EXE) make.dep
+- $(RM) cpuinfo
+
+ vclean:
+ @echo make vclean is no longer necessary, just type make clean
+@@ -992,14 +987,16 @@
+ install: install_dirs $(RAINE_LNG)
+ ifdef RAINE_LINUX
+
+- $(INSTALL_BIN) $(RAINE_EXE) $(bindir)
+- $(INSTALL_DATA) $(RAINE_DAT) $(rainedata)
++ $(BSD_INSTALL_PROGRAM) $(RAINE_EXE) $(rainedata)
++ $(BSD_INSTALL_DATA) $(RAINE_DAT) $(rainedata)
+
+ install_dirs:
+- $(MD) -pv $(bindir) $(rainedata) $(langdir) $(romdir)
++ $(BSD_INSTALL_DATA_DIR) $(rainedata)
++ $(BSD_INSTALL_DATA_DIR) $(langdir)
++ $(BSD_INSTALL_DATA_DIR) $(romdir)
+
+ $(RAINE_LNG):
+- $(INSTALL_DATA) config/language/$@ $(langdir)
++ $(BSD_INSTALL_DATA) config/language/$@ $(langdir)
+
+ else
+ @echo There is no needs to install for a win32/dos system
diff --git a/emulators/raine/patches/patch-ab b/emulators/raine/patches/patch-ab
new file mode 100644
index 00000000000..07040b05809
--- /dev/null
+++ b/emulators/raine/patches/patch-ab
@@ -0,0 +1,150 @@
+$NetBSD: patch-ab,v 1.1.1.1 2004/04/05 05:05:29 xtraeme Exp $
+
+--- source/unzip.h.orig 2004-04-05 05:50:54.000000000 +0200
++++ source/unzip.h 2004-04-05 05:53:19.000000000 +0200
+@@ -142,9 +142,9 @@
+ tm_unz tmu_date;
+ } unz_file_info;
+
+-extern int ZEXPORT unzStringFileNameCompare OF ((const char* fileName1,
++extern int ZEXPORT unzStringFileNameCompare (const char* fileName1,
+ const char* fileName2,
+- int iCaseSensitivity));
++ int iCaseSensitivity);
+ /*
+ Compare two filename (fileName1,fileName2).
+ If iCaseSenisivity = 1, comparision is case sensitivity (like strcmp)
+@@ -155,7 +155,7 @@
+ */
+
+
+-extern unzFile ZEXPORT unzOpen OF((const char *path));
++extern unzFile ZEXPORT unzOpen (const char *path);
+ /*
+ Open a Zip file. path contain the full pathname (by example,
+ on a Windows NT computer "c:\\zlib\\zlib111.zip" or on an Unix computer
+@@ -166,24 +166,24 @@
+ of this unzip package.
+ */
+
+-extern int ZEXPORT unzClose OF((unzFile file));
++extern int ZEXPORT unzClose (unzFile file);
+ /*
+ Close a ZipFile opened with unzipOpen.
+ If there is files inside the .Zip opened with unzOpenCurrentFile (see later),
+ these files MUST be closed with unzipCloseCurrentFile before call unzipClose.
+ return UNZ_OK if there is no problem. */
+
+-extern int ZEXPORT unzGetGlobalInfo OF((unzFile file,
+- unz_global_info *pglobal_info));
++extern int ZEXPORT unzGetGlobalInfo (unzFile file,
++ unz_global_info *pglobal_info);
+ /*
+ Write info about the ZipFile in the *pglobal_info structure.
+ No preparation of the structure is needed
+ return UNZ_OK if there is no problem. */
+
+
+-extern int ZEXPORT unzGetGlobalComment OF((unzFile file,
++extern int ZEXPORT unzGetGlobalComment (unzFile file,
+ char *szComment,
+- uLong uSizeBuf));
++ uLong uSizeBuf);
+ /*
+ Get the global comment string of the ZipFile, in the szComment buffer.
+ uSizeBuf is the size of the szComment buffer.
+@@ -194,22 +194,22 @@
+ /***************************************************************************/
+ /* Unzip package allow you browse the directory of the zipfile */
+
+-extern int ZEXPORT unzGoToFirstFile OF((unzFile file));
++extern int ZEXPORT unzGoToFirstFile (unzFile file);
+ /*
+ Set the current file of the zipfile to the first file.
+ return UNZ_OK if there is no problem
+ */
+
+-extern int ZEXPORT unzGoToNextFile OF((unzFile file));
++extern int ZEXPORT unzGoToNextFile (unzFile file);
+ /*
+ Set the current file of the zipfile to the next file.
+ return UNZ_OK if there is no problem
+ return UNZ_END_OF_LIST_OF_FILE if the actual file was the latest.
+ */
+
+-extern int ZEXPORT unzLocateFile OF((unzFile file,
++extern int ZEXPORT unzLocateFile (unzFile file,
+ const char *szFileName,
+- int iCaseSensitivity));
++ int iCaseSensitivity);
+ /*
+ Try locate the file szFileName in the zipfile.
+ For the iCaseSensitivity signification, see unzStringFileNameCompare
+@@ -220,14 +220,14 @@
+ */
+
+
+-extern int ZEXPORT unzGetCurrentFileInfo OF((unzFile file,
++extern int ZEXPORT unzGetCurrentFileInfo (unzFile file,
+ unz_file_info *pfile_info,
+ char *szFileName,
+ uLong fileNameBufferSize,
+ void *extraField,
+ uLong extraFieldBufferSize,
+ char *szComment,
+- uLong commentBufferSize));
++ uLong commentBufferSize);
+ /*
+ Get Info about the current file
+ if pfile_info!=NULL, the *pfile_info structure will contain somes info about
+@@ -246,22 +246,22 @@
+ from it, and close it (you can close it before reading all the file)
+ */
+
+-extern int ZEXPORT unzOpenCurrentFile OF((unzFile file));
++extern int ZEXPORT unzOpenCurrentFile (unzFile file);
+ /*
+ Open for reading data the current file in the zipfile.
+ If there is no error, the return value is UNZ_OK.
+ */
+
+-extern int ZEXPORT unzCloseCurrentFile OF((unzFile file));
++extern int ZEXPORT unzCloseCurrentFile (unzFile file);
+ /*
+ Close the file in zip opened with unzOpenCurrentFile
+ Return UNZ_CRCERROR if all the file was read but the CRC is not good
+ */
+
+
+-extern int ZEXPORT unzReadCurrentFile OF((unzFile file,
++extern int ZEXPORT unzReadCurrentFile (unzFile file,
+ voidp buf,
+- unsigned len));
++ unsigned len);
+ /*
+ Read bytes from the current file (opened by unzOpenCurrentFile)
+ buf contain buffer where data must be copied
+@@ -273,19 +273,19 @@
+ (UNZ_ERRNO for IO error, or zLib error for uncompress error)
+ */
+
+-extern z_off_t ZEXPORT unztell OF((unzFile file));
++extern z_off_t ZEXPORT unztell (unzFile file);
+ /*
+ Give the current position in uncompressed data
+ */
+
+-extern int ZEXPORT unzeof OF((unzFile file));
++extern int ZEXPORT unzeof (unzFile file);
+ /*
+ return 1 if the end of file was reached, 0 elsewhere
+ */
+
+-extern int ZEXPORT unzGetLocalExtrafield OF((unzFile file,
++extern int ZEXPORT unzGetLocalExtrafield (unzFile file,
+ voidp buf,
+- unsigned len));
++ unsigned len);
+ /*
+ Read extra field from the current file (opened by unzOpenCurrentFile)
+ This is the local-header version of the extra field (sometimes, there is
diff --git a/emulators/raine/patches/patch-ac b/emulators/raine/patches/patch-ac
new file mode 100644
index 00000000000..b7e33929117
--- /dev/null
+++ b/emulators/raine/patches/patch-ac
@@ -0,0 +1,22 @@
+$NetBSD: patch-ac,v 1.1.1.1 2004/04/05 05:05:29 xtraeme Exp $
+
+--- source/unzip.c.orig 2004-04-05 05:55:28.000000000 +0200
++++ source/unzip.c 2004-04-05 05:55:54.000000000 +0200
+@@ -493,7 +493,7 @@
+ /*
+ Get Info about the current file in the zipfile, with internal only info
+ */
+-local int unzlocal_GetCurrentFileInfoInternal OF((unzFile file,
++local int unzlocal_GetCurrentFileInfoInternal (unzFile file,
+ unz_file_info *pfile_info,
+ unz_file_info_internal
+ *pfile_info_internal,
+@@ -502,7 +502,7 @@
+ void *extraField,
+ uLong extraFieldBufferSize,
+ char *szComment,
+- uLong commentBufferSize));
++ uLong commentBufferSize);
+
+ local int unzlocal_GetCurrentFileInfoInternal (file,
+ pfile_info,