Skip to content

Commit

Permalink
octave: upgrade 4.4.1 -> 6.4.0 and overhaul recipe
Browse files Browse the repository at this point in the history
Complete rework of recipe was done with two targets in mind:
* Do not disappoint users on this project - it is a treasure for mathians
* Do not over-complicate recipe unnecessarily

Signed-off-by: Andreas Müller <[email protected]>
  • Loading branch information
schnitzeltony committed Apr 2, 2022
1 parent 21e3859 commit 3513dab
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 40 deletions.
40 changes: 0 additions & 40 deletions meta-oe/recipes-devtools/octave/octave_4.4.1.bb

This file was deleted.

52 changes: 52 additions & 0 deletions meta-oe/recipes-devtools/octave/octave_6.4.0.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
SUMMARY = "High-level language, primarily intended for numerical computations"
HOMEPAGE = "http://www.gnu.org/software/octave/"
SECTION = "math"

LICENSE = "GPL-3.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464"

# To build, add 'FORTRAN:forcevariable = ",fortran"' to your local.conf (or use
# meta-mortsgna as distro :)

DEPENDS = " \
gperf-native \
libglu \
lapack \
fftw \
curl \
freetype \
fontconfig \
texinfo \
pcre \
readline \
fltk \
hdf5 \
libsndfile1 \
"

inherit autotools pkgconfig texinfo gettext gtk-icon-cache mime-xdg features_check

REQUIRED_DISTRO_FEATURES = "x11 opengl"

SRC_URI = " \
${GNU_MIRROR}/octave/${BPN}-${PV}.tar.gz \
file://fix-blas-library-integer-size.patch \
"
SRC_URI[sha256sum] = "b48f33d4fceaf394cfbea73a8c850000936d83a41739a24f7568b5b0a7b39acd"

EXTRA_OECONF = " \
--disable-java \
--disable-docs \
"

do_compile:prepend() {
for folder in "liboctave/operators liboctave/numeric liboctave/array liboctave/util"; do
mkdir -p ${B}/${folder}
done
}

FILES:${PN} += "${datadir}/metainfo"
FILES:${PN}-dev += "${libdir}/${BPN}/${PV}/lib*${SOLIBSDEV}"

# fortran is not enabled by default
EXCLUDE_FROM_WORLD = "1"

0 comments on commit 3513dab

Please sign in to comment.