git: cd072fcb7973 - main - lang/mecrisp-stellaris: Update to 2.6.1.

From: Mikael Urankar <mikael_at_FreeBSD.org>
Date: Tue, 26 Oct 2021 10:40:21 UTC
The branch main has been updated by mikael:

URL: https://cgit.FreeBSD.org/ports/commit/?id=cd072fcb79736ba8540e1f6a048f928ad4cac0c7

commit cd072fcb79736ba8540e1f6a048f928ad4cac0c7
Author:     Robert Clausecker <fuz@fuz.su>
AuthorDate: 2021-10-26 09:22:21 +0000
Commit:     Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2021-10-26 10:40:14 +0000

    lang/mecrisp-stellaris: Update to 2.6.1.
    
     - reorder Makefile to make portclippy happy
     - refactor conditionals for IGNORE
    
    Relevant upstream changes:
    
      - Added (dp) (latest) addrinflash? addrinram? rrotate to all cores
      - Added dictionary-tools and fixed flaw in multitask-debug
      - Fixed 2rshift in common/cordic
      - Signal handlers and syscall library for FreeBSD
    
    PR:     259448
---
 lang/mecrisp-stellaris/Makefile  | 52 ++++++++++++++++++----------------------
 lang/mecrisp-stellaris/distinfo  |  6 ++---
 lang/mecrisp-stellaris/pkg-plist |  5 ++--
 3 files changed, 29 insertions(+), 34 deletions(-)

diff --git a/lang/mecrisp-stellaris/Makefile b/lang/mecrisp-stellaris/Makefile
index 1ae184b920b8..401608597c08 100644
--- a/lang/mecrisp-stellaris/Makefile
+++ b/lang/mecrisp-stellaris/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	mecrisp-stellaris
-DISTVERSION=	2.5.9
-PORTREVISION=	1
+PORTVERSION=	2.6.1
 CATEGORIES=	lang
 MASTER_SITES=	SF/mecrisp
 
@@ -10,49 +9,44 @@ COMMENT=	Native code Forth system for ARM
 LICENSE=	GPLv3+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
+.if defined(QEMU_EMULATING)
+IGNORE_aarch64=	fails to build with qemu-user-static: \
+		qemu-aarch64-static cannot execute armv7 binaries
+.endif
+IGNORE_FreeBSD_12_aarch64=	OS too old to run armv7 binaries on arm64, upgrade to FreeBSD 13
+ONLY_FOR_ARCHS=		aarch64 armv6 armv7
+ONLY_FOR_ARCHS_REASON=	written in ARM assembly
+
 BUILD_DEPENDS=	arm-none-eabi-binutils>2.25:devel/binutils@arm_none_eabi
 
+# stripping eats our hand-crafted ELF binaries, so don't do that
+# the binaries are free of symbols or stuff like that anyway
+STRIP=
+
+PKGMESSAGE=	pkg-message-${ARCH}
+
 OPTIONS_DEFINE=		EXTRAS
 OPTIONS_DEFAULT=	EXTRAS
 EXTRAS_DESC=		Add disassembler and math library to Forth core
 EXTRAS_VARS=		PROGRAM=mecrisp-stellaris-freebsd-with-disassembler-and-math
 EXTRAS_VARS_OFF=	PROGRAM=mecrisp-stellaris-freebsd
 
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} < 1300000
-ONLY_FOR_ARCHS=	armv6 armv7
-.else
-ONLY_FOR_ARCHS=	aarch64 armv6 armv7
-.endif
-ONLY_FOR_ARCHS_REASON=	written in ARM assembly
-
-.if ${ARCH} == "aarch64" && defined(QEMU_EMULATING)
-IGNORE=		fails to build with qemu-user-static: \
-		qemu-aarch64-static cannot execute armv7 binaries
-.endif
-
-PKGMESSAGE=	pkg-message-${ARCH}
-
-AFLAGS.armv6=	-march=armv6 --defsym m0core=1
-MAKE_ENV+=	AFLAGS="${AFLAGS.${ARCH}}"
-
-# stripping eats our hand-crafted ELF binaries, so don't do that
-# the binaries are free of symbols or stuff like that anyway
-STRIP=
+BINSUFFIX_armv6=	-armv6
+BINSUFFIX=		${BINSUFFIX_${ARCH}}
 
 # Can't use the release script as it tries to build a bunch of stuff
 # that won't build correctly.  This does the relevant parts manually.
 do-build:
-	cd ${WRKSRC}/mecrisp-stellaris-source/freebsd-ra && ${SETENV} ${MAKE_ENV} ${SH} -v assemble
-	${CP} ${WRKSRC}/mecrisp-stellaris-source/freebsd-ra/mecrisp-stellaris-freebsd ${WRKSRC}/freebsd-ra/
-	cd ${WRKSRC}/freebsd-ra && ${SETENV} ${MAKE_ENV} ${SH} -v buildcore-freebsd
+	cd ${WRKSRC}/mecrisp-stellaris-source/freebsd-ra && ${SH} -v assemble
+	${CP} ${WRKSRC}/mecrisp-stellaris-source/freebsd-ra/mecrisp-stellaris-freebsd${BINSUFFIX} \
+		${WRKSRC}/freebsd-ra/mecrisp-stellaris-freebsd
+	cd ${WRKSRC}/freebsd-ra && ${SH} -v buildcore-freebsd
 
 do-install:
 	${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_MAN} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
 	${INSTALL_MAN} ${WRKSRC}/KNOWN-ISSUES ${STAGEDIR}${DOCSDIR}
-	cd ${WRKSRC}/common; ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
+	cd ${WRKSRC}/common && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
 	${INSTALL_PROGRAM} ${WRKSRC}/freebsd-ra/${PROGRAM} ${STAGEDIR}${PREFIX}/bin/mecrisp-stellaris
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/lang/mecrisp-stellaris/distinfo b/lang/mecrisp-stellaris/distinfo
index 2a640d0a6126..f55150acf3b5 100644
--- a/lang/mecrisp-stellaris/distinfo
+++ b/lang/mecrisp-stellaris/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1621882899
-SHA256 (mecrisp-stellaris-2.5.9.tar.gz) = 56539aeb2ff8f7d36f2149410255ec683b8279feb7dbadbda4e14a96528e598a
-SIZE (mecrisp-stellaris-2.5.9.tar.gz) = 5835193
+TIMESTAMP = 1635200337
+SHA256 (mecrisp-stellaris-2.6.1.tar.gz) = f8a41094bd2374eec262ddf9dfaa8ab95c997b7da5a9bf91c8524d03b96bfb94
+SIZE (mecrisp-stellaris-2.6.1.tar.gz) = 5864349
diff --git a/lang/mecrisp-stellaris/pkg-plist b/lang/mecrisp-stellaris/pkg-plist
index e0204bfc700e..70b0c1726ba3 100644
--- a/lang/mecrisp-stellaris/pkg-plist
+++ b/lang/mecrisp-stellaris/pkg-plist
@@ -25,6 +25,7 @@ bin/mecrisp-stellaris
 %%DATADIR%%/date-time-tests.fs
 %%DATADIR%%/date-time.fs
 %%DATADIR%%/defcount.txt
+%%DATADIR%%/dictionary-tools.txt
 %%DATADIR%%/disassembler-m0.txt
 %%DATADIR%%/disassembler-m3.txt
 %%DATADIR%%/dump.txt
@@ -33,7 +34,7 @@ bin/mecrisp-stellaris
 %%DATADIR%%/experimental/bignum.txt
 %%DATADIR%%/experimental/definitioncount.txt
 %%DATADIR%%/experimental/float.txt
-%%DATADIR%%/experimental/forget-stellaris.txt
+%%DATADIR%%/experimental/sv.fs
 %%DATADIR%%/experimental/vocs-0.7.0/README
 %%DATADIR%%/experimental/vocs-0.7.0/VOC-HOWTO-Classes-1.log
 %%DATADIR%%/experimental/vocs-0.7.0/VOC-HOWTO-Classes-2.log
@@ -88,7 +89,7 @@ bin/mecrisp-stellaris
 %%DATADIR%%/fonts/tiny/bdf2forth.pas
 %%DATADIR%%/fonts/tiny/tom-thumb-b.txt
 %%DATADIR%%/fonts/tiny/tom-thumb.bdf
-%%DATADIR%%/forget-stellaris.txt
+%%DATADIR%%/forget.txt
 %%DATADIR%%/graphics-unicode-3x3.txt
 %%DATADIR%%/graphics-unicode-4x6.txt
 %%DATADIR%%/graphics-unicode-8x16.txt