Files
haikuports/sci-libs/alglib/alglib-4.00.0.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

92 lines
2.3 KiB
Bash

SUMMARY="Numerical analysis and data processing library"
DESCRIPTION="ALGLIB is a cross-platform numerical analysis and data \
processing library. It supports several programming languages (C\+\+, C\#, \
Delphi) and several operating systems (Windows and POSIX, including Linux).
ALGLIB features include:
* Data analysis (classification/regression, statistics)
* Optimization and nonlinear solvers
* Interpolation and linear/nonlinear least-squares fitting
* Linear algebra (direct algorithms, EVD/SVD), direct and iterative linear \
solvers
* Fast Fourier Transform and many other algorithms"
HOMEPAGE="https://www.alglib.net/"
COPYRIGHT="1999-2019 Sergey Bochkanov"
LICENSE="GNU GPL v2"
REVISION="2"
SOURCE_URI="https://www.alglib.net/translator/re/alglib-$portVersion.cpp.gpl.tgz"
CHECKSUM_SHA256="827b5f559713a3e8c7c1452ed1ffd5227adb9622d1a165ceb70c117c8ed3ccb4"
SOURCE_DIR="alglib-cpp"
ADDITIONAL_FILES="CMakeLists.txt.in"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%.*}"
PROVIDES="
alglib$secondaryArchSuffix = $portVersion
lib:libalglib$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libgfortran$secondaryArchSuffix
lib:libgomp$secondaryArchSuffix
"
PROVIDES_devel="
alglib${secondaryArchSuffix}_devel = $portVersion
devel:libalglib$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
alglib$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
defineDebugInfoPackage alglib$secondaryArchSuffix \
"$libDir"/libalglib.so.$portVersion \
BUILD()
{
# ALGLIB doesn't provide any build system
local VERSION="$portVersion"
local SOVERSION="`echo ${portVersion%.*}`"
sed \
-e "s|@VERSION@|$VERSION|" \
-e "s|@SOVERSION@|$SOVERSION|" \
$portDir/additional-files/CMakeLists.txt.in > CMakeLists.txt
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DBUILD_TEST=ON \
$cmakeDirArgs
make -C build $jobArgs
}
INSTALL()
{
make -C build install
install -m 0755 -d "$developDocDir"
install -m 0644 -t "$developDocDir" manual.cpp.html
prepareInstalledDevelLib libalglib
packageEntries devel \
$developDir
}
TEST()
{
make -C build test
}