From 518b74437135fe1a27f8cc2651aec859dd5d8576 Mon Sep 17 00:00:00 2001 From: tpaul Date: Thu, 19 Jul 2018 04:05:08 +0000 Subject: emulators/softvms: Import version 1.9 An emulator capable of running some Sega VMS games. VMS games run on a Sega Dreamcast memory card called a VMU (or VMS in some regions). It has a 48x32 monochrome LCD display, gamepad, speaker, directional pad, four action buttons, and the ability to connect to other VMUs. ok ok'd and new patches by --- emulators/softvms/DESCR | 6 ++++++ emulators/softvms/Makefile | 26 ++++++++++++++++++++++++++ emulators/softvms/PLIST | 2 ++ emulators/softvms/distinfo | 8 ++++++++ emulators/softvms/patches/patch-Makefile.in | 26 ++++++++++++++++++++++++++ emulators/softvms/patches/patch-mainwin.c | 12 ++++++++++++ 6 files changed, 80 insertions(+) create mode 100644 emulators/softvms/DESCR create mode 100644 emulators/softvms/Makefile create mode 100644 emulators/softvms/PLIST create mode 100644 emulators/softvms/distinfo create mode 100644 emulators/softvms/patches/patch-Makefile.in create mode 100644 emulators/softvms/patches/patch-mainwin.c (limited to 'emulators/softvms') diff --git a/emulators/softvms/DESCR b/emulators/softvms/DESCR new file mode 100644 index 00000000000..f6879c13dd7 --- /dev/null +++ b/emulators/softvms/DESCR @@ -0,0 +1,6 @@ +An emulator capable of running some Sega VMS games. + +VMS games run on a Sega Dreamcast memory card called a VMU (or VMS in +some regions). It has a 48x32 monochrome LCD display, gamepad, +speaker, directional pad, four action buttons, and the ability to +connect to other VMUs. diff --git a/emulators/softvms/Makefile b/emulators/softvms/Makefile new file mode 100644 index 00000000000..f52f4e44f3c --- /dev/null +++ b/emulators/softvms/Makefile @@ -0,0 +1,26 @@ +# $NetBSD: Makefile,v 1.1 2018/07/19 04:05:08 tpaul Exp $ + +DISTNAME= softvms +PKGNAME= softvms-1.9 +CATEGORIES= emulators +MASTER_SITES= http://mc.pp.se/dc/files/ +MASTER_SITES+= https://travispaul.me/distfiles/ + +MAINTAINER= tpaul@NetBSD.org +HOMEPAGE= http://mc.pp.se/dc/sw.html +COMMENT= Emulator capable of running some Sega VMS games +LICENSE= mit + +WRKSRC= ${WRKDIR}/vms +GNU_CONFIGURE= yes +DIST_SUBDIR= ${PKGNAME_NOREV} +INSTALLATION_DIRS= bin + +BUILD_TARGET= vms + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/vms ${DESTDIR}${PREFIX}/bin/vms + +.include "../../x11/libX11/buildlink3.mk" +.include "../../audio/SDL_sound/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/emulators/softvms/PLIST b/emulators/softvms/PLIST new file mode 100644 index 00000000000..6044e8dc917 --- /dev/null +++ b/emulators/softvms/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1 2018/07/19 04:05:08 tpaul Exp $ +bin/vms diff --git a/emulators/softvms/distinfo b/emulators/softvms/distinfo new file mode 100644 index 00000000000..c644ecc6614 --- /dev/null +++ b/emulators/softvms/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1 2018/07/19 04:05:08 tpaul Exp $ + +SHA1 (softvms-1.9/softvms.tar.gz) = 90052ac4dce049c5afd0b7068984d7041f52a3f4 +RMD160 (softvms-1.9/softvms.tar.gz) = e911a2e75428930789b41cd652dc525d872af686 +SHA512 (softvms-1.9/softvms.tar.gz) = 413a0661a69e92ff016dfe3ae93968355171e5b060c9c1dc7d78260e15f83b479b946d42bfabf69393542b5ab0f1e6330068fe3290cbf652af8fa4b21941a10e +Size (softvms-1.9/softvms.tar.gz) = 68595 bytes +SHA1 (patch-Makefile.in) = 0c75a7584a00ec8183ed1afb9db6434f145e1c2d +SHA1 (patch-mainwin.c) = aaaee194e2e2ddd5caa706849df63afd3b21c906 diff --git a/emulators/softvms/patches/patch-Makefile.in b/emulators/softvms/patches/patch-Makefile.in new file mode 100644 index 00000000000..f5e4a3ad756 --- /dev/null +++ b/emulators/softvms/patches/patch-Makefile.in @@ -0,0 +1,26 @@ +$NetBSD: patch-Makefile.in,v 1.1 2018/07/19 04:05:08 tpaul Exp $ + +Avoid GNU make-isms ($^). + +--- Makefile.in.orig 2004-10-03 00:14:51.000000000 +0000 ++++ Makefile.in +@@ -6,15 +6,16 @@ LDFLAGS = @LDFLAGS@ @X_LIBS@ + LIBS = @X_PRE_LIBS@ -lX11 @X_EXTRA_LIBS@ @LIBS@ + + VMSOBJS = main.o mainwin.o cpu.o lcdimg.o getopt.o ++NPDCLCDIMGOBJS = nsplugin.o + + vms: $(VMSOBJS) +- $(CC) -o $@ $^ $(LDFLAGS) $(LIBS) ++ $(CC) -o $@ $(VMSOBJS) $(LDFLAGS) $(LIBS) + + nsplugin: NPdreamcast_lcdimg.so + : + +-NPdreamcast_lcdimg.so: nsplugin.o +- $(LD) -G -o $@ $^ ++NPdreamcast_lcdimg.so: $(NPDCLCDIMGOBJS) ++ $(LD) -G -o $@ $(NPDCLCDIMGOBJS) + + clean : + rm -f vms $(VMSOBJS) diff --git a/emulators/softvms/patches/patch-mainwin.c b/emulators/softvms/patches/patch-mainwin.c new file mode 100644 index 00000000000..3bea91e8c88 --- /dev/null +++ b/emulators/softvms/patches/patch-mainwin.c @@ -0,0 +1,12 @@ +$NetBSD: patch-mainwin.c,v 1.1 2018/07/19 04:05:08 tpaul Exp $ + +Also include , needed for XDestroyImage() and XPutPixel(). + +--- mainwin.c.orig 2004-10-02 19:24:33.000000000 +0000 ++++ mainwin.c +@@ -1,4 +1,5 @@ + #include ++#include + #include + #ifdef HAVE_LIMITS_H + #include -- cgit v1.2.3