aboutsummaryrefslogtreecommitdiff
path: root/devel/dxa65
diff options
context:
space:
mode:
authorJason Helfman <jgh@FreeBSD.org>2013-07-31 07:11:46 +0000
committerJason Helfman <jgh@FreeBSD.org>2013-07-31 07:11:46 +0000
commit675b5a216a6e373598351318a97a6038f1fee135 (patch)
treeba888f34f486b6b3aa562267c75c3e9e851b4f7b /devel/dxa65
parent8c55b12f720d451d9d3e55d5ae3f9568e3c3113b (diff)
downloadports-675b5a216a6e373598351318a97a6038f1fee135.tar.gz
ports-675b5a216a6e373598351318a97a6038f1fee135.zip
Notes
Diffstat (limited to 'devel/dxa65')
-rw-r--r--devel/dxa65/Makefile38
-rw-r--r--devel/dxa65/distinfo2
-rw-r--r--devel/dxa65/files/patch-label.c21
-rw-r--r--devel/dxa65/pkg-descr5
4 files changed, 66 insertions, 0 deletions
diff --git a/devel/dxa65/Makefile b/devel/dxa65/Makefile
new file mode 100644
index 000000000000..0d8838dba9f4
--- /dev/null
+++ b/devel/dxa65/Makefile
@@ -0,0 +1,38 @@
+# Created by: Uffe Jakobsen <uffe@uffe.org>
+# $FreeBSD$
+
+PORTNAME= dxa
+PORTVERSION= 0.1.3
+CATEGORIES= devel
+MASTER_SITES= http://www.floodgap.com/retrotech/xa/dists/
+PKGNAMESUFFIX= 65
+
+MAINTAINER= uffe@uffe.org
+COMMENT= Disassembler for MOS 6502 and compatible CPUs
+
+OPTIONS_DEFINE= DOCS
+
+USES= gmake
+
+MAN1= dxa.1
+MLINKS= dxa.1 dxa65.1
+
+PLIST_FILES= bin/dxa65
+PORTDOCS= INSTALL
+
+.include <bsd.port.options.mk>
+
+post-patch-script:
+ @${REINPLACE_CMD} 's|CC = |CC ?= |g' ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} 's|CFLAGS = |CFLAGS ?= |g' ${WRKSRC}/Makefile
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/dxa ${PREFIX}/bin/dxa65
+ ${INSTALL_MAN} ${WRKSRC}/dxa.1 ${MAN1PREFIX}/man/man1
+
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/devel/dxa65/distinfo b/devel/dxa65/distinfo
new file mode 100644
index 000000000000..7a914bb3e144
--- /dev/null
+++ b/devel/dxa65/distinfo
@@ -0,0 +1,2 @@
+SHA256 (dxa-0.1.3.tar.gz) = 1e7adb7f0306397f45ed068203d36ae6c0886c698899ba89080cbf161a31c72e
+SIZE (dxa-0.1.3.tar.gz) = 23595
diff --git a/devel/dxa65/files/patch-label.c b/devel/dxa65/files/patch-label.c
new file mode 100644
index 000000000000..895ac7b454bf
--- /dev/null
+++ b/devel/dxa65/files/patch-label.c
@@ -0,0 +1,21 @@
+--- label.c.orig 2006-11-01 18:23:28.000000000 +0200
++++ label.c 2010-08-31 21:45:43.000000000 +0300
+@@ -40,7 +40,7 @@
+ #include "opcodes.h"
+
+ label *labeltable;
+-char defaultlabel[5];
++char defaultlabel[6];
+ unsigned numLabels = 0;
+
+ #ifndef __STDC__
+@@ -55,7 +55,7 @@
+ label *entry;
+ char *buffer;
+
+- if (!((buffer = malloc (strlen (name)))))
++ if (!((buffer = malloc (strlen (name) + 1))))
+ return;
+
+ entry = numLabels ?
+
diff --git a/devel/dxa65/pkg-descr b/devel/dxa65/pkg-descr
new file mode 100644
index 000000000000..f15e8eb5af2b
--- /dev/null
+++ b/devel/dxa65/pkg-descr
@@ -0,0 +1,5 @@
+dxa65 is a disassembler for MOS 6502 and compatible CPUs
+NMOS 6502s (such as 6502A, 6504, 6507, 6510, 7501, 8500, 8501, 8502 ...)
+CMOS 6502s (65C02 and Rockwell R65C02)
+
+WWW: http://www.floodgap.com/retrotech/xa#dxa