aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2007-07-12 03:18:08 +0800
committerpav <pav@FreeBSD.org>2007-07-12 03:18:08 +0800
commit92dd2243965d026222bbecd44fc3fcea4653a98c (patch)
treea6aa4a15c7c01460df1e7d2edd710250a64c127f
parent7b72ff82f00848da43cf9fb0218e78fb6fedbe0d (diff)
downloadfreebsd-ports-gnome-92dd2243965d026222bbecd44fc3fcea4653a98c.tar.gz
freebsd-ports-gnome-92dd2243965d026222bbecd44fc3fcea4653a98c.tar.zst
freebsd-ports-gnome-92dd2243965d026222bbecd44fc3fcea4653a98c.zip
This utility converts both 48k and 128k ZX Spectrum BASIC programs stored
as plain text files into TAP files. TAP files can be used in most ZX Spectrum emulators and can be concatenated together using cat(1). Author: Martijn van der Heide PR: ports/114046 Submitted by: Rene Ladan <r.c.ladan@gmail.com>
-rw-r--r--lang/Makefile1
-rw-r--r--lang/bas2tap/Makefile35
-rw-r--r--lang/bas2tap/distinfo3
-rw-r--r--lang/bas2tap/pkg-descr10
4 files changed, 49 insertions, 0 deletions
diff --git a/lang/Makefile b/lang/Makefile
index 8ad2962ecd70..f7e3699a46ee 100644
--- a/lang/Makefile
+++ b/lang/Makefile
@@ -14,6 +14,7 @@
SUBDIR += asn1c
SUBDIR += atlast
SUBDIR += awka
+ SUBDIR += bas2tap
SUBDIR += bf2c
SUBDIR += bigloo
SUBDIR += bwbasic
diff --git a/lang/bas2tap/Makefile b/lang/bas2tap/Makefile
new file mode 100644
index 000000000000..1aa59eae5ae1
--- /dev/null
+++ b/lang/bas2tap/Makefile
@@ -0,0 +1,35 @@
+# New ports collection makefile for: bas2tap
+# Date created: 2007-06-26
+# Whom: Rene Ladan <r.c.ladan@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= bas2tap
+PORTVERSION= 2.4
+CATEGORIES= lang
+MASTER_SITES= ftp://ftp.worldofspectrum.org/pub/sinclair/tools/generic/
+DISTNAME= ${PORTNAME}${PORTVERSION:C/\.//}-generic
+
+MAINTAINER= r.c.ladan@gmail.com
+COMMENT= Convert 48k/128k ZX Spectrum BASIC text files to TAP files
+
+USE_ZIP= yes
+
+NO_WRKSUBDIR= yes
+PORTDOCS= ${PORTNAME}.doc
+PLIST_FILES= bin/${PORTNAME}
+
+do-build:
+ ${CC} ${WRKSRC}/${PORTNAME}.c -o ${WRKSRC}/${PORTNAME} -lm ${CFLAGS}
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+.ifndef NOPORTDOCS
+ @${MKDIR} ${DOCSDIR}
+.for file in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/lang/bas2tap/distinfo b/lang/bas2tap/distinfo
new file mode 100644
index 000000000000..378d544bd9cd
--- /dev/null
+++ b/lang/bas2tap/distinfo
@@ -0,0 +1,3 @@
+MD5 (bas2tap24-generic.zip) = 4e550a34b29d78accc8d717bbde87117
+SHA256 (bas2tap24-generic.zip) = 7b7469f65a96fcae2a2b8792dfb72e20cc7dcc0330de28b9ca0fd398aa0b3ecb
+SIZE (bas2tap24-generic.zip) = 29126
diff --git a/lang/bas2tap/pkg-descr b/lang/bas2tap/pkg-descr
new file mode 100644
index 000000000000..b1ad19011125
--- /dev/null
+++ b/lang/bas2tap/pkg-descr
@@ -0,0 +1,10 @@
+This utility converts both 48k and 128k ZX Spectrum BASIC programs stored
+as plain text files into TAP files.
+
+TAP files can be used in most ZX Spectrum emulators and can be concatenated
+together using cat(1).
+
+Author: Martijn van der Heide
+--
+Rene Ladan
+r.c.ladan@gmail.com