summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cross/dasm/DESCR5
-rw-r--r--cross/dasm/Makefile23
-rw-r--r--cross/dasm/PLIST2
-rw-r--r--cross/dasm/distinfo7
-rw-r--r--cross/dasm/files/Makefile10
-rw-r--r--cross/dasm/patches/patch-aa12
-rw-r--r--cross/dasm/patches/patch-ab14
7 files changed, 73 insertions, 0 deletions
diff --git a/cross/dasm/DESCR b/cross/dasm/DESCR
new file mode 100644
index 00000000000..65853b28891
--- /dev/null
+++ b/cross/dasm/DESCR
@@ -0,0 +1,5 @@
+DASM is a highly evolved cross-assembler for 6502, 6803 and 68HC11
+processors. It is very popular for hacking/cross-developing on old
+6502-based video game systems from Atari, Nintendo, etc. DASM
+processes output from the Distella Atari ROM disassembler without
+modification.
diff --git a/cross/dasm/Makefile b/cross/dasm/Makefile
new file mode 100644
index 00000000000..7b892a8b3e2
--- /dev/null
+++ b/cross/dasm/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/11/20 16:24:43 minskim Exp $
+#
+
+DISTNAME= dasm212
+PKGNAME= dasm-2.12
+CATEGORIES= cross
+MASTER_SITES= http://members.cox.net/rcolbert/zip/
+EXTRACT_SUFX= .zip
+
+MAINTAINER= mor@linex.com
+HOMEPAGE= http://members.cox.net/rcolbert/dasm.htm
+COMMENT= Multi-CPU cross-assembler for 6502, 6803 and 68HC11
+
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+
+WRKSRC= ${WRKDIR}
+NO_CONFIGURE= YES
+
+MAKEFILE= ${FILESDIR}/Makefile
+
+INSTALLATION_DIRS= bin
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/cross/dasm/PLIST b/cross/dasm/PLIST
new file mode 100644
index 00000000000..a124f0e0f2d
--- /dev/null
+++ b/cross/dasm/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/11/20 16:24:43 minskim Exp $
+bin/dasm
diff --git a/cross/dasm/distinfo b/cross/dasm/distinfo
new file mode 100644
index 00000000000..78e7ef81e50
--- /dev/null
+++ b/cross/dasm/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/11/20 16:24:43 minskim Exp $
+
+SHA1 (dasm212.zip) = cf14367131bc3490ab75a349d07ee276e114967d
+Size (dasm212.zip) = 63734 bytes
+SHA1 (build.sh) = 56eef59dc399d80059371b7f1153e031d6478386
+SHA1 (patch-aa) = 8977637e43cd12bc9884d3a42d50cfd3761bef02
+SHA1 (patch-ab) = 0a80e4178f9956b8881ec272ed9a4b491c49a9c9
diff --git a/cross/dasm/files/Makefile b/cross/dasm/files/Makefile
new file mode 100644
index 00000000000..6edef2e9806
--- /dev/null
+++ b/cross/dasm/files/Makefile
@@ -0,0 +1,10 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/11/20 16:24:43 minskim Exp $
+
+PROG= dasm
+SRCS= exp.c globals.c main.c mne6303.c mne6502.c mne6811.c mne68705.c \
+ ops.c symbols.c
+
+NOMAN= yes
+BINDIR= ${PREFIX}/bin
+
+.include <bsd.prog.mk>
diff --git a/cross/dasm/patches/patch-aa b/cross/dasm/patches/patch-aa
new file mode 100644
index 00000000000..455aa682e99
--- /dev/null
+++ b/cross/dasm/patches/patch-aa
@@ -0,0 +1,12 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/11/20 16:24:43 minskim Exp $
+
+--- asm.h.orig 1998-02-26 19:54:52.000000000 -0600
++++ asm.h
+@@ -40,7 +40,6 @@
+
+ typedef unsigned char ubyte;
+ typedef unsigned uword;
+-typedef long ulong;
+
+ #define MNE struct _MNE
+ #define MACRO struct _MACRO
diff --git a/cross/dasm/patches/patch-ab b/cross/dasm/patches/patch-ab
new file mode 100644
index 00000000000..4ce8490d3c5
--- /dev/null
+++ b/cross/dasm/patches/patch-ab
@@ -0,0 +1,14 @@
+$NetBSD: patch-ab,v 1.1.1.1 2004/11/20 16:24:43 minskim Exp $
+
+--- main.c.orig 1998-03-02 06:28:34.000000000 -0600
++++ main.c
+@@ -199,9 +199,7 @@ nextpass:
+ #if OlafDol
+ Localdollarindex = Lastlocaldollarindex = 0;
+ #endif
+- _fmode = 0x8000;
+ FI_temp = fopen(F_outfile, "w");
+- _fmode = 0;
+ Fisclear = 1;
+ CheckSum = 0;
+ if (FI_temp == NULL) {