# Template file for 'openblas' pkgname=openblas version=0.3.17 revision=1 wrksrc="OpenBLAS-${version}" build_style=gnu-makefile make_build_args="HOSTCC=gcc USE_OPENMP=1" make_install_args="OPENBLAS_INCLUDE_DIR=\$(PREFIX)/include/openblas" hostmakedepends="perl gcc-fortran" makedepends="libgomp-devel" short_desc="Optimized BLAS (Basic Linear Algebra Subprograms) based on GotoBLAS2" maintainer="Andrew J. Hesford " 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/OpenBLAS/archive/v${version}.tar.gz" checksum=df2934fa33d04fd84d839ca698280df55c690c86a5a1133b3f7266fce1de279f case "$XBPS_TARGET_MACHINE" in ppc64*) ;; ppc*) broken="crashes during build";; esac 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 DYNAMIC_ARCH=1" ;; i686*) make_build_args+=" BINARY=32 TARGET=GENERIC DYNAMIC_ARCH=1" ;; x86_64*) make_build_args+=" BINARY=64 TARGET=GENERIC DYNAMIC_ARCH=1" ;; ppc64le*) make_build_args+=" TARGET=POWER8 DYNAMIC_ARCH=1" ;; ppc64*) make_build_args+=" TARGET=PPC970MP" ;; # dynamic arch broken for