summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2018-05-21 16:12:14 +0000
committerminskim <minskim@pkgsrc.org>2018-05-21 16:12:14 +0000
commit47c34db0ce11ca51f972e645ba81aa81124aa951 (patch)
treebd85c25c200b847fb39411f0a4d795701157b6a1
parentf09c8cce4c0f00edfb071aacb7108dad4ac648c9 (diff)
downloadpkgsrc-47c34db0ce11ca51f972e645ba81aa81124aa951.tar.gz
devel/lcdis: Import version 1.04
LCDIS - LC86104C/108C disassembler for the Sega VMU/VMS Features: - Sanyo LC86104C/108C disassembler, plus extra instructions used by the VMU - Automatic determination of code/data space. - Automatic determination of RAM banks accessed (mostly) - Special function registers and BIOS entry points are annotated. - Some instructions are commented (i.e. branch if 'A' button pressed) - Disassembly output has been tested and found accurate. - Either easier-to-read or ready-to-assemble code can be generated. - User specification of graphic & font areas (which are commented graphically) - Portable GPL C code. (with C++ style comments). Packaged by Travis Paul for pkgsrc-wip.
-rw-r--r--devel/lcdis/DESCR12
-rw-r--r--devel/lcdis/Makefile25
-rw-r--r--devel/lcdis/PLIST2
-rw-r--r--devel/lcdis/distinfo8
-rw-r--r--devel/lcdis/patches/patch-LCDIS.C15
-rw-r--r--devel/lcdis/patches/patch-LCDIS.H24
6 files changed, 86 insertions, 0 deletions
diff --git a/devel/lcdis/DESCR b/devel/lcdis/DESCR
new file mode 100644
index 00000000000..0a373396509
--- /dev/null
+++ b/devel/lcdis/DESCR
@@ -0,0 +1,12 @@
+LCDIS - LC86104C/108C disassembler for the Sega VMU/VMS
+
+Features:
+ - Sanyo LC86104C/108C disassembler, plus extra instructions used by the VMU
+ - Automatic determination of code/data space.
+ - Automatic determination of RAM banks accessed (mostly)
+ - Special function registers and BIOS entry points are annotated.
+ - Some instructions are commented (i.e. branch if 'A' button pressed)
+ - Disassembly output has been tested and found accurate.
+ - Either easier-to-read or ready-to-assemble code can be generated.
+ - User specification of graphic & font areas (which are commented graphically)
+ - Portable GPL C code. (with C++ style comments).
diff --git a/devel/lcdis/Makefile b/devel/lcdis/Makefile
new file mode 100644
index 00000000000..3a10edf1288
--- /dev/null
+++ b/devel/lcdis/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1 2018/05/21 16:12:14 minskim Exp $
+
+DISTNAME= LCDISSRC
+PKGNAME= lcdis-1.04
+CATEGORIES= devel
+MASTER_SITES= https://travispaul.me/distfiles/
+EXTRACT_SUFX= .ZIP
+
+MAINTAINER= tr@vispaul.me
+HOMEPAGE= https://web.archive.org/web/20110927100411/http://www.maushammer.com/vmu.html
+COMMENT= Disassembler for the Sega VMU/VMS
+LICENSE= gnu-gpl-v2
+
+USE_TOOLS+= unzip
+
+WRKSRC= ${WRKDIR}
+INSTALLATION_DIRS= bin
+
+do-build:
+ ${CC} ${LDFLAGS} ${CFLAGS} -o ${WRKSRC}/lcdis ${WRKSRC}/LCDIS.C
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/lcdis ${DESTDIR}${PREFIX}/bin/lcdis
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/lcdis/PLIST b/devel/lcdis/PLIST
new file mode 100644
index 00000000000..f8034e6801e
--- /dev/null
+++ b/devel/lcdis/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2018/05/21 16:12:14 minskim Exp $
+bin/lcdis
diff --git a/devel/lcdis/distinfo b/devel/lcdis/distinfo
new file mode 100644
index 00000000000..6a358a77c99
--- /dev/null
+++ b/devel/lcdis/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2018/05/21 16:12:14 minskim Exp $
+
+SHA1 (LCDISSRC.ZIP) = a41451c8a042cacdf6d246bc82835aa7c44ce461
+RMD160 (LCDISSRC.ZIP) = 53c01fa4419d1c156a96b572302c5bd16f1c66d8
+SHA512 (LCDISSRC.ZIP) = 7e728a8e8692bc5c4cdd7c44dc905e16bda8b1d39c65074c1dd55785ef320661a4c7e7f7b6fc598a27d0fbf38fe2a6b9e6d0529a9e32ebe36312d9c0ba46d2ea
+Size (LCDISSRC.ZIP) = 30715 bytes
+SHA1 (patch-LCDIS.C) = d23660be6dff69e02527277d11c89722a00085b6
+SHA1 (patch-LCDIS.H) = 1bd644dd86c971035e419f0a6412e8527f1817f2
diff --git a/devel/lcdis/patches/patch-LCDIS.C b/devel/lcdis/patches/patch-LCDIS.C
new file mode 100644
index 00000000000..7fa95e5be4c
--- /dev/null
+++ b/devel/lcdis/patches/patch-LCDIS.C
@@ -0,0 +1,15 @@
+$NetBSD: patch-LCDIS.C,v 1.1 2018/05/21 16:12:14 minskim Exp $
+
+Don't assume a case-insensitive filesystem.
+
+--- LCDIS.C.orig 2000-07-02 19:45:58.000000000 +0000
++++ LCDIS.C
+@@ -102,7 +102,7 @@
+ #include <string.h>
+ #include <memory.h>
+ #include <ctype.h>
+-#include "lcdis.h"
++#include "LCDIS.H"
+
+ // This define needed for SUN environments:
+ #if (defined (sparc) || defined (__sparc__) || defined (__sparc))
diff --git a/devel/lcdis/patches/patch-LCDIS.H b/devel/lcdis/patches/patch-LCDIS.H
new file mode 100644
index 00000000000..918ae574832
--- /dev/null
+++ b/devel/lcdis/patches/patch-LCDIS.H
@@ -0,0 +1,24 @@
+$NetBSD: patch-LCDIS.H,v 1.1 2018/05/21 16:12:14 minskim Exp $
+
+No stricmp/strnicmp on NetBSD (and most other OSes),
+define as strcasecmp/strncasecmp instead.
+
+--- LCDIS.H.orig 2000-07-02 19:43:34.000000000 +0000
++++ LCDIS.H
+@@ -17,7 +17,8 @@ void print_code_label (int addr, int for
+ int checkmem(void);
+ void search_text (int memsize);
+
+-
++#define stricmp(x,y) strcasecmp(x,y)
++#define strnicmp(x,y,z) strncasecmp(x,y,z)
+
+ //---0---- ---1---- --2,3--- --4-7--- --8-F---
+
+@@ -391,4 +392,4 @@ firmwarecall_type FIRMWARECALL[] =
+ // not included mapmem (0x108); // unknown
+ // mapmem (0x140); // unknown
+ { -1, -1} // end of list
+- };
+\ No newline at end of file
++ };