pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/cbmbasic



Module Name:    pkgsrc
Committed By:   sjmulder
Date:           Mon Jul  8 06:46:22 UTC 2019

Added Files:
        pkgsrc/lang/cbmbasic: DESCR Makefile PLIST distinfo
        pkgsrc/lang/cbmbasic/patches: patch-Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/cbmbasic/DESCR \
    pkgsrc/lang/cbmbasic/Makefile pkgsrc/lang/cbmbasic/PLIST \
    pkgsrc/lang/cbmbasic/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/cbmbasic/patches/patch-Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/lang/cbmbasic/DESCR
diff -u /dev/null pkgsrc/lang/cbmbasic/DESCR:1.1
--- /dev/null   Mon Jul  8 06:46:22 2019
+++ pkgsrc/lang/cbmbasic/DESCR  Mon Jul  8 06:46:22 2019
@@ -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.
Index: pkgsrc/lang/cbmbasic/Makefile
diff -u /dev/null pkgsrc/lang/cbmbasic/Makefile:1.1
--- /dev/null   Mon Jul  8 06:46:22 2019
+++ pkgsrc/lang/cbmbasic/Makefile       Mon Jul  8 06:46:22 2019
@@ -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"
Index: pkgsrc/lang/cbmbasic/PLIST
diff -u /dev/null pkgsrc/lang/cbmbasic/PLIST:1.1
--- /dev/null   Mon Jul  8 06:46:22 2019
+++ pkgsrc/lang/cbmbasic/PLIST  Mon Jul  8 06:46:22 2019
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2019/07/08 06:46:22 sjmulder Exp $
+bin/cbmbasic
Index: pkgsrc/lang/cbmbasic/distinfo
diff -u /dev/null pkgsrc/lang/cbmbasic/distinfo:1.1
--- /dev/null   Mon Jul  8 06:46:22 2019
+++ pkgsrc/lang/cbmbasic/distinfo       Mon Jul  8 06:46:22 2019
@@ -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

Index: pkgsrc/lang/cbmbasic/patches/patch-Makefile
diff -u /dev/null pkgsrc/lang/cbmbasic/patches/patch-Makefile:1.1
--- /dev/null   Mon Jul  8 06:46:22 2019
+++ pkgsrc/lang/cbmbasic/patches/patch-Makefile Mon Jul  8 06:46:22 2019
@@ -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