diff options
author | TimB87 <tbier@posteo.de> | 2019-06-11 23:45:47 +0200 |
---|---|---|
committer | TimB87 <tbier@posteo.de> | 2019-06-11 23:45:47 +0200 |
commit | 13cf328dd317724bc4e3c050ba01c1be128f22b8 (patch) | |
tree | f4acf1e4308bcf55d02e9e46e4ab7e9839ba5e37 /openblas | |
parent | ec34728b9e0402bcdccadb9ba5059a4eaf739ce1 (diff) | |
download | contrib-13cf328dd317724bc4e3c050ba01c1be128f22b8.tar.gz contrib-13cf328dd317724bc4e3c050ba01c1be128f22b8.tar.xz |
openblas: initial commit
Diffstat (limited to 'openblas')
-rw-r--r-- | openblas/.footprint | 34 | ||||
-rw-r--r-- | openblas/.signature | 5 | ||||
-rw-r--r-- | openblas/Pkgfile | 46 | ||||
-rw-r--r-- | openblas/post-install | 7 |
4 files changed, 92 insertions, 0 deletions
diff --git a/openblas/.footprint b/openblas/.footprint new file mode 100644 index 000000000..140d0b822 --- /dev/null +++ b/openblas/.footprint @@ -0,0 +1,34 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +drwxr-xr-x root/root usr/include/ +-rw-r--r-- root/root usr/include/cblas.h +-rw-r--r-- root/root usr/include/f77blas.h +-rw-r--r-- root/root usr/include/lapacke.h +-rw-r--r-- root/root usr/include/lapacke_config.h +-rw-r--r-- root/root usr/include/lapacke_mangling.h +-rw-r--r-- root/root usr/include/lapacke_utils.h +-rw-r--r-- root/root usr/include/openblas_config.h +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/cmake/ +drwxr-xr-x root/root usr/lib/cmake/openblas/ +-rw-r--r-- root/root usr/lib/cmake/openblas/OpenBLASConfig.cmake +-rw-r--r-- root/root usr/lib/cmake/openblas/OpenBLASConfigVersion.cmake +lrwxrwxrwx root/root usr/lib/libblas.so -> libopenblas.so +lrwxrwxrwx root/root usr/lib/libblas.so.3 -> libopenblas.so +lrwxrwxrwx root/root usr/lib/libblas.so.3.8.0 -> libopenblas.so +lrwxrwxrwx root/root usr/lib/libcblas.so -> libopenblas.so +lrwxrwxrwx root/root usr/lib/libcblas.so.3 -> libopenblas.so +lrwxrwxrwx root/root usr/lib/libcblas.so.3.8.0 -> libopenblas.so +lrwxrwxrwx root/root usr/lib/liblapack.so -> libopenblas.so +lrwxrwxrwx root/root usr/lib/liblapack.so.3 -> libopenblas.so +lrwxrwxrwx root/root usr/lib/liblapack.so.3.8.0 -> libopenblas.so +lrwxrwxrwx root/root usr/lib/liblapacke.so -> libopenblas.so +lrwxrwxrwx root/root usr/lib/liblapacke.so.3 -> libopenblas.so +lrwxrwxrwx root/root usr/lib/liblapacke.so.3.8.0 -> libopenblas.so +lrwxrwxrwx root/root usr/lib/libopenblas.a -> libopenblasp-r0.3.6.a +lrwxrwxrwx root/root usr/lib/libopenblas.so -> libopenblasp-r0.3.6.so +lrwxrwxrwx root/root usr/lib/libopenblas.so.0 -> libopenblasp-r0.3.6.so +-rw-r--r-- root/root usr/lib/libopenblasp-r0.3.6.a +-rwxr-xr-x root/root usr/lib/libopenblasp-r0.3.6.so +drwxr-xr-x root/root usr/lib/pkgconfig/ +-rw-r--r-- root/root usr/lib/pkgconfig/openblas.pc diff --git a/openblas/.signature b/openblas/.signature new file mode 100644 index 000000000..fabad042c --- /dev/null +++ b/openblas/.signature @@ -0,0 +1,5 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF39gtBSgREj2vG7k7rozXWKXnRZfl0Zrhrf20KPql15EukY4yRMgDW2w3aMRkI174XH/SY1jWbPrWd+bcx/k6HAY= +SHA256 (Pkgfile) = 15450eb4316d10538491ad84130ded252e3ff2f4e20b953ced4750c453e6a611 +SHA256 (.footprint) = bcfd7d3b50a2a2ecbb8ea3ae0f253b8c2fbfdf2729983ccc59dd3d6af0af4406 +SHA256 (OpenBLAS-0.3.6.tar.gz) = e64c8fe083832ffbc1459ab6c72f71d53afd3b36e8497c922a15a06b72e9002f diff --git a/openblas/Pkgfile b/openblas/Pkgfile new file mode 100644 index 000000000..dce743a9a --- /dev/null +++ b/openblas/Pkgfile @@ -0,0 +1,46 @@ +# Description: Optimized BLAS library +# URL: http://www.openblas.net/ +# Maintainer: Tim Biermann, tbier at posteo dot de +# Packager: Pedja, predivan at mts dot rs +# Depends on: gcc-fortran + +name=openblas +version=0.3.6 +release=1 +source=(http://github.com/xianyi/OpenBLAS/archive/v$version/OpenBLAS-$version.tar.gz) + +build () { + cd OpenBLAS-$version + make NO_LAPACK=0 NO_STATIC=1 \ + USE_OPENMP=1 DYNAMIC_ARCH=1 DYNAMIC_OLDER=1 NUM_THREADS=64 \ + CFLAGS="$CFLAGS $CPPFLAGS" libs netlib shared + make PREFIX=$PKG/usr install + + # Symlink to provide blas, cblas, lapack and lapacke + cd $PKG/usr/lib/ + local _lapackver='3.8.0' + # BLAS + ln -sf libopenblas.so libblas.so + ln -sf libopenblas.so libblas.so.${_lapackver:0:1} + ln -sf libopenblas.so libblas.so.${_lapackver} + # CBLAS + ln -sf libopenblas.so libcblas.so + ln -sf libopenblas.so libcblas.so.${_lapackver:0:1} + ln -sf libopenblas.so libcblas.so.${_lapackver} + # LAPACK + ln -sf libopenblas.so liblapack.so + ln -sf libopenblas.so liblapack.so.${_lapackver:0:1} + ln -sf libopenblas.so liblapack.so.${_lapackver} + # LAPACKE + ln -sf libopenblas.so liblapacke.so + ln -sf libopenblas.so liblapacke.so.${_lapackver:0:1} + ln -sf libopenblas.so liblapacke.so.${_lapackver} + + # fix paths + sed -i 's|'$PKG'||g' $PKG/usr/lib/cmake/$name/*.cmake + sed -i 's|'$PKG'||g' $PKG/usr/lib/pkgconfig/openblas.pc + + # remove host CPU info if built with DYNAMIC_ARCH=1 + sed -i '/#define OPENBLAS_NEEDBUNDERSCORE/,/#define OPENBLAS_VERSION/{//!d}' \ + $PKG/usr/include/openblas_config.h +} diff --git a/openblas/post-install b/openblas/post-install new file mode 100644 index 000000000..ec897e7db --- /dev/null +++ b/openblas/post-install @@ -0,0 +1,7 @@ +#!/bin/sh + +alias="openblas: lapack" + +if [ -z "$(grep "$alias" /var/lib/pkg/prt-get.aliases)" ]; then + echo "$alias" >> /var/lib/pkg/prt-get.aliases +fi |