Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

156.14. matio-1.6.0

Reads and writes MATLAB MAT files, v4, v5 and the HDF5-based v7.3

1.6.0-1 · BSD-2-Clause · 1.6 SBU · 757.5 KiB, 76 files · 41_system, 891 of 1047 · ports/core/sci-libs/matio

Homepage: https://github.com/tbeu/matio

Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/sci-libs.txt:

MATLAB's .mat files, which libvips opens as images.

Depends on: zlib, hdf5, texinfo.

Required by (2): labplot, libvips.

Sources: matio-1.6.0.tar.gz (10.1 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install matio'

build.sh:

./configure --prefix=/usr --libdir=/usr/lib --disable-static \
	--with-zlib=/usr \
	--with-hdf5=/usr \
	--enable-mat73=yes \
	--enable-extended-sparse=yes \
	--enable-mcos=yes \
	--with-default-file-ver=5
make
makeinfo -I documentation -o documentation/matio.info documentation/matio_user_guide.texi
make DESTDIR=$PKG install
test -s "$PKG"/usr/share/info/matio.info

Programs: matdump.

Libraries: libmatio.so.

Directories: /usr/share/licenses/matio.