summaryrefslogtreecommitdiff
path: root/lang/cbmbasic
diff options
context:
space:
mode:
authorsjmulder <sjmulder@pkgsrc.org>2019-07-08 06:46:22 +0000
committersjmulder <sjmulder@pkgsrc.org>2019-07-08 06:46:22 +0000
commit31202f6b5c6ab7b3706888ea3a13b5f2a082862b (patch)
tree28d28e5773fd5eb01ab6af8a5238f50b5d8154f8 /lang/cbmbasic
parent1d2713e0ca0c6f0020ee433f8caacb48d53a7052 (diff)
downloadpkgsrc-31202f6b5c6ab7b3706888ea3a13b5f2a082862b.tar.gz
Add lang/cbmbasic, a Commodore BASIC interpreter
Imported from wip. "Commodore BASIC" (cbmbasic) is a 100% compatible version of Commodore's version of Microsoft BASIC 6502 as found on the Commodore 64. You can use it in interactive mode or pass a BASIC file as a command line parameter. cbmbasic does not emulate 6502 code; all code is completely native. On a 1 GHz CPU you get about 1000x speed compared to a 1 MHz 6502.
Diffstat (limited to 'lang/cbmbasic')
-rw-r--r--lang/cbmbasic/DESCR6
-rw-r--r--lang/cbmbasic/Makefile18
-rw-r--r--lang/cbmbasic/PLIST2
-rw-r--r--lang/cbmbasic/distinfo7
-rw-r--r--lang/cbmbasic/patches/patch-Makefile23
5 files changed, 56 insertions, 0 deletions
diff --git a/lang/cbmbasic/DESCR b/lang/cbmbasic/DESCR
new file mode 100644
index 00000000000..0dcf5909457
--- /dev/null
+++ b/lang/cbmbasic/DESCR
@@ -0,0 +1,6 @@
+"Commodore BASIC" (cbmbasic) is a 100% compatible version of Commodore's
+version of Microsoft BASIC 6502 as found on the Commodore 64. You can use it
+in interactive mode or pass a BASIC file as a command line parameter.
+
+cbmbasic does not emulate 6502 code; all code is completely native. On a
+1 GHz CPU you get about 1000x speed compared to a 1 MHz 6502.
diff --git a/lang/cbmbasic/Makefile b/lang/cbmbasic/Makefile
new file mode 100644
index 00000000000..56cf0748005
--- /dev/null
+++ b/lang/cbmbasic/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/07/08 06:46:22 sjmulder Exp $
+
+DISTNAME= cbmbasic-0.0.20141206
+CATEGORIES= lang
+MASTER_SITES= ${MASTER_SITE_GITHUB:=mist64/}
+GITHUB_TAG= 89093eba090d6e1c2d2b6e1cb1616dba0ce9c7f6
+
+MAINTAINER= sjmulder@NetBSD.org
+HOMEPAGE= https://github.com/mist64/cbmbasic/
+COMMENT= Portable implementation of Commodore BASIC
+LICENSE= 2-clause-bsd
+
+INSTALLATION_DIRS+= bin
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/cbmbasic ${DESTDIR}${PREFIX}/bin/
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/lang/cbmbasic/PLIST b/lang/cbmbasic/PLIST
new file mode 100644
index 00000000000..f0e21dce109
--- /dev/null
+++ b/lang/cbmbasic/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2019/07/08 06:46:22 sjmulder Exp $
+bin/cbmbasic
diff --git a/lang/cbmbasic/distinfo b/lang/cbmbasic/distinfo
new file mode 100644
index 00000000000..7e0a410ba6e
--- /dev/null
+++ b/lang/cbmbasic/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2019/07/08 06:46:22 sjmulder Exp $
+
+SHA1 (cbmbasic-0.0.20141206-89093eba090d6e1c2d2b6e1cb1616dba0ce9c7f6.tar.gz) = 401f099e6506d8b2d0b9fac62e450b0d5ef9e87c
+RMD160 (cbmbasic-0.0.20141206-89093eba090d6e1c2d2b6e1cb1616dba0ce9c7f6.tar.gz) = 2b2d8b5c669ba92e133392a26993d24196027b08
+SHA512 (cbmbasic-0.0.20141206-89093eba090d6e1c2d2b6e1cb1616dba0ce9c7f6.tar.gz) = 136a87af934834f98301d47217d443e50c9e8fd0f45725105c4266795a8f7751a864008d76571cc816c913abcf9ee24e457b35c08fa178c75d4167d7193fde6b
+Size (cbmbasic-0.0.20141206-89093eba090d6e1c2d2b6e1cb1616dba0ce9c7f6.tar.gz) = 169327 bytes
+SHA1 (patch-Makefile) = bf1b3c0747f509ddb23a66021b3abe41fddcff63
diff --git a/lang/cbmbasic/patches/patch-Makefile b/lang/cbmbasic/patches/patch-Makefile
new file mode 100644
index 00000000000..587f199ca48
--- /dev/null
+++ b/lang/cbmbasic/patches/patch-Makefile
@@ -0,0 +1,23 @@
+$NetBSD: patch-Makefile,v 1.1 2019/07/08 06:46:22 sjmulder Exp $
+
+ - Respect existing CFLAGS by appending, rather than replacing.
+ - Respect LDFLAGS
+ - Remove -O3 default.
+
+https://github.com/mist64/cbmbasic/pull/5
+
+--- Makefile
++++ Makefile
+@@ -1,10 +1,10 @@
+ OBJS=cbmbasic.o runtime.o plugin.o console.o
+-CFLAGS=-Wall -O3
++CFLAGS+=-Wall
+
+ all: cbmbasic
+
+ cbmbasic: $(OBJS)
+- $(CC) -o cbmbasic $(OBJS)
++ $(CC) $(LDFLAGS) -o cbmbasic $(OBJS)
+
+ clean:
+ rm -f $(OBJS) cbmbasic