2017-04-19 13:04:04 +00:00
|
|
|
# Template file for 'openblas'
|
|
|
|
pkgname=openblas
|
2017-07-30 15:45:51 +00:00
|
|
|
version=0.2.20
|
2017-04-19 13:04:04 +00:00
|
|
|
revision=1
|
|
|
|
wrksrc="OpenBLAS-${version}"
|
|
|
|
build_style=gnu-makefile
|
2017-07-30 15:45:51 +00:00
|
|
|
make_install_args="PREFIX=/usr"
|
|
|
|
make_build_args=" HOSTCC=gcc USE_OPENMP=1"
|
2017-04-19 13:04:04 +00:00
|
|
|
hostmakedepends="perl gcc-fortran"
|
2017-07-30 15:45:51 +00:00
|
|
|
makedepends="libgomp-devel"
|
2017-04-19 13:04:04 +00:00
|
|
|
short_desc="Basic Linear Algebra Subprograms based on GotoBLAS2"
|
|
|
|
maintainer="Julien Dehos <dehos@lisic.univ-littoral.fr>"
|
|
|
|
homepage="http://www.openblas.net/"
|
|
|
|
license="3-clause-BSD"
|
|
|
|
distfiles="https://github.com/xianyi/${pkgname}/archive/v${version}.tar.gz"
|
2017-07-30 15:45:51 +00:00
|
|
|
checksum="5ef38b15d9c652985774869efd548b8e3e972e1e99475c673b25537ed7bcf394"
|
2017-04-19 13:04:04 +00:00
|
|
|
|
|
|
|
case "${XBPS_TARGET_MACHINE}" in
|
2017-07-30 15:45:51 +00:00
|
|
|
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" ;;
|
2017-04-19 13:04:04 +00:00
|
|
|
esac
|
|
|
|
|
2017-07-30 15:45:51 +00:00
|
|
|
post_extract() {
|
|
|
|
sed -i 's#OPENBLAS_INCLUDE_DIR := .*$#OPENBLAS_INCLUDE_DIR := $(PREFIX)/include/openblas#' Makefile.install
|
|
|
|
}
|
|
|
|
|
2017-04-19 13:04:04 +00:00
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE
|
|
|
|
}
|
|
|
|
|
|
|
|
openblas-devel_package() {
|
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
2017-07-30 15:45:51 +00:00
|
|
|
vmove usr/include/openblas
|
|
|
|
vmove usr/lib/cmake
|
|
|
|
vmove usr/lib/pkgconfig
|
2017-04-19 13:04:04 +00:00
|
|
|
vmove usr/lib/libopenblas*.a*
|
|
|
|
vmove usr/lib/libopenblas.so
|
|
|
|
}
|
|
|
|
}
|