thunderbird: update to 128.2.0
[oi-userland.git] / components / scientific / openblas / Makefile
blob65bbd47cf05d71d04c65a3eb0c740337fbdafcf9
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.illumos.org/license/CDDL.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
21 # Copyright (c) 2014-2017, Aurelien Larcher. All rights reserved.
22 # Copyright (c) 2022 Niklas Poslovski
25 BUILD_STYLE= justmake
26 USE_PARALLEL_BUILD= yes
27 include ../../../make-rules/shared-macros.mk
29 COMPONENT_NAME= openblas
30 COMPONENT_VERSION= 0.3.28
31 COMPONENT_SUMMARY= Optimized BLAS library based on GotoBLAS2
32 COMPONENT_SRC= OpenBLAS-$(COMPONENT_VERSION)
33 COMPONENT_PROJECT_URL= https://www.openblas.net
34 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
35 COMPONENT_ARCHIVE_HASH= sha256:f1003466ad074e9b0c8d421a204121100b0751c96fc6fcf3d1456bd12f8a00a1
36 COMPONENT_ARCHIVE_URL= https://github.com/xianyi/OpenBLAS/archive/refs/tags/v$(COMPONENT_VERSION).tar.gz
37 COMPONENT_FMRI= library/math/openblas
38 COMPONENT_CLASSIFICATION= Development/High Performance Computing
39 COMPONENT_LICENSE= BSD 3-Clause
40 COMPONENT_LICENSE_FILE= LICENSE
42 # Numerical libraries should be shipped as static libs as it is still common in scientific computing projects
43 # See discussion here: https://github.com/OpenIndiana/oi-userland/pull/9459
44 DROP_STATIC_LIBRARIES= no
46 TEST_TARGET= $(NO_TESTS)
47 include $(WS_MAKE_RULES)/common.mk
49 PATH= $(PATH.gnu)
51 # In a virtualized environment getarch cannot detect the architecture.
52 # It falls back to INTEL_UKNOWN which causes failure of the build.
53 # The option TARGET=GENERIC has to be passed to force detection.
54 COMPONENT_BUILD_GMAKE_ARGS= PREFIX=$(USRDIR) \
55 DYNAMIC_ARCH=1 \
56 TARGET=PRESCOTT \
57 BINARY=$(BITS) \
58 CROSS_SUFFIX="" \
59 FC=$(FC) CC=$(CC) \
60 COMMON_OPT="$(CFLAGS) -Wa,--divide" \
61 NO_LAPACKE=1 \
62 USE_OPENMP=0 \
63 USE_THREAD=1 \
64 NUM_THREADS=64 \
65 EXTRALIB=-lm
67 COMPONENT_INSTALL_ARGS= PREFIX=$(PROTOUSRDIR) MACHDIR=$(MACH64)
69 # Auto-generated dependencies
70 REQUIRED_PACKAGES += system/library
71 REQUIRED_PACKAGES += system/library/math