summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorØrjan Malde <red@foxi.me>2023-09-18 15:32:05 +0200
committerØrjan Malde <red@foxi.me>2023-09-18 15:32:05 +0200
commitcfb9ff2f8830c9f7fa26e9cdb866f8db608a202c (patch)
tree8c258b1c9414950ca75cdda0ea176ae21c4fff2c
parent7438c1790547852bc78c712523d2cda9e58a564a (diff)
downloadmidipix_build-cfb9ff2f8830c9f7fa26e9cdb866f8db608a202c.tar.bz2
midipix_build-cfb9ff2f8830c9f7fa26e9cdb866f8db608a202c.tar.xz
groups.d/221.native_packages_dev.group: adds algol68g v3.3.23
Signed-off-by: Ørjan Malde <red@foxi.me>
-rw-r--r--groups.d/221.native_packages_dev.group7
-rw-r--r--patches/algol68g-3.3.23_pre.local.patch449
2 files changed, 455 insertions, 1 deletions
diff --git a/groups.d/221.native_packages_dev.group b/groups.d/221.native_packages_dev.group
index a186e1ce..a4186036 100644
--- a/groups.d/221.native_packages_dev.group
+++ b/groups.d/221.native_packages_dev.group
@@ -3,8 +3,13 @@
#
GROUP_TARGET_APPEND="native_packages";
NATIVE_PACKAGES_DEV_PACKAGES="
-bison cdecl chicken cparser cssc diffutils flex gdb gengetopt gnucobol indent lua lunix m4 make mandoc nasm
+algol68g bison cdecl chicken cparser cssc diffutils flex gdb gengetopt gnucobol indent lua lunix m4 make mandoc nasm
patch patchutils perl posix_cc python2 python3 ruby sbsigntools tk";
+: ${PKG_ALGOL68G_SHA256SUM:=3574889be565eff353f24b346cda960086256edcc6bf4ab4733c611a8945d5bb};
+: ${PKG_ALGOL68G_VERSION:=3.3.23};
+: ${PKG_ALGOL68G_URL:=https://jmvdveer.home.xs4all.nl/algol68g-${PKG_ALGOL68G_VERSION}.tar.gz}
+: ${PKG_ALGOL68G_CONFIGURE_ARGS_EXTRA:="--disable-mathlib --disable-plotutils --disable-postgresql --disable-gsl --disable-curl"};
+: ${PKG_ALGOL68G_CFLAGS_CONFIGURE_EXTRA:="--sysroot=${PREFIX_NATIVE} -DHAVE_FLT80=1 -DBUILD_UNIX=1"};
: ${PKG_BISON_DEPENDS:="readline libiconv"};
: ${PKG_BISON_SHA256SUM:=9bba0214ccf7f1079c5d59210045227bcf619519840ebfa80cd3849cff5a5bf2};
: ${PKG_BISON_VERSION:=3.8.2};
diff --git a/patches/algol68g-3.3.23_pre.local.patch b/patches/algol68g-3.3.23_pre.local.patch
new file mode 100644
index 00000000..0f79209d
--- /dev/null
+++ b/patches/algol68g-3.3.23_pre.local.patch
@@ -0,0 +1,449 @@
+diff -ru algol68g-3.3.23.orig/configure algol68g-3.3.23/configure
+--- algol68g-3.3.23.orig/configure 2023-09-16 22:21:31.000000000 +0200
++++ algol68g-3.3.23/configure 2023-09-18 15:18:17.972370415 +0200
+@@ -2889,6 +2889,20 @@
+ printf "%s\n" "linux" >&6; }
+ ;;
+ #
++# Midipix.
++#
++*-*-midipix*)
++
++printf "%s\n" "#define BUILD_MIDIPIX 1" >>confdefs.h
++
++
++printf "%s\n" "#define HAVE_IEEE_754 1" >>confdefs.h
++
++{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: midipix" >&5
++printf "%s\n" "midipix" >&6; }
++ ;;
++
++#
+ # Cygwin.
+ #
+ *86-*-cygwin* | *86_64-*-cygwin*)
+@@ -5001,43 +5015,6 @@
+ #
+ # Test on gcc capabilities.
+ #
+- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking __attribute__((aligned())) supported" >&5
+-printf %s "checking __attribute__((aligned())) supported... " >&6; }
+-
+-if test "$cross_compiling" = yes
+-then :
+- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+-printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+-as_fn_error $? "cannot run test program while cross compiling
+-See \`config.log' for more details" "$LINENO" 5; }
+-else $as_nop
+- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h. */
+-
+-int
+-main (void)
+-{
+-typedef int aint __attribute__((aligned(8)));
+- ;
+- return 0;
+-}
+-_ACEOF
+-if ac_fn_c_try_run "$LINENO"
+-then :
+- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+-printf "%s\n" "yes" >&6; }
+-else $as_nop
+- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+-printf "%s\n" "no" >&6; }
+- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+-printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+-as_fn_error $? "stop -- C compiler does not support __attribute__aligned directive
+-See \`config.log' for more details" "$LINENO" 5; }
+-fi
+-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+- conftest.$ac_objext conftest.beam conftest.$ac_ext
+-fi
+-
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
+ printf %s "checking for inline... " >&6; }
+ if test ${ac_cv_c_inline+y}
+@@ -5552,49 +5529,6 @@
+ fi
+ rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+
+-#
+-# Test on glibc
+-#
+-
+-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking GNU C library" >&5
+-printf %s "checking GNU C library... " >&6; }
+-if test "$cross_compiling" = yes
+-then :
+- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: assuming no" >&5
+-printf "%s\n" "assuming no" >&6; }
+- enable_generic=yes
+-
+-
+-else $as_nop
+- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h. */
+-
+-int
+-main (void)
+-{
+-(void) gnu_get_libc_version();
+- ;
+- return 0;
+-}
+-_ACEOF
+-if ac_fn_c_try_run "$LINENO"
+-then :
+- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+-printf "%s\n" "yes" >&6; }
+-
+-printf "%s\n" "#define HAVE_GNU_C_LIB 1" >>confdefs.h
+-
+-
+-else $as_nop
+- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+-printf "%s\n" "no" >&6; }
+- enable_generic=yes
+-
+-fi
+-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+- conftest.$ac_objext conftest.beam conftest.$ac_ext
+-fi
+-
+
+ #
+ # We know about the platform now.
+@@ -5605,11 +5539,6 @@
+ enable_core=yes
+ fi
+
+-if test "x$enable_generic" = "xyes"; then
+- enable_standard_types=yes
+- enable_long_types=no
+-fi
+-
+ if test "x$enable_core" = "xyes"; then
+ enable_compiler=no
+ enable_curl=no
+@@ -6648,318 +6577,6 @@
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: optional headers and libraries..." >&5
+ printf "%s\n" "$as_me: optional headers and libraries..." >&6;}
+
+-if test "x$enable_standard_types" = "xyes"; then
+- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking int is 32 bit" >&5
+-printf %s "checking int is 32 bit... " >&6; }
+- if test "$cross_compiling" = yes
+-then :
+- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+-printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+-as_fn_error $? "cannot run test program while cross compiling
+-See \`config.log' for more details" "$LINENO" 5; }
+-else $as_nop
+- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h. */
+-
+-int
+-main (void)
+-{
+-return sizeof (int) != 4;
+- ;
+- return 0;
+-}
+-_ACEOF
+-if ac_fn_c_try_run "$LINENO"
+-then :
+- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+-printf "%s\n" "yes" >&6; }
+-else $as_nop
+- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+-printf "%s\n" "no" >&6; }
+- enable_long_types=no
+-fi
+-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+- conftest.$ac_objext conftest.beam conftest.$ac_ext
+-fi
+-
+- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking unsigned is 32 bit" >&5
+-printf %s "checking unsigned is 32 bit... " >&6; }
+- if test "$cross_compiling" = yes
+-then :
+- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+-printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+-as_fn_error $? "cannot run test program while cross compiling
+-See \`config.log' for more details" "$LINENO" 5; }
+-else $as_nop
+- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h. */
+-
+-int
+-main (void)
+-{
+-return sizeof (unsigned) != 4;
+- ;
+- return 0;
+-}
+-_ACEOF
+-if ac_fn_c_try_run "$LINENO"
+-then :
+- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+-printf "%s\n" "yes" >&6; }
+-else $as_nop
+- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+-printf "%s\n" "no" >&6; }
+- enable_long_types=no
+-fi
+-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+- conftest.$ac_objext conftest.beam conftest.$ac_ext
+-fi
+-
+- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking uint64_t is 64 bit" >&5
+-printf %s "checking uint64_t is 64 bit... " >&6; }
+- if test "$cross_compiling" = yes
+-then :
+- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+-printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+-as_fn_error $? "cannot run test program while cross compiling
+-See \`config.log' for more details" "$LINENO" 5; }
+-else $as_nop
+- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h. */
+-#include <stdint.h>
+-int
+-main (void)
+-{
+-return sizeof (uint64_t) != 8;
+- ;
+- return 0;
+-}
+-_ACEOF
+-if ac_fn_c_try_run "$LINENO"
+-then :
+- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+-printf "%s\n" "yes" >&6; }
+-else $as_nop
+- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+-printf "%s\n" "no" >&6; }
+- enable_standard_types=no
+- enable_long_types=no
+-fi
+-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+- conftest.$ac_objext conftest.beam conftest.$ac_ext
+-fi
+-
+- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking double is 64 bit" >&5
+-printf %s "checking double is 64 bit... " >&6; }
+- if test "$cross_compiling" = yes
+-then :
+- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+-printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+-as_fn_error $? "cannot run test program while cross compiling
+-See \`config.log' for more details" "$LINENO" 5; }
+-else $as_nop
+- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h. */
+-
+-int
+-main (void)
+-{
+-return sizeof (double) != 8;
+- ;
+- return 0;
+-}
+-_ACEOF
+-if ac_fn_c_try_run "$LINENO"
+-then :
+- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+-printf "%s\n" "yes" >&6; }
+-else $as_nop
+- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+-printf "%s\n" "no" >&6; }
+- enable_long_types=no
+-fi
+-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+- conftest.$ac_objext conftest.beam conftest.$ac_ext
+-fi
+-
+- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking long double has 64-bit mantissa" >&5
+-printf %s "checking long double has 64-bit mantissa... " >&6; }
+- if test "$cross_compiling" = yes
+-then :
+- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+-printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+-as_fn_error $? "cannot run test program while cross compiling
+-See \`config.log' for more details" "$LINENO" 5; }
+-else $as_nop
+- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h. */
+-#include <float.h>
+-int
+-main (void)
+-{
+-return LDBL_MANT_DIG != 64;
+- ;
+- return 0;
+-}
+-_ACEOF
+-if ac_fn_c_try_run "$LINENO"
+-then :
+- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+-printf "%s\n" "yes" >&6; }
+-
+-printf "%s\n" "#define HAVE_FLT80 1" >>confdefs.h
+-
+-else $as_nop
+- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+-printf "%s\n" "no" >&6; }
+-fi
+-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+- conftest.$ac_objext conftest.beam conftest.$ac_ext
+-fi
+-
+-fi
+-
+-if test "x$enable_standard_types" = "xno"; then
+- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+-printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+-as_fn_error $? "stop -- unexpected lengths for int and/or double and/or uint64_t
+-See \`config.log' for more details" "$LINENO" 5; }
+-fi
+-
+-if test "x$enable_long_types" = "xyes"; then
+- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 64-bit long long int is available" >&5
+-printf %s "checking 64-bit long long int is available... " >&6; }
+- if test "$cross_compiling" = yes
+-then :
+- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+-printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+-as_fn_error $? "cannot run test program while cross compiling
+-See \`config.log' for more details" "$LINENO" 5; }
+-else $as_nop
+- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h. */
+-
+-int
+-main (void)
+-{
+-return sizeof (long long) != 8;
+- ;
+- return 0;
+-}
+-_ACEOF
+-if ac_fn_c_try_run "$LINENO"
+-then :
+- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+-printf "%s\n" "yes" >&6; }
+-else $as_nop
+- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+-printf "%s\n" "no" >&6; }
+- enable_long_types=no
+-fi
+-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+- conftest.$ac_objext conftest.beam conftest.$ac_ext
+-fi
+-
+- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 64-bit long long unsigned is available" >&5
+-printf %s "checking 64-bit long long unsigned is available... " >&6; }
+- if test "$cross_compiling" = yes
+-then :
+- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+-printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+-as_fn_error $? "cannot run test program while cross compiling
+-See \`config.log' for more details" "$LINENO" 5; }
+-else $as_nop
+- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h. */
+-
+-int
+-main (void)
+-{
+-return sizeof (long long unsigned) != 8;
+- ;
+- return 0;
+-}
+-_ACEOF
+-if ac_fn_c_try_run "$LINENO"
+-then :
+- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+-printf "%s\n" "yes" >&6; }
+-else $as_nop
+- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+-printf "%s\n" "no" >&6; }
+- enable_long_types=no
+-fi
+-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+- conftest.$ac_objext conftest.beam conftest.$ac_ext
+-fi
+-
+- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking __float128 is available" >&5
+-printf %s "checking __float128 is available... " >&6; }
+- if test "$cross_compiling" = yes
+-then :
+- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+-printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+-as_fn_error $? "cannot run test program while cross compiling
+-See \`config.log' for more details" "$LINENO" 5; }
+-else $as_nop
+- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h. */
+-
+-int
+-main (void)
+-{
+-return sizeof (__float128) != 16;
+- ;
+- return 0;
+-}
+-_ACEOF
+-if ac_fn_c_try_run "$LINENO"
+-then :
+- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+-printf "%s\n" "yes" >&6; }
+-else $as_nop
+- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+-printf "%s\n" "no" >&6; }
+- enable_long_types=no
+-fi
+-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+- conftest.$ac_objext conftest.beam conftest.$ac_ext
+-fi
+-
+- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking __complex128 is available" >&5
+-printf %s "checking __complex128 is available... " >&6; }
+- if test "$cross_compiling" = yes
+-then :
+- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+-printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+-as_fn_error $? "cannot run test program while cross compiling
+-See \`config.log' for more details" "$LINENO" 5; }
+-else $as_nop
+- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h. */
+-typedef _Complex float __attribute__((mode(TC))) __complex128;
+-int
+-main (void)
+-{
+-return sizeof (__complex128) != 32;
+- ;
+- return 0;
+-}
+-_ACEOF
+-if ac_fn_c_try_run "$LINENO"
+-then :
+- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+-printf "%s\n" "yes" >&6; }
+-else $as_nop
+- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+-printf "%s\n" "no" >&6; }
+- enable_long_types=no
+-fi
+-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+- conftest.$ac_objext conftest.beam conftest.$ac_ext
+-fi
+-
+-fi
+
+ if test "x$enable_long_types" = "xyes"; then
+ if test "x$enable_quadmath" = "xyes"; then