From 1636f4cf6066c38f31a281d4a7c381d28ae75350 Mon Sep 17 00:00:00 2001 From: thorpej Date: Mon, 18 Jul 2022 03:43:05 +0000 Subject: Add a package for lwtools, a set of cross-development tools for the otorola 6809 Hitachi 6309. --- cross/Makefile | 3 ++- cross/lwtools/DESCR | 4 ++++ cross/lwtools/Makefile | 20 ++++++++++++++++++ cross/lwtools/PLIST | 39 ++++++++++++++++++++++++++++++++++++ cross/lwtools/distinfo | 6 ++++++ cross/lwtools/patches/patch-Makefile | 15 ++++++++++++++ 6 files changed, 86 insertions(+), 1 deletion(-) create mode 100644 cross/lwtools/DESCR create mode 100644 cross/lwtools/Makefile create mode 100644 cross/lwtools/PLIST create mode 100644 cross/lwtools/distinfo create mode 100644 cross/lwtools/patches/patch-Makefile (limited to 'cross') diff --git a/cross/Makefile b/cross/Makefile index ee05c36c1c1..7ba0cb85b22 100644 --- a/cross/Makefile +++ b/cross/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.102 2022/04/14 00:53:43 tnn Exp $ +# $NetBSD: Makefile,v 1.103 2022/07/18 03:43:05 thorpej Exp $ # COMMENT= Cross-platform development utilities @@ -37,6 +37,7 @@ SUBDIR+= gcc-mips-current SUBDIR+= h8300-elf-binutils SUBDIR+= h8300-elf-gcc SUBDIR+= icdprog +SUBDIR+= lwtools SUBDIR+= mingw SUBDIR+= mingw-binutils SUBDIR+= mingw-gcc diff --git a/cross/lwtools/DESCR b/cross/lwtools/DESCR new file mode 100644 index 00000000000..ccc227b3cec --- /dev/null +++ b/cross/lwtools/DESCR @@ -0,0 +1,4 @@ +LWTOOLS is a set of cross-development tools for the Motorola 6809 and +Hitachi 6309 microprocessors. It supports assembling to raw binaries, +CoCo LOADM binaries, and a proprietary object file format for later +linking. It also supports macros and file inclusion among other things. diff --git a/cross/lwtools/Makefile b/cross/lwtools/Makefile new file mode 100644 index 00000000000..9f5cc7d7b8f --- /dev/null +++ b/cross/lwtools/Makefile @@ -0,0 +1,20 @@ +# $NetBSD: Makefile,v 1.1 2022/07/18 03:43:05 thorpej Exp $ + +DISTNAME= lwtools-4.19 +CATEGORIES= cross +MASTER_SITES= http://www.lwtools.ca/releases/lwtools/ + +MAINTAINER= thorpej@NetBSD.org +HOMEPAGE= http://www.lwtools.ca/ +COMMENT= Cross-development tools for the Motorola 6809 Hitachi 6309 +LICENSE= gnu-gpl-v3 + +USE_TOOLS+= gmake + +INSTALLATION_DIRS= share/doc/lwtools + +post-install: + ${INSTALL_DATA} ${WRKSRC}/docs/manual/* \ + ${DESTDIR}${PREFIX}/share/doc/lwtools + +.include "../../mk/bsd.pkg.mk" diff --git a/cross/lwtools/PLIST b/cross/lwtools/PLIST new file mode 100644 index 00000000000..4d1b91d0357 --- /dev/null +++ b/cross/lwtools/PLIST @@ -0,0 +1,39 @@ +@comment $NetBSD: PLIST,v 1.1 2022/07/18 03:43:05 thorpej Exp $ +bin/lwar +bin/lwasm +bin/lwcc +bin/lwcc-cc +bin/lwcc-cpp +bin/lwlink +bin/lwobjdump +lib/lwcc/bin/lwcc-cc +lib/lwcc/bin/lwcc-cpp +share/doc/lwtools/c1023.html +share/doc/lwtools/c1085.html +share/doc/lwtools/c13.html +share/doc/lwtools/c21.html +share/doc/lwtools/c62.html +share/doc/lwtools/c828.html +share/doc/lwtools/index.html +share/doc/lwtools/manual.html +share/doc/lwtools/manual.pdf +share/doc/lwtools/x1008.html +share/doc/lwtools/x229.html +share/doc/lwtools/x238.html +share/doc/lwtools/x248.html +share/doc/lwtools/x253.html +share/doc/lwtools/x261.html +share/doc/lwtools/x27.html +share/doc/lwtools/x32.html +share/doc/lwtools/x36.html +share/doc/lwtools/x41.html +share/doc/lwtools/x46.html +share/doc/lwtools/x54.html +share/doc/lwtools/x562.html +share/doc/lwtools/x585.html +share/doc/lwtools/x606.html +share/doc/lwtools/x670.html +share/doc/lwtools/x817.html +share/doc/lwtools/x822.html +share/doc/lwtools/x928.html +share/doc/lwtools/x942.html diff --git a/cross/lwtools/distinfo b/cross/lwtools/distinfo new file mode 100644 index 00000000000..d44bdb7a555 --- /dev/null +++ b/cross/lwtools/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2022/07/18 03:43:05 thorpej Exp $ + +BLAKE2s (lwtools-4.19.tar.gz) = 3b474babce2a1895c9bf5535aa9ce55fcaed0b0c52ccfaf4d24657c6fa0c0270 +SHA512 (lwtools-4.19.tar.gz) = 9bb09a018969ddf70eee8fe7f3572798718bc9eee4cdd74c252ffadb741282e5822fab0a7595f2e568566086293c4ca70c84855c2d3796f4458bacdfcd187b68 +Size (lwtools-4.19.tar.gz) = 657929 bytes +SHA1 (patch-Makefile) = 8b6f3c5c46477e838292ede677dfc57be58781a3 diff --git a/cross/lwtools/patches/patch-Makefile b/cross/lwtools/patches/patch-Makefile new file mode 100644 index 00000000000..ccd888ec790 --- /dev/null +++ b/cross/lwtools/patches/patch-Makefile @@ -0,0 +1,15 @@ +$NetBSD: patch-Makefile,v 1.1 2022/07/18 03:43:05 thorpej Exp $ + +Use portable arguments to fmt(1). + +--- Makefile.orig 2022-07-18 02:08:23.184399250 +0000 ++++ Makefile 2022-07-18 02:08:43.187883530 +0000 +@@ -179,7 +179,7 @@ extra_clean := $(extra_clean) *~ */*~ + @$(CC) -MM $(CPPFLAGS) -o $*.d $< + @mv -f $*.d $*.d.tmp + @sed -e 's|.*:|$*.o $*.d:|' < $*.d.tmp > $*.d +- @sed -e 's/.*://' -e 's/\\$$//' < $*.d.tmp | fmt -1 | sed -e 's/^ *//' -e 's/$$/:/' >> $*.d ++ @sed -e 's/.*://' -e 's/\\$$//' < $*.d.tmp | fmt -w 1 -g 0 | sed -e 's/^ *//' -e 's/$$/:/' >> $*.d + @rm -f $*.d.tmp + @echo Building $@ + @$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -c $< -- cgit v1.2.3