pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/xm8 emulators/xm8: import xm8-1.70.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/558609ed139c
branches:  trunk
changeset: 339117:558609ed139c
user:      tsutsui <tsutsui%pkgsrc.org@localhost>
date:      Sat Sep 07 00:36:34 2019 +0000

description:
emulators/xm8: import xm8-1.70.

XM8 is "eXcellent Multi-platform emulator type 8", an emulator of
NEC PC-8801 series, based on "ePC-8801MA".

diffstat:

 emulators/xm8/DESCR                                    |    2 +
 emulators/xm8/MESSAGE                                  |    6 +
 emulators/xm8/Makefile                                 |   38 +++
 emulators/xm8/PLIST                                    |    3 +
 emulators/xm8/distinfo                                 |   14 +
 emulators/xm8/patches/patch-Source_UI_app.cpp          |   15 +
 emulators/xm8/patches/patch-Source_UI_emu.cpp          |   14 +
 emulators/xm8/patches/patch-Source_UI_emu__sdl.cpp     |   43 +++
 emulators/xm8/patches/patch-Source_UI_emu__sdl.h       |   24 ++
 emulators/xm8/patches/patch-Source_UI_os.h             |   36 +++
 emulators/xm8/patches/patch-Source_UI_platform.cpp     |  193 +++++++++++++++++
 emulators/xm8/patches/patch-Source_UI_platform.h       |   24 ++
 emulators/xm8/patches/patch-Source_ePC-8801MA_common.h |   31 ++
 13 files changed, 443 insertions(+), 0 deletions(-)

diffs (truncated from 495 to 300 lines):

diff -r 778f16544fcf -r 558609ed139c emulators/xm8/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/xm8/DESCR       Sat Sep 07 00:36:34 2019 +0000
@@ -0,0 +1,2 @@
+XM8 is "eXcellent Multi-platform emulator type 8", an emulator of
+NEC PC-8801 series, based on "ePC-8801MA".
diff -r 778f16544fcf -r 558609ed139c emulators/xm8/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/xm8/MESSAGE     Sat Sep 07 00:36:34 2019 +0000
@@ -0,0 +1,6 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2019/09/07 00:36:34 tsutsui Exp $
+
+Note ROM files captured from a real PC-8801 machine are required in
+~/.local/share/retro_pc_pi/xm8/rom dir to use xm8.
+===========================================================================
diff -r 778f16544fcf -r 558609ed139c emulators/xm8/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/xm8/Makefile    Sat Sep 07 00:36:34 2019 +0000
@@ -0,0 +1,38 @@
+# $NetBSD: Makefile,v 1.1 2019/09/07 00:36:34 tsutsui Exp $
+
+VERSION=               1.70
+DISTNAME=              xm8_${VERSION:S/.//}
+PKGNAME=               xm8-${VERSION}
+#PKGREVISION=          
+CATEGORIES=            emulators
+MASTER_SITES=          http://retropc.net/pi/
+EXTRACT_SUFX=          .zip
+
+MAINTAINER=            tsutsui%NetBSD.org@localhost
+HOMEPAGE=              http://retropc.net/pi/
+COMMENT=               Multi-platform NEC PC-8801 emulator
+LICENSE=               gnu-gpl-v2
+
+EXTRACT_DIR=           ${WRKDIR}/${DISTNAME}
+WRKSRC=                        ${EXTRACT_DIR}
+
+USE_TOOLS+=            gmake unzip
+USE_LANGUAGES=         c c++
+NO_CONFIGURE=          YES
+
+INSTALLATION_DIRS+=    bin share/doc/xm8
+
+post-extract:
+       (cd ${WRKSRC}/Source && ${UNZIP_CMD} Source.zip)
+
+do-build:
+       (cd ${WRKSRC}/Source/Linux && ${GMAKE} -f makefile)
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/Source/Linux/xm8 \
+           ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_DATA} ${WRKSRC}/README-XM8.txt \
+           ${DESTDIR}${PREFIX}/share/doc/xm8
+
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 778f16544fcf -r 558609ed139c emulators/xm8/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/xm8/PLIST       Sat Sep 07 00:36:34 2019 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2019/09/07 00:36:34 tsutsui Exp $
+bin/xm8
+share/doc/xm8/README-XM8.txt
diff -r 778f16544fcf -r 558609ed139c emulators/xm8/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/xm8/distinfo    Sat Sep 07 00:36:34 2019 +0000
@@ -0,0 +1,14 @@
+$NetBSD: distinfo,v 1.1 2019/09/07 00:36:34 tsutsui Exp $
+
+SHA1 (xm8_170.zip) = 2992590d22f20007fcc5c739be071e39eef5e342
+RMD160 (xm8_170.zip) = 0860b40bdb74bb53ad84b600edaa58b1c994d391
+SHA512 (xm8_170.zip) = c1e49aefec3c4d08cc21f284960d63af2c126883bfc0119d7cf6babe5e14405fae91ea1123eabaaeb41bce8f6ec2e80257b7db8645ce762487ce5ebc94d0d65b
+Size (xm8_170.zip) = 6186595 bytes
+SHA1 (patch-Source_UI_app.cpp) = ca4de2687454c483a153a83d03c5c4b1f1d9b7a7
+SHA1 (patch-Source_UI_emu.cpp) = 9c7c8357ebdaa41a317319d46e24fbcabe283418
+SHA1 (patch-Source_UI_emu__sdl.cpp) = 2fee35253b04ef95375d91258faffdf92386ebba
+SHA1 (patch-Source_UI_emu__sdl.h) = 2ce15da0e3ab68ff21498bd14832b6a632d14efa
+SHA1 (patch-Source_UI_os.h) = b2aba38179a12cc34fbb368e7dfb77241fe51c72
+SHA1 (patch-Source_UI_platform.cpp) = 124872390589a6a952e865d81b9e0bcd8e0b2228
+SHA1 (patch-Source_UI_platform.h) = 7f34ae8d8e2e88ffae86a52fdde54262b6052de3
+SHA1 (patch-Source_ePC-8801MA_common.h) = 64382225e0a92ab55e8e75564ac449f8c33c8b2e
diff -r 778f16544fcf -r 558609ed139c emulators/xm8/patches/patch-Source_UI_app.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/xm8/patches/patch-Source_UI_app.cpp     Sat Sep 07 00:36:34 2019 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-Source_UI_app.cpp,v 1.1 2019/09/07 00:36:34 tsutsui Exp $
+
+- change rom file directory to ~/.local/share/retro_pc_pi/xm8/rom
+
+--- Source/UI/app.cpp.orig     2018-01-20 05:37:58.000000000 +0000
++++ Source/UI/app.cpp
+@@ -251,7 +251,7 @@ bool App::Init()
+       }
+ 
+       // emulator i/f wrapper
+-      wrapper = new EMU_SDL(video);
++      wrapper = new EMU_SDL(this, video);
+ 
+       // emulator i/f
+       emu = new EMU(wrapper);
diff -r 778f16544fcf -r 558609ed139c emulators/xm8/patches/patch-Source_UI_emu.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/xm8/patches/patch-Source_UI_emu.cpp     Sat Sep 07 00:36:34 2019 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-Source_UI_emu.cpp,v 1.1 2019/09/07 00:36:34 tsutsui Exp $
+
+- change rom file directory to ~/.local/share/retro_pc_pi/xm8/rom
+
+--- Source/UI/emu.cpp.orig     2015-04-20 05:10:30.000000000 +0000
++++ Source/UI/emu.cpp
+@@ -8,6 +8,7 @@
+ */
+ 
+ #include "common.h"
++#include "classes.h"
+ #include "emu.h"
+ #include "emu_sdl.h"
+ 
diff -r 778f16544fcf -r 558609ed139c emulators/xm8/patches/patch-Source_UI_emu__sdl.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/xm8/patches/patch-Source_UI_emu__sdl.cpp        Sat Sep 07 00:36:34 2019 +0000
@@ -0,0 +1,43 @@
+$NetBSD: patch-Source_UI_emu__sdl.cpp,v 1.1 2019/09/07 00:36:34 tsutsui Exp $
+
+- change rom file directory to ~/.local/share/retro_pc_pi/xm8/rom
+
+--- Source/UI/emu_sdl.cpp.orig 2015-05-15 20:47:30.000000000 +0000
++++ Source/UI/emu_sdl.cpp
+@@ -14,6 +14,8 @@
+ #include "common.h"
+ #include "vm.h"
+ #include "classes.h"
++#include "app.h"
++#include "setting.h"
+ #include "video.h"
+ #include "emu_sdl.h"
+ 
+@@ -25,11 +27,12 @@
+ #define EXTERNAL_PATH_ROM                     "XM8/"
+                                                               // replace from EXTERNAL_PATH_ANDROID
+ 
++#define USER_PATH_ROM                         "rom/"
+ //
+ // EMU_SDL()
+ // constructor
+ //
+-EMU_SDL::EMU_SDL(Video *v)
++EMU_SDL::EMU_SDL(App *a, Video *v)
+ {
+ #ifdef __ANDROID__
+       char *replace;
+@@ -47,7 +50,13 @@ EMU_SDL::EMU_SDL(Video *v)
+               strcpy(replace, EXTERNAL_PATH_ROM);
+       }
+ #else
++#if 0
+       strcpy(base_path, SDL_GetBasePath());
++#else
++      setting = a->GetSetting();
++      strcpy(base_path, setting->GetSettingDir());
++      strcat(base_path, USER_PATH_ROM);
++#endif
+ #endif // __ANDROID__
+ }
+ 
diff -r 778f16544fcf -r 558609ed139c emulators/xm8/patches/patch-Source_UI_emu__sdl.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/xm8/patches/patch-Source_UI_emu__sdl.h  Sat Sep 07 00:36:34 2019 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-Source_UI_emu__sdl.h,v 1.1 2019/09/07 00:36:34 tsutsui Exp $
+
+- change rom file directory to ~/.local/share/retro_pc_pi/xm8/rom
+
+--- Source/UI/emu_sdl.h.orig   2015-05-15 21:05:04.000000000 +0000
++++ Source/UI/emu_sdl.h
+@@ -20,7 +20,7 @@ class Video;
+ class EMU_SDL
+ {
+ public:
+-      EMU_SDL(Video *v);
++      EMU_SDL(App *a, Video *v);
+                                                                               // constructor
+       virtual ~EMU_SDL();
+                                                                               // destructor
+@@ -47,6 +47,8 @@ private:
+                                                                               // full path buffer for get_bios_path()
+       Video *video;
+                                                                               // video driver
++      Setting *setting;
++                                                                              // setting driver
+ };
+ 
+ #endif // EMU_SDL_H
diff -r 778f16544fcf -r 558609ed139c emulators/xm8/patches/patch-Source_UI_os.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/xm8/patches/patch-Source_UI_os.h        Sat Sep 07 00:36:34 2019 +0000
@@ -0,0 +1,36 @@
+$NetBSD: patch-Source_UI_os.h,v 1.1 2019/09/07 00:36:34 tsutsui Exp $
+
+- add NetBSD denitions
+
+--- Source/UI/os.h.orig        2015-06-07 13:33:50.000000000 +0000
++++ Source/UI/os.h
+@@ -31,6 +31,7 @@
+ // Linux
+ //
+ #if defined(__linux__) && !defined(__ANDROID__)
++#define UNIX
+ #include <SDL2/SDL.h>
+ #include <stdio.h>
+ #include <string.h>
+@@ -38,9 +39,21 @@
+ #endif // __linux__ && !__ANDROID__
+ 
+ //
++// NetBSD
++//
++#if  defined(__NetBSD__)
++#define UNIX
++#include <SDL.h>
++#include <stdio.h>
++#include <string.h>
++#include <time.h>
++#endif // __NetBSD__
++
++//
+ // Android
+ //
+ #ifdef __ANDROID__
++#define UNIX
+ #include "SDL.h"
+ #include <stdio.h>
+ #include <string.h>
diff -r 778f16544fcf -r 558609ed139c emulators/xm8/patches/patch-Source_UI_platform.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/xm8/patches/patch-Source_UI_platform.cpp        Sat Sep 07 00:36:34 2019 +0000
@@ -0,0 +1,193 @@
+$NetBSD: patch-Source_UI_platform.cpp,v 1.1 2019/09/07 00:36:34 tsutsui Exp $
+
+- add NetBSD denitions
+
+--- Source/UI/platform.cpp.orig        2017-12-30 13:04:42.000000000 +0000
++++ Source/UI/platform.cpp
+@@ -22,15 +22,15 @@
+ #include "converter.h"
+ #include "platform.h"
+ 
+-#if defined(__linux__) && !defined(__ANDROID__)
++#if defined(UNIX) && !defined(__ANDROID__)
+ #include <locale.h>
+-#endif // __linux__ && !__ANDROID__
++#endif // UNIX && !__ANDROID__
+ 
+-#ifdef __linux__
++#if defined(UNIX)
+ #include <dirent.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+-#endif // __linux__
++#endif // UNIX
+ 
+ //
+ // defines
+@@ -63,11 +63,11 @@ Platform::Platform(App *a)
+       ImmDisableIME((DWORD)-1);
+ #endif // _WIN32
+ 
+-#ifdef __linux__
++#if defined(UNIX)
+       dir_handle = NULL;
+       dir_name[0] = '\0';
+       dir_up = false;
+-#endif // __linux__
++#endif // UNIX
+ }
+ 
+ //
+@@ -144,7 +144,7 @@ bool Platform::Init(SDL_Window *window)
+       }
+ #endif // _WIN32 && UNICODE
+ 
+-#if defined(__linux__) && !defined(__ANDROID__)
++#if defined(UNIX) && !defined(__ANDROID__)
+       char *opaque;
+ 
+       // set locale to UTF-8
+@@ -155,7 +155,7 @@ bool Platform::Init(SDL_Window *window)
+                       opaque = setlocale(LC_CTYPE, LOCALE_UTF8);
+               }
+       }
+-#endif // __linux__ && !__ANDROID__
++#endif // UNIX && !__ANDROID__
+ 
+       return true;
+ }
+@@ -186,12 +186,12 @@ void Platform::Deinit()
+       }
+ #endif // _WIN32



Home | Main Index | Thread Index | Old Index