Files
haikuports/sci-libs/matio/matio-1.5.26.recipe
Alexander von Gluck 47ea51f320 cmake/meson: Mass fix packages with broken debuginfo (#12822)
* cmake/debuginfo: Mass fix packages with broken debuginfo

* rtl_sdr: Fix trailing whitespace

* meson/debuginfo: Mass fix packages with broken debuginfo

* clean up conflicts

---------

Co-authored-by: Luc Schrijvers <begasus@gmail.com>
2026-01-07 17:36:21 +01:00

84 lines
1.9 KiB
Bash

SUMMARY="Library for reading and writing matlab files"
DESCRIPTION="Matio is an open-source C library for reading and writing binary MATLAB MAT files. \
This library is designed for use by programs/libraries that do not have access or do not want to \
rely on MATLAB's shared libraries."
HOMEPAGE="https://sourceforge.net/projects/matio/"
COPYRIGHT="2015-2023 The matio contributors
2011-2014 Christopher C. Hulbert"
LICENSE="BSD (2-clause)"
REVISION="2"
SOURCE_URI="https://sourceforge.net/projects/matio/files/matio/$portVersion/matio-$portVersion.tar.xz"
CHECKSUM_SHA256="06352c6a34b2e001b5bd5e748cc405683c88ec71b1098dcf3561a4859c33f44f"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
libVersion="11.1.1"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
matio$secondaryArchSuffix = $portVersion
cmd:matdump$commandSuffix
lib:libmatio$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libhdf5$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
matio${secondaryArchSuffix}_devel = $portVersion
devel:libmatio$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
matio$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libhdf5$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:make
"
defineDebugInfoPackage matio$secondaryArchSuffix \
$libDir/libmatio.so.$libVersion \
$commandBinDir/matdump
BUILD()
{
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=RelWithDebInfo \
$cmakeDirArgs \
-DCMAKE_INSTALL_BINDIR=$commandBinDir
make -Cbuild $jobArgs
}
INSTALL()
{
make -Cbuild install
prepareInstalledDevelLib \
libmatio
fixPkgconfig
packageEntries devel \
$developDir
}
TEST()
{
./build/test_snprintf
}