mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
76 lines
1.9 KiB
Bash
76 lines
1.9 KiB
Bash
SUMMARY="An optimized BLAS library"
|
|
DESCRIPTION="OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD\
|
|
version."
|
|
HOMEPAGE="http://www.openblas.net/"
|
|
COPYRIGHT="2011-2016 The OpenBLAS Project"
|
|
LICENSE="BSD (3-clause)"
|
|
REVISION="7"
|
|
SOURCE_URI="http://github.com/xianyi/OpenBLAS/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="9c40b5e4970f27c5f6911cb0a28aa26b6c83f17418b69f8e5a116bb983ca8557"
|
|
SOURCE_DIR="OpenBLAS-$portVersion"
|
|
PATCHES="openblas-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
openblas$secondaryArchSuffix = $portVersion
|
|
lib:libopenblas$secondaryArchSuffix = $portVersion compat >= 0
|
|
lib:libopenblasp_r${portVersion}$secondaryArchSuffix = $portVersion compat >= 0
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libgfortran$secondaryArchSuffix
|
|
lib:libgomp$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
openblas${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libopenblas$secondaryArchSuffix = $portVersion compat >= 0
|
|
devel:libopenblasp_r${portVersion}$secondaryArchSuffix = $portVersion compat >= 0
|
|
"
|
|
REQUIRES_devel="
|
|
openblas$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:awk
|
|
cmd:gfortran$secondaryArchSuffix
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:perl
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
# DYNAMIC_ARCH is x86 only
|
|
# PPC & others should specify TARGET=
|
|
target=
|
|
[ "$targetArchitecture" == x86 ] && target=NORTHWOOD
|
|
[ "$targetArchitecture" == x86_64 ] && target=PRESCOTT
|
|
make MAKE_NB_JOBS=${jobArgs#-j} NO_LAPACKE=1 NO_AFFINITY=1 NO_WARMUP=1 \
|
|
NUM_THREADS=64 DYNAMIC_ARCH=1 USE_OPENMP=1 TARGET=$target
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install PREFIX=$prefix \
|
|
OPENBLAS_LIBRARY_DIR=$libDir \
|
|
OPENBLAS_INCLUDE_DIR=$includeDir
|
|
|
|
prepareInstalledDevelLibs libopenblas libopenblasp-r$portVersion
|
|
|
|
cp -P $developLibDir/libopenblas.so.0 $libDir
|
|
packageEntries devel \
|
|
$developDir \
|
|
$libDir/cmake
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make tests
|
|
}
|