49 lines
1.6 KiB
Bash
49 lines
1.6 KiB
Bash
# Template file for 'openblas'
|
|
pkgname=openblas
|
|
version=0.3.6
|
|
revision=1
|
|
wrksrc="OpenBLAS-${version}"
|
|
build_style=gnu-makefile
|
|
make_build_args=" HOSTCC=gcc USE_OPENMP=1"
|
|
hostmakedepends="perl gcc-fortran"
|
|
makedepends="libgomp-devel"
|
|
short_desc="Basic Linear Algebra Subprograms based on GotoBLAS2"
|
|
maintainer="Julien Dehos <dehos@lisic.univ-littoral.fr>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://www.openblas.net/"
|
|
changelog="https://raw.githubusercontent.com/xianyi/OpenBLAS/v${version}/Changelog.txt"
|
|
distfiles="https://github.com/xianyi/${pkgname}/archive/v${version}.tar.gz"
|
|
checksum=e64c8fe083832ffbc1459ab6c72f71d53afd3b36e8497c922a15a06b72e9002f
|
|
|
|
case "${XBPS_TARGET_MACHINE}" in
|
|
armv5*) make_build_args+=" TARGET=ARMV5" ;;
|
|
armv6*) make_build_args+=" TARGET=ARMV6" ;;
|
|
armv7*) make_build_args+=" TARGET=ARMV7" ;;
|
|
aarch64*) make_build_args+=" TARGET=ARMV8" ;;
|
|
i686*) make_build_args+=" BINARY=32 DYNAMIC_ARCH=1" ;;
|
|
x86_64*) make_build_args+=" BINARY=64 DYNAMIC_ARCH=1" ;;
|
|
ppc64le*) make_build_args+=" TARGET=POWER8" ;;
|
|
ppc64*) make_build_args+=" TARGET=POWER6" ;;
|
|
ppc*) broken="64 bit ppc only" ;;
|
|
mips*) broken="Not supported" ;;
|
|
esac
|
|
|
|
post_extract() {
|
|
sed -i 's#OPENBLAS_INCLUDE_DIR := .*$#OPENBLAS_INCLUDE_DIR := $(PREFIX)/include/openblas#' Makefile.install
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
openblas-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include/openblas
|
|
vmove usr/lib/cmake
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/libopenblas*.a*
|
|
vmove usr/lib/libopenblas.so
|
|
}
|
|
}
|