mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-14 08:59:03 +08:00
openblas: provide only blas and cblas
This commit is contained in:
parent
407df96d27
commit
dd010e7d2f
@ -1,9 +1,10 @@
|
||||
# Maintainer: Fabian Kosmale
|
||||
# Contributor (Arch original): Giuseppe Borzi <gborzi _AT_ ieee _DOT_ org>
|
||||
|
||||
pkgname=openblas
|
||||
_pkgname=OpenBLAS
|
||||
pkgver=0.2.17
|
||||
pkgrel=1
|
||||
pkgrel=7
|
||||
pkgdesc="An optimized BLAS library based on GotoBLAS2 1.13 BSD "
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://www.openblas.net/"
|
||||
@ -11,6 +12,7 @@ license=('BSD')
|
||||
depends=('gcc-libs')
|
||||
makedepends=('perl' 'gcc-fortran')
|
||||
conflicts=('blas' 'cblas')
|
||||
provides=('blas' 'cblas')
|
||||
options=(!makeflags !emptydirs staticlibs)
|
||||
source=(${_pkgname}-v${pkgver}.tar.gz::http://github.com/xianyi/OpenBLAS/archive/v${pkgver}.tar.gz)
|
||||
sha256sums=('0fe836dfee219ff4cadcc3567fb2223d9e0da5f60c7382711fb9e2c35ecf0dbf')
|
||||
@ -22,16 +24,17 @@ build() {
|
||||
unset CXXFLAGS
|
||||
# using and OPENMP=1 should be the most sensible option
|
||||
# see https://github.com/xianyi/OpenBLAS/wiki/faq for details
|
||||
# we use NO_LAPACK, as LAPACK should be provided by our lapack package
|
||||
make USE_OPENMP=1 NO_LAPACK=1 MAJOR_VERSION=3 DYNAMIC_ARCH=1
|
||||
# we use NO_LAPACK and NO_LAPACKE, as LAPACK should be provided by our lapack package
|
||||
make USE_OPENMP=1 NO_LAPACK=1 NO_LAPACKE=1 MAJOR_VERSION=3 DYNAMIC_ARCH=1
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$_pkgname-$pkgver"
|
||||
|
||||
make PREFIX="$pkgdir/usr" MAJOR_VERSION=3 install
|
||||
make PREFIX="$pkgdir/usr" USE_OPENMP=1 NO_LAPACK=1 NO_LAPACKE=1 MAJOR_VERSION=3 DYNAMIC_ARCH=1 install
|
||||
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
|
||||
|
||||
# Remove reference to ${pkgdir}
|
||||
sed -i -e "s|${pkgdir}||" "${pkgdir}/usr/lib/cmake/openblas/OpenBLASConfig.cmake"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user