[Mod] First commit

This commit is contained in:
2022-10-31 22:18:58 +08:00
commit 1c8a3d9709
13090 changed files with 526733 additions and 0 deletions

View File

@ -0,0 +1,40 @@
From e4dcfefac4215ee66c3dda5b067dd6d06066b0a2 Mon Sep 17 00:00:00 2001
From: Julien Olivain <ju.o@free.fr>
Date: Sat, 5 Mar 2022 12:36:09 +0100
Subject: [PATCH] Fix BLAS library integer size detection
When cross-compiling, octave ./configure script fails to detect the BLAS
library integer size and fails with the message:
configure: error: unrecognized BLAS library integer size
This patch fixes this detection.
Patch adapted from:
https://github.com/openembedded/meta-openembedded/commit/0ad153f721ef99de585c4452a997a7104f45d71d
Signed-off-by: Julien Olivain <ju.o@free.fr>
---
configure.ac | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/configure.ac b/configure.ac
index de7a00a330..383ce27b06 100644
--- a/configure.ac
+++ b/configure.ac
@@ -781,6 +781,12 @@ if test $ax_blas_ok = no || test $ax_lapack_ok = no; then
AC_MSG_ERROR([BLAS and LAPACK libraries are required])
fi
+if ac_fn_f77_try_run "$LINENO"; then :
+ ax_blas_integer_size=8
+else
+ ax_blas_integer_size=4
+fi
+
case $ax_blas_integer_size in
4)
HAVE_64_BIT_BLAS=no
--
2.36.0

39
package/octave/Config.in Normal file
View File

@ -0,0 +1,39 @@
config BR2_PACKAGE_OCTAVE
bool "octave"
depends on BR2_PACKAGE_OPENBLAS_ARCH_SUPPORTS
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
depends on BR2_TOOLCHAIN_HAS_FORTRAN
# Some Bootlin x86_64 toolchains (like version
# bleeding-edge-2021.11-1) has a file
# "x86_64-buildroot-linux-gnu/lib64/libgfortran.la" including
# a "dependency_libs=" entry with an incorrect absolute path
# to linquadmath.la on the bootlin build host. This breaks
# builds using libtool with libgfortran. Those toolchains are
# used by the "utils/test-pkg" script.
depends on !BR2_TOOLCHAIN_EXTERNAL_BOOTLIN || !BR2_x86_64
select BR2_PACKAGE_OPENBLAS
select BR2_PACKAGE_PCRE
select BR2_PACKAGE_PCRE_UTF
help
GNU Octave is a high-level language, primarily intended for
numerical computations. It provides a convenient command
line interface for solving linear and nonlinear problems
numerically, and for performing other numerical experiments
using a language that is mostly compatible with Matlab. It
may also be used as a batch-oriented language. Octave has
extensive tools for solving common numerical linear algebra
problems, finding the roots of nonlinear equations,
integrating ordinary functions, manipulating polynomials,
and integrating ordinary differential and
differential-algebraic equations. It is easily extensible
and customizable via user-defined functions written in
Octave's own language, or using dynamically loaded modules
written in C++, C, Fortran, or other languages.
https://www.octave.org/
comment "octave needs a toolchain w/ C++ and fortran, gcc >= 4.8"
depends on !BR2_INSTALL_LIBSTDCPP || \
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 || \
!BR2_TOOLCHAIN_HAS_FORTRAN

View File

@ -0,0 +1,3 @@
# Locally computed
sha256 009388289b82fdcc920a2371355049cb6958c735ee9aa3893a256df4a6bf7515 octave-7.2.0.tar.lz
sha256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986 COPYING

28
package/octave/octave.mk Normal file
View File

@ -0,0 +1,28 @@
################################################################################
#
# octave
#
################################################################################
OCTAVE_VERSION = 7.2.0
OCTAVE_SITE = https://ftp.gnu.org/gnu/octave
OCTAVE_SOURCE = octave-$(OCTAVE_VERSION).tar.lz
OCTAVE_LICENSE = GPL-3.0+
OCTAVE_LICENSE_FILES = COPYING
OCTAVE_AUTORECONF = YES
OCTAVE_CONF_OPTS = --disable-java
OCTAVE_DEPENDENCIES = \
host-gperf \
openblas \
pcre
ifeq ($(BR2_PACKAGE_READLINE),y)
OCTAVE_CONF_OPTS += --enable-readline
OCTAVE_DEPENDENCIES += readline
else
OCTAVE_CONF_OPTS += --disable-readline
endif
$(eval $(autotools-package))