Sat Nov 6 16:40:06 2021 UTC ()
math/hercules4sdl-decnumber and -softfloat: new packages
needed for emulators/hercules4sdl.
(rhialto)
diff -r1.521 -r1.522 pkgsrc/math/Makefile
diff -r0 -r1.1 pkgsrc/math/hercules4sdl-decnumber/DESCR
diff -r0 -r1.1 pkgsrc/math/hercules4sdl-decnumber/Makefile
diff -r0 -r1.1 pkgsrc/math/hercules4sdl-decnumber/PLIST
diff -r0 -r1.1 pkgsrc/math/hercules4sdl-decnumber/buildlink3.mk
diff -r0 -r1.1 pkgsrc/math/hercules4sdl-decnumber/distinfo
diff -r0 -r1.1 pkgsrc/math/hercules4sdl-decnumber/patches/patch-cflags.txt
diff -r0 -r1.1 pkgsrc/math/hercules4sdl-softfloat/DESCR
diff -r0 -r1.1 pkgsrc/math/hercules4sdl-softfloat/Makefile
diff -r0 -r1.1 pkgsrc/math/hercules4sdl-softfloat/PLIST
diff -r0 -r1.1 pkgsrc/math/hercules4sdl-softfloat/buildlink3.mk
diff -r0 -r1.1 pkgsrc/math/hercules4sdl-softfloat/distinfo
diff -r0 -r1.1 pkgsrc/math/hercules4sdl-softfloat/patches/patch-cflags.txt
--- pkgsrc/math/Makefile 2021/10/01 19:55:37 1.521
+++ pkgsrc/math/Makefile 2021/11/06 16:40:06 1.522
| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.521 2021/10/01 19:55:37 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.522 2021/11/06 16:40:06 rhialto Exp $ |
2 | | | 2 | |
3 | COMMENT= Mathematics | | 3 | COMMENT= Mathematics |
4 | | | 4 | |
5 | SUBDIR+= R | | 5 | SUBDIR+= R |
6 | SUBDIR+= R-CGIwithR | | 6 | SUBDIR+= R-CGIwithR |
7 | SUBDIR+= R-DAAG | | 7 | SUBDIR+= R-DAAG |
8 | SUBDIR+= R-DBI | | 8 | SUBDIR+= R-DBI |
9 | SUBDIR+= R-DEoptimR | | 9 | SUBDIR+= R-DEoptimR |
10 | SUBDIR+= R-FNN | | 10 | SUBDIR+= R-FNN |
11 | SUBDIR+= R-Formula | | 11 | SUBDIR+= R-Formula |
12 | SUBDIR+= R-GRASS | | 12 | SUBDIR+= R-GRASS |
13 | SUBDIR+= R-ISLR | | 13 | SUBDIR+= R-ISLR |
14 | SUBDIR+= R-ISwR | | 14 | SUBDIR+= R-ISwR |
| @@ -198,26 +198,28 @@ SUBDIR+= gp-fplsa | | | @@ -198,26 +198,28 @@ SUBDIR+= gp-fplsa |
198 | SUBDIR+= gp-grape | | 198 | SUBDIR+= gp-grape |
199 | SUBDIR+= gp-grpconst | | 199 | SUBDIR+= gp-grpconst |
200 | SUBDIR+= gp-lag | | 200 | SUBDIR+= gp-lag |
201 | SUBDIR+= grace | | 201 | SUBDIR+= grace |
202 | SUBDIR+= graphopt | | 202 | SUBDIR+= graphopt |
203 | SUBDIR+= grpn | | 203 | SUBDIR+= grpn |
204 | SUBDIR+= gsl | | 204 | SUBDIR+= gsl |
205 | SUBDIR+= gtklife | | 205 | SUBDIR+= gtklife |
206 | SUBDIR+= harmbase2 | | 206 | SUBDIR+= harmbase2 |
207 | SUBDIR+= harmgen | | 207 | SUBDIR+= harmgen |
208 | SUBDIR+= harminv | | 208 | SUBDIR+= harminv |
209 | SUBDIR+= heirloom-factor | | 209 | SUBDIR+= heirloom-factor |
210 | SUBDIR+= heirloom-units | | 210 | SUBDIR+= heirloom-units |
| | | 211 | SUBDIR+= hercules4sdl-decnumber |
| | | 212 | SUBDIR+= hercules4sdl-softfloat |
211 | SUBDIR+= herisvm | | 213 | SUBDIR+= herisvm |
212 | SUBDIR+= hs-bifunctors | | 214 | SUBDIR+= hs-bifunctors |
213 | SUBDIR+= hs-comonad | | 215 | SUBDIR+= hs-comonad |
214 | SUBDIR+= hs-contravariant | | 216 | SUBDIR+= hs-contravariant |
215 | SUBDIR+= hs-distributive | | 217 | SUBDIR+= hs-distributive |
216 | SUBDIR+= hs-ieee754 | | 218 | SUBDIR+= hs-ieee754 |
217 | SUBDIR+= hs-integer-logarithms | | 219 | SUBDIR+= hs-integer-logarithms |
218 | SUBDIR+= hs-math-functions | | 220 | SUBDIR+= hs-math-functions |
219 | SUBDIR+= hs-mwc-random | | 221 | SUBDIR+= hs-mwc-random |
220 | SUBDIR+= hs-nats | | 222 | SUBDIR+= hs-nats |
221 | SUBDIR+= hs-profunctors | | 223 | SUBDIR+= hs-profunctors |
222 | SUBDIR+= hs-scientific | | 224 | SUBDIR+= hs-scientific |
223 | SUBDIR+= hs-semigroupoids | | 225 | SUBDIR+= hs-semigroupoids |
ANSI C General Decimal Arithmetic Library
The decNumber library implements the General Decimal Arithmetic Specification
in ANSI C. This specification defines a decimal arithmetic which meets the
requirements of commercial, financial, and human-oriented applications. It also
matches the decimal arithmetic in the IEEE 754 Standard for Floating Point
Arithmetic.
The library fully implements the specification, and hence supports integer,
fixed-point, and floating-point decimal numbers directly, including infinite,
NaN (Not a Number), and subnormal values. Both arbitrary-precision and
fixed-size representations are supported.
Refer to the package's PDF file for more information.
This version is the one used by the SoftDevLabs version of
Hercules 4.x (Hyperion).
# $NetBSD: Makefile,v 1.1 2021/11/06 16:40:06 rhialto Exp $
DISTNAME= hercules4sdl-decnumber-3.68.0
PKGREVISION= 20210105
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_GITHUB:=SDL-Hercules-390/}
GITHUB_PROJECT= decNumber
GITHUB_TAG= da6650957d7dea21b5647c1fa80fa432f2891550 # 5 Jan 2021
MAINTAINER= rhialto@NetBSD.org
HOMEPAGE= https://github.com/SDL-Hercules-390/decNumber
COMMENT= The SoftDevLabs version of decNumber for Hercules 4.x
LICENSE= modified-bsd # in essence; see README.md
USE_TOOLS+= cmake
USE_LANGUAGES+= c
USE_CMAKE= yes
BLDDIR= ${WRKDIR}/decNumber64.Release
CONFIGURE_DIRS= ${BLDDIR}
CMAKE_ARG_PATH= ${WRKSRC}
CMAKE_ARGS+= -D INSTALL_PREFIX=${PREFIX}/lib/hercules4sdl
pre-configure:
${MKDIR} ${BLDDIR}
post-install:
cd ${DESTDIR}${PREFIX}/lib/hercules4sdl/lib && ${MV} libdecNumber64.a libdecNumber_pic.a
.include "../../mk/bsd.pkg.mk"
@comment $NetBSD: PLIST,v 1.1 2021/11/06 16:40:06 rhialto Exp $
lib/hercules4sdl/decnumber.ERRATA
lib/hercules4sdl/decnumber.ICU-license.html
lib/hercules4sdl/decnumber.pdf
lib/hercules4sdl/decnumber.readme.txt
lib/hercules4sdl/include/decContext.h
lib/hercules4sdl/include/decNumber.h
lib/hercules4sdl/include/decPacked.h
lib/hercules4sdl/include/decQuad.h
lib/hercules4sdl/include/decimal128.h
lib/hercules4sdl/include/decimal32.h
lib/hercules4sdl/include/decimal64.h
lib/hercules4sdl/include/decnumber_version.h
lib/hercules4sdl/lib/libdecNumber_pic.a
# $NetBSD: buildlink3.mk,v 1.1 2021/11/06 16:40:06 rhialto Exp $
BUILDLINK_TREE+= hercules4sdl-decnumber
.if !defined(HERCULES4SDL_DECNUMBER_BUILDLINK3_MK)
HERCULES4SDL_DECNUMBER_BUILDLINK3_MK:=
BUILDLINK_DEPMETHOD.hercules4sdl-decnumber?= build
BUILDLINK_API_DEPENDS.hercules4sdl-decnumber+= hercules4sdl-decnumber>=3.68.0
BUILDLINK_PKGSRCDIR.hercules4sdl-decnumber?= ../../math/hercules4sdl-decnumber
.endif # HERCULES4SDL_DECNUMBER_BUILDLINK3_MK
BUILDLINK_TREE+= -hercules4sdl-decnumber
$NetBSD: distinfo,v 1.1 2021/11/06 16:40:06 rhialto Exp $
BLAKE2s (hercules4sdl-decnumber-3.68.0-da6650957d7dea21b5647c1fa80fa432f2891550.tar.gz) = 9501014ab8f362155742d7740ced713ca281b27a0eda98e35926bf615ec1f2ca
SHA512 (hercules4sdl-decnumber-3.68.0-da6650957d7dea21b5647c1fa80fa432f2891550.tar.gz) = 3b20fa4ecb81eedc90fe919cc06dcb150f74b56771e8521a72648149135923ce3dd19e7b66e0ce660bb66b8e3ff4aa5be38be71b2e9f1de44978e755498f00f2
Size (hercules4sdl-decnumber-3.68.0-da6650957d7dea21b5647c1fa80fa432f2891550.tar.gz) = 785599 bytes
SHA1 (patch-cflags.txt) = 8e5833c2d43e7973dcf9d6c442976efefac30b26
$NetBSD: patch-cflags.txt,v 1.1 2021/11/06 16:40:06 rhialto Exp $
We just want do do a native-wordsize build.
Do not depend on the object directory name to set the wordsize.
--- cflags.txt.orig 2020-11-13 09:38:36.000000000 +0000
+++ cflags.txt
@@ -38,25 +38,8 @@ set( CMAKE_C_FLAGS_RELWITHDEBINFO "${CMA
if( NOT WIN32 )
- set( TEMP_CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS}" )
- set( CMAKE_REQUIRED_FLAGS "-m32" )
- Check_C_Compiler_Flag( -m32 OK )
-
- if( OK )
- set( m32 "-m32" )
- else()
set( m32 "" )
- endif()
-
- set( CMAKE_REQUIRED_FLAGS "-m64" )
- Check_C_Compiler_Flag( -m64 OK )
- set( CMAKE_REQUIRED_FLAGS "${TEMP_CMAKE_REQUIRED_FLAGS}" )
-
- if( OK )
- set( m64 "-m64" )
- else()
set( m64 "" )
- endif()
endif()
ANSI C General Decimal Arithmetic Library
The decNumber library implements the General Decimal Arithmetic Specification
in ANSI C. This specification defines a decimal arithmetic which meets the
requirements of commercial, financial, and human-oriented applications. It also
matches the decimal arithmetic in the IEEE 754 Standard for Floating Point
Arithmetic.
The library fully implements the specification, and hence supports integer,
fixed-point, and floating-point decimal numbers directly, including infinite,
NaN (Not a Number), and subnormal values. Both arbitrary-precision and
fixed-size representations are supported.
Refer to the package's PDF file for more information.
This version is the one used by the SoftDevLabs version of
Hercules 4.x (Hyperion).
# $NetBSD: Makefile,v 1.1 2021/11/06 16:40:06 rhialto Exp $
DISTNAME= hercules4sdl-softfloat-3.5.0
PKGREVISION= 20210105
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_GITHUB:=SDL-Hercules-390/}
GITHUB_PROJECT= SoftFloat
GITHUB_TAG= 42f2f99a479a724de5b601a0551e46678a5e3c57 # 5 Jan 2021
MAINTAINER= rhialto@NetBSD.org
HOMEPAGE= https://github.com/SDL-Hercules-390/SoftFloat
COMMENT= The SoftDevLabs version of SoftFloat for Hercules 4.x
LICENSE= modified-bsd
USE_TOOLS+= cmake
USE_LANGUAGES+= c
USE_CMAKE= yes
BLDDIR= ${WRKDIR}/SoftFloat64.Release
CONFIGURE_DIRS= ${BLDDIR}
CMAKE_ARG_PATH= ${WRKSRC}
CMAKE_ARGS+= -D INSTALL_PREFIX=${PREFIX}/lib/hercules4sdl
pre-configure:
${MKDIR} ${BLDDIR}
post-install:
cd ${DESTDIR}${PREFIX}/lib/hercules4sdl/lib && ${MV} libSoftFloat64.a libSoftFloat_pic.a
.include "../../mk/bsd.pkg.mk"
@comment $NetBSD: PLIST,v 1.1 2021/11/06 16:40:06 rhialto Exp $
lib/hercules4sdl/doc/SoftFloat-history.html
lib/hercules4sdl/doc/SoftFloat-source.html
lib/hercules4sdl/doc/SoftFloat.html
lib/hercules4sdl/include/softfloat.h
lib/hercules4sdl/include/softfloat_types.h
lib/hercules4sdl/include/softfloat_version.h
lib/hercules4sdl/lib/libSoftFloat_pic.a
lib/hercules4sdl/softfloat.LICENSE.txt
lib/hercules4sdl/softfloat.README.html
lib/hercules4sdl/softfloat.README.txt
# $NetBSD: buildlink3.mk,v 1.1 2021/11/06 16:40:06 rhialto Exp $
BUILDLINK_TREE+= hercules4sdl-softfloat
.if !defined(HERCULES4SDL_SOFTFLOAT_BUILDLINK3_MK)
HERCULES4SDL_SOFTFLOAT_BUILDLINK3_MK:=
BUILDLINK_DEPMETHOD.hercules4sdl-softfloat?= build
BUILDLINK_API_DEPENDS.hercules4sdl-softfloat+= hercules4sdl-softfloat>=3.5.0
BUILDLINK_PKGSRCDIR.hercules4sdl-softfloat?= ../../math/hercules4sdl-softfloat
.endif # HERCULES4SDL_SOFTFLOAT_BUILDLINK3_MK
BUILDLINK_TREE+= -hercules4sdl-softfloat
$NetBSD: distinfo,v 1.1 2021/11/06 16:40:06 rhialto Exp $
BLAKE2s (hercules4sdl-softfloat-3.5.0-42f2f99a479a724de5b601a0551e46678a5e3c57.tar.gz) = 77aa9b8edaa69d5d6025cab92b94fcc8ac40379b1f3fb359c5ea5d976997acfa
SHA512 (hercules4sdl-softfloat-3.5.0-42f2f99a479a724de5b601a0551e46678a5e3c57.tar.gz) = 92ee7b5645cb3535064c55a013c160760fbfca8de57ebde570b59205a78c3b9c3253d89004baba0129faa7cb63d2bd862d2c4927b21e69b8ad4c6085ad234030
Size (hercules4sdl-softfloat-3.5.0-42f2f99a479a724de5b601a0551e46678a5e3c57.tar.gz) = 237166 bytes
SHA1 (patch-cflags.txt) = 8e5833c2d43e7973dcf9d6c442976efefac30b26
$NetBSD: patch-cflags.txt,v 1.1 2021/11/06 16:40:06 rhialto Exp $
We just want do do a native-wordsize build.
Do not depend on the object directory name to set the wordsize.
--- cflags.txt.orig 2020-11-13 09:38:36.000000000 +0000
+++ cflags.txt
@@ -38,25 +38,8 @@ set( CMAKE_C_FLAGS_RELWITHDEBINFO "${CMA
if( NOT WIN32 )
- set( TEMP_CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS}" )
- set( CMAKE_REQUIRED_FLAGS "-m32" )
- Check_C_Compiler_Flag( -m32 OK )
-
- if( OK )
- set( m32 "-m32" )
- else()
set( m32 "" )
- endif()
-
- set( CMAKE_REQUIRED_FLAGS "-m64" )
- Check_C_Compiler_Flag( -m64 OK )
- set( CMAKE_REQUIRED_FLAGS "${TEMP_CMAKE_REQUIRED_FLAGS}" )
-
- if( OK )
- set( m64 "-m64" )
- else()
set( m64 "" )
- endif()
endif()