diff --git a/sci-libs/matio/matio-1.5.26.recipe b/sci-libs/matio/matio-1.5.26.recipe new file mode 100644 index 000000000..a52b69487 --- /dev/null +++ b/sci-libs/matio/matio-1.5.26.recipe @@ -0,0 +1,82 @@ +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="1" +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=Release \ + $cmakeDirArgs + make -Cbuild $jobArgs +} + +INSTALL() +{ + make -Cbuild install + + prepareInstalledDevelLib \ + libmatio + fixPkgconfig + + packageEntries devel \ + $developDir +} + +TEST() +{ + ./build/test_snprintf +}