summaryrefslogtreecommitdiff
path: root/emulators/softvms
diff options
context:
space:
mode:
authortpaul <tpaul@pkgsrc.org>2018-07-19 04:05:08 +0000
committertpaul <tpaul@pkgsrc.org>2018-07-19 04:05:08 +0000
commit518b74437135fe1a27f8cc2651aec859dd5d8576 (patch)
tree8cba699d42fbd31191abb033ad299923dd2e386f /emulators/softvms
parent529d513112927b8a4306e02ebc97c314611203ef (diff)
downloadpkgsrc-518b74437135fe1a27f8cc2651aec859dd5d8576.tar.gz
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 <maya> ok'd and new patches by <leot>
Diffstat (limited to 'emulators/softvms')
-rw-r--r--emulators/softvms/DESCR6
-rw-r--r--emulators/softvms/Makefile26
-rw-r--r--emulators/softvms/PLIST2
-rw-r--r--emulators/softvms/distinfo8
-rw-r--r--emulators/softvms/patches/patch-Makefile.in26
-rw-r--r--emulators/softvms/patches/patch-mainwin.c12
6 files changed, 80 insertions, 0 deletions
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 <X11/Xutil.h>, needed for XDestroyImage() and XPutPixel().
+
+--- mainwin.c.orig 2004-10-02 19:24:33.000000000 +0000
++++ mainwin.c
+@@ -1,4 +1,5 @@
+ #include <X11/Xlib.h>
++#include <X11/Xutil.h>
+ #include <X11/keysym.h>
+ #ifdef HAVE_LIMITS_H
+ #include <limits.h>