mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
lapack: new recipe (#1083)
This commit is contained in:
92
sci-libs/lapack/lapack-3.7.0.recipe
Normal file
92
sci-libs/lapack/lapack-3.7.0.recipe
Normal file
@@ -0,0 +1,92 @@
|
||||
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-2016 The LAPACK Project"
|
||||
LICENSE="BSD (3-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/Reference-LAPACK/lapack/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="e87ded395b94024755b409e17157bd8c5ecb673f635020d01cd988a3501c4287"
|
||||
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.7.0
|
||||
lib:liblapacke$secondaryArchSuffix = $portVersion
|
||||
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.7.0
|
||||
devel:liblapacke$secondaryArchSuffix = $portVersion
|
||||
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=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
|
||||
}
|
||||
Reference in New Issue
Block a user