2014-04-23 01:15:35 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# armadillo
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-07-18 11:40:37 +02:00
|
|
|
ARMADILLO_VERSION = 9.900.2
|
2017-06-03 19:01:24 +02:00
|
|
|
ARMADILLO_SOURCE = armadillo-$(ARMADILLO_VERSION).tar.xz
|
|
|
|
ARMADILLO_SITE = https://downloads.sourceforge.net/project/arma
|
2014-04-23 01:15:35 +02:00
|
|
|
ARMADILLO_INSTALL_STAGING = YES
|
2020-02-25 23:13:56 +01:00
|
|
|
ARMADILLO_LICENSE = Apache-2.0
|
2014-04-23 01:15:35 +02:00
|
|
|
ARMADILLO_LICENSE_FILES = LICENSE.txt
|
|
|
|
|
2020-04-20 18:07:48 +02:00
|
|
|
ARMADILLO_CONF_OPTS = -DDETECT_HDF5=false
|
|
|
|
|
2021-07-25 13:12:31 +02:00
|
|
|
# blas support may be provided by lapack (libblas.a) or openblas (libopenblas.a)
|
|
|
|
ARMADILLO_CONF_OPTS += -DBLAS_FOUND=ON
|
|
|
|
ifeq ($(BR2_PACKAGE_ARMADILLO_OPENBLAS),y)
|
|
|
|
ARMADILLO_CONF_OPTS += -DBLAS_LIBRARIES=-lopenblas
|
|
|
|
ARMADILLO_DEPENDENCIES = openblas
|
|
|
|
else
|
|
|
|
# Since BR2_PACKAGE_LAPACK is selected in this case, the dependency on it is
|
|
|
|
# added below.
|
|
|
|
ARMADILLO_CONF_OPTS += -DBLAS_LIBRARIES=-lblas
|
|
|
|
endif
|
|
|
|
|
|
|
|
# lapack support is optional and can only be provided by lapack, not openblas
|
|
|
|
ifeq ($(BR2_PACKAGE_LAPACK),y)
|
|
|
|
ARMADILLO_CONF_OPTS += -DLAPACK_FOUND=ON
|
|
|
|
ARMADILLO_DEPENDENCIES += lapack
|
|
|
|
endif
|
|
|
|
|
2014-04-23 01:15:35 +02:00
|
|
|
$(eval $(cmake-package))
|