aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/octave/octave_7.1.0.bb
blob: c9982a7bb29713f50c85ef05b732b3861b064f3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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] = "d4a9d81f3f67b4a6e07cb7a80dcb10ad5e9176fcc30762c70a81580a64b8b0b6"

# Note: Qt5Help is required for gui -> qttools(-native) must be build with
# clang in PACKAGECONFIG
PACKAGECONFIG[gui] = "--with-qt=yes,--with-qt=no,qttools-native qttools qtbase"

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"