mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-15 16:20:08 +02:00
93 lines
2.1 KiB
Bash
93 lines
2.1 KiB
Bash
SUMMARY="Numerical linear algebra package"
|
|
DESCRIPTION="A library of Fortran 90 with subroutines for solving \
|
|
the most commonly occurring problems in numerical linear algebra."
|
|
HOMEPAGE="http://www.netlib.org/lapack/"
|
|
COPYRIGHT="1992-2017 The LAPACK Project"
|
|
LICENSE="BSD (3-clause)"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/Reference-LAPACK/lapack/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="deb22cc4a6120bff72621155a9917f485f96ef8319ac074a7afbc68aab88bcf6"
|
|
SOURCE_DIR="lapack-$portVersion"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
lapack$secondaryArchSuffix = $portVersion
|
|
lib:liblapack$secondaryArchSuffix = $portVersion compat >= 3
|
|
lib:liblapacke$secondaryArchSuffix = $portVersion compat >= 3
|
|
lib:libtmglib$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libgfortran$secondaryArchSuffix
|
|
lib:libopenblas$secondaryArchSuffix
|
|
lib:libquadmath$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
lapack${secondaryArchSuffix}_devel = $portVersion
|
|
devel:liblapack$secondaryArchSuffix = $portVersion compat >= 3
|
|
devel:liblapacke$secondaryArchSuffix = $portVersion compat >= 3
|
|
devel:libtmglib$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES_devel="
|
|
lapack$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libopenblas$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gfortran$secondaryArchSuffix
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:python
|
|
cmd:strip$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
mkdir -p build && cd "$_"
|
|
|
|
cmake .. \
|
|
-DCMAKE_INSTALL_PREFIX=$prefix \
|
|
-DCMAKE_Fortran_USE_RESPONSE_FILE_FOR_OBJECTS=1 \
|
|
-DCMAKE_Fortran_USE_RESPONSE_FILE_FOR_INCLUDES=1 \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DUSE_OPTIMIZED_BLAS=ON \
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
-DLAPACKE_WITH_TMG=ON
|
|
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd build
|
|
make install
|
|
strip $libDir/lib*
|
|
|
|
mkdir -p $includeDir
|
|
mv $prefix/include/* $includeDir/
|
|
rmdir $prefix/include
|
|
|
|
prepareInstalledDevelLibs liblapack \
|
|
liblapacke \
|
|
libtmglib
|
|
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$libDir/cmake
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make test
|
|
}
|