Mon May 21 16:12:14 2018 UTC ()
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.


(minskim)
diff -r0 -r1.1 pkgsrc/devel/lcdis/DESCR
diff -r0 -r1.1 pkgsrc/devel/lcdis/Makefile
diff -r0 -r1.1 pkgsrc/devel/lcdis/PLIST
diff -r0 -r1.1 pkgsrc/devel/lcdis/distinfo
diff -r0 -r1.1 pkgsrc/devel/lcdis/patches/patch-LCDIS.C
diff -r0 -r1.1 pkgsrc/devel/lcdis/patches/patch-LCDIS.H

File Added: pkgsrc/devel/lcdis/DESCR
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).

File Added: pkgsrc/devel/lcdis/Makefile
# $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"

File Added: pkgsrc/devel/lcdis/PLIST
@comment $NetBSD: PLIST,v 1.1 2018/05/21 16:12:14 minskim Exp $
bin/lcdis

File Added: pkgsrc/devel/lcdis/distinfo
$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

File Added: pkgsrc/devel/lcdis/patches/patch-LCDIS.C
$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))

File Added: pkgsrc/devel/lcdis/patches/patch-LCDIS.H
$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
+   };