pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
emulators/toolshed: Add ToolShed 2.2, a Tandy Color Computer Cross-Development Toolset
Module Name: pkgsrc-wip
Committed By: Paul Ripke <stix%stix.id.au@localhost>
Pushed By: stix
Date: Sun Mar 8 15:30:07 2026 +1100
Changeset: 8f0d3be395c8c63b97596defaf31a43ae8c7c61f
Added Files:
toolshed/COMMIT_MSG
toolshed/DESCR
toolshed/Makefile
toolshed/PLIST
toolshed/distinfo
toolshed/patches/patch-build_unix_Makefile
toolshed/patches/patch-libdecb_libdecbsrec.c
toolshed/patches/patch-libnative_libnativegs.c
toolshed/patches/patch-libnative_libnativess.c
toolshed/patches/patch-makewav_makewav.c
Log Message:
emulators/toolshed: Add ToolShed 2.2, a Tandy Color Computer Cross-Development Toolset
ToolShed is a package of utilities to perform cross-development from Windows,
Linux or Mac OS X computers to the Tandy Color Computer and Dragon
microcomputers.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=8f0d3be395c8c63b97596defaf31a43ae8c7c61f
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
toolshed/COMMIT_MSG | 5 +++++
toolshed/DESCR | 3 +++
toolshed/Makefile | 18 ++++++++++++++++++
toolshed/PLIST | 9 +++++++++
toolshed/distinfo | 10 ++++++++++
toolshed/patches/patch-build_unix_Makefile | 17 +++++++++++++++++
toolshed/patches/patch-libdecb_libdecbsrec.c | 15 +++++++++++++++
toolshed/patches/patch-libnative_libnativegs.c | 24 ++++++++++++++++++++++++
toolshed/patches/patch-libnative_libnativess.c | 15 +++++++++++++++
toolshed/patches/patch-makewav_makewav.c | 15 +++++++++++++++
10 files changed, 131 insertions(+)
diffs:
diff --git a/toolshed/COMMIT_MSG b/toolshed/COMMIT_MSG
new file mode 100644
index 0000000000..4a95741fd5
--- /dev/null
+++ b/toolshed/COMMIT_MSG
@@ -0,0 +1,5 @@
+emulators/toolshed: Add ToolShed 2.2, a Tandy Color Computer Cross-Development Toolset
+
+ToolShed is a package of utilities to perform cross-development from Windows,
+Linux or Mac OS X computers to the Tandy Color Computer and Dragon
+microcomputers.
diff --git a/toolshed/DESCR b/toolshed/DESCR
new file mode 100644
index 0000000000..6270703006
--- /dev/null
+++ b/toolshed/DESCR
@@ -0,0 +1,3 @@
+ToolShed is a package of utilities to perform cross-development from Windows,
+Linux or Mac OS X computers to the Tandy Color Computer and Dragon
+microcomputers.
diff --git a/toolshed/Makefile b/toolshed/Makefile
new file mode 100644
index 0000000000..a4ec5c135d
--- /dev/null
+++ b/toolshed/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD$
+
+DISTNAME= toolshed-2.2
+CATEGORIES= emulators
+MASTER_SITES= https://sourceforge.net/projects/toolshed/files/ToolShed/ToolShed%202.2/
+
+MAINTAINER= stix%stix.id.au@localhost
+HOMEPAGE= https://toolshed.sourceforge.net/ToolShed.html
+COMMENT= Tandy Color Computer Cross-Development Toolset
+LICENSE= public-domain
+
+USE_LANGUAGES= c
+USE_TOOLS= gmake
+BUILD_DIRS= build/unix
+
+.include "../../textproc/discount/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/toolshed/PLIST b/toolshed/PLIST
new file mode 100644
index 0000000000..bc86bea16e
--- /dev/null
+++ b/toolshed/PLIST
@@ -0,0 +1,9 @@
+@comment $NetBSD$
+bin/ar2
+bin/cecb
+bin/decb
+bin/makewav
+bin/mamou
+bin/os9
+bin/tocgen
+share/doc/toolshed/ToolShed.html
diff --git a/toolshed/distinfo b/toolshed/distinfo
new file mode 100644
index 0000000000..f869e5491c
--- /dev/null
+++ b/toolshed/distinfo
@@ -0,0 +1,10 @@
+$NetBSD$
+
+BLAKE2s (toolshed-2.2.tar.gz) = 8a1cb22d333ca2cf2e87666cd8d79b30470f9d32fad100874bc423ee53d8310d
+SHA512 (toolshed-2.2.tar.gz) = e27b22900e60902a684d84a111a9ad3fa641fffb057173aaabb30da0152634f26456314ef4e04b33012c7dc31e901a78151a4ff88af783b17caa466fb2ea8421
+Size (toolshed-2.2.tar.gz) = 2256278 bytes
+SHA1 (patch-build_unix_Makefile) = 3a0de60a80dce78b9473d1ffa18f48d6961ef890
+SHA1 (patch-libdecb_libdecbsrec.c) = 585c298c45674ef676362b7e7b08d7f93524fea9
+SHA1 (patch-libnative_libnativegs.c) = 6c724c6839045f3c754cce4147c2c79039adab27
+SHA1 (patch-libnative_libnativess.c) = 0306b1d97fda847e19d0b73c1e43cb18be44f67b
+SHA1 (patch-makewav_makewav.c) = 51022ed0505dc4f4e40ad482573890561ae85ff2
diff --git a/toolshed/patches/patch-build_unix_Makefile b/toolshed/patches/patch-build_unix_Makefile
new file mode 100644
index 0000000000..afc90990a4
--- /dev/null
+++ b/toolshed/patches/patch-build_unix_Makefile
@@ -0,0 +1,17 @@
+$NetBSD$
+
+Fix installation dirs under prefix.
+
+--- build/unix/Makefile.orig 2026-03-08 02:05:53.879656219 +0000
++++ build/unix/Makefile
+@@ -5,8 +5,8 @@ vpath %.c ../../mamou:../../os9
+
+ PACKAGENAME = toolshed-$(VERSION).tgz
+ ifneq ($(DESTDIR),)
+-INSTALLDIR = $(DESTDIR)/usr/bin
+-DOCDIR = $(DESTDIR)/usr/share/doc/toolshed
++INSTALLDIR = $(DESTDIR)$(PREFIX)/bin
++DOCDIR = $(DESTDIR)$(PREFIX)/share/doc/toolshed
+ else
+ INSTALLDIR = /usr/local/bin
+ DOCDIR = /usr/local/share/toolshed
diff --git a/toolshed/patches/patch-libdecb_libdecbsrec.c b/toolshed/patches/patch-libdecb_libdecbsrec.c
new file mode 100644
index 0000000000..f0ee30d8d3
--- /dev/null
+++ b/toolshed/patches/patch-libdecb_libdecbsrec.c
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Treat NetBSD like Linux.
+
+--- libdecb/libdecbsrec.c.orig 2026-03-08 01:56:19.927952440 +0000
++++ libdecb/libdecbsrec.c
+@@ -12,7 +12,7 @@
+ #define PREAMBLE 0x00
+ #define POSTAMBLE 0xff
+
+-#if defined(__linux__) || defined(WIN32)
++#if defined(__linux__) || defined(WIN32) || defined(__NetBSD__)
+ static inline int digittoint(int c)
+ /* implemented based on OSX man page */
+ {
diff --git a/toolshed/patches/patch-libnative_libnativegs.c b/toolshed/patches/patch-libnative_libnativegs.c
new file mode 100644
index 0000000000..bd5aec3307
--- /dev/null
+++ b/toolshed/patches/patch-libnative_libnativegs.c
@@ -0,0 +1,24 @@
+$NetBSD$
+
+Treat NetBSD like Linux.
+
+--- libnative/libnativegs.c.orig 2026-03-08 01:49:42.164113292 +0000
++++ libnative/libnativegs.c
+@@ -84,7 +84,7 @@ error_code _native_gs_fd(native_path_id
+ error_code ec = 0;
+
+
+-#if defined(__APPLE__) || defined(WIN32) || defined(sun)
++#if defined(__APPLE__) || defined(WIN32) || defined(sun) || defined(__NetBSD__)
+ if (fstat(path->fd->_file, statbuf) < 0)
+ #else
+ if (fstat(path->fd->_fileno, statbuf) < 0)
+@@ -135,7 +135,7 @@ error_code _native_gs_size(native_path_i
+ struct stat statbuf;
+
+
+-#if defined(__APPLE__) || defined(WIN32) || defined(sun)
++#if defined(__APPLE__) || defined(WIN32) || defined(sun) || defined(__NetBSD__)
+ if (fstat(path->fd->_file, &statbuf) < 0)
+ #else
+ if (fstat(path->fd->_fileno, &statbuf) < 0)
diff --git a/toolshed/patches/patch-libnative_libnativess.c b/toolshed/patches/patch-libnative_libnativess.c
new file mode 100644
index 0000000000..46895c4b7e
--- /dev/null
+++ b/toolshed/patches/patch-libnative_libnativess.c
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Treat NetBSD like Linux.
+
+--- libnative/libnativess.c.orig 2026-03-08 01:52:05.480487254 +0000
++++ libnative/libnativess.c
+@@ -74,7 +74,7 @@ error_code _native_ss_size(native_path_i
+ {
+ error_code ec = 0;
+
+-#if defined(__APPLE__) || defined(WIN32) || defined(sun)
++#if defined(__APPLE__) || defined(WIN32) || defined(sun) || defined(__NetBSD__)
+ ftruncate(path->fd->_file, size);
+ #else
+ ftruncate(path->fd->_fileno, size);
diff --git a/toolshed/patches/patch-makewav_makewav.c b/toolshed/patches/patch-makewav_makewav.c
new file mode 100644
index 0000000000..32934f28bb
--- /dev/null
+++ b/toolshed/patches/patch-makewav_makewav.c
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Treat NetBSD like Linux.
+
+--- makewav/makewav.c.orig 2026-03-08 01:57:06.681063034 +0000
++++ makewav/makewav.c
+@@ -22,7 +22,7 @@
+ #include <stdlib.h>
+ #include <math.h>
+
+-#if defined(__CYGWIN32__) || defined(__linux__) || defined(WIN32)
++#if defined(__CYGWIN32__) || defined(__linux__) || defined(WIN32) || defined(__NetBSD__)
+ /* implemented based on OSX man page */
+ static inline int digittoint(int c)
+ {
Home |
Main Index |
Thread Index |
Old Index