pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/cbmbasic Add lang/cbmbasic, a Commodore BASIC int...
details: https://anonhg.NetBSD.org/pkgsrc/rev/44d392948c73
branches: trunk
changeset: 397954:44d392948c73
user: sjmulder <sjmulder%pkgsrc.org@localhost>
date: Mon Jul 08 06:46:22 2019 +0000
description:
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:
lang/cbmbasic/DESCR | 6 ++++++
lang/cbmbasic/Makefile | 18 ++++++++++++++++++
lang/cbmbasic/PLIST | 2 ++
lang/cbmbasic/distinfo | 7 +++++++
lang/cbmbasic/patches/patch-Makefile | 23 +++++++++++++++++++++++
5 files changed, 56 insertions(+), 0 deletions(-)
diffs (76 lines):
diff -r 28d6ed0ac8c0 -r 44d392948c73 lang/cbmbasic/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/cbmbasic/DESCR Mon Jul 08 06:46:22 2019 +0000
@@ -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 -r 28d6ed0ac8c0 -r 44d392948c73 lang/cbmbasic/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/cbmbasic/Makefile Mon Jul 08 06:46:22 2019 +0000
@@ -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@localhost
+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 -r 28d6ed0ac8c0 -r 44d392948c73 lang/cbmbasic/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/cbmbasic/PLIST Mon Jul 08 06:46:22 2019 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2019/07/08 06:46:22 sjmulder Exp $
+bin/cbmbasic
diff -r 28d6ed0ac8c0 -r 44d392948c73 lang/cbmbasic/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/cbmbasic/distinfo Mon Jul 08 06:46:22 2019 +0000
@@ -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 -r 28d6ed0ac8c0 -r 44d392948c73 lang/cbmbasic/patches/patch-Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/cbmbasic/patches/patch-Makefile Mon Jul 08 06:46:22 2019 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index