2013-09-05 21:53:27 +08:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# eigen
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2022-05-04 02:59:58 +08:00
|
|
|
EIGEN_VERSION = 3.4.0
|
2020-06-16 02:49:11 +08:00
|
|
|
EIGEN_SOURCE = eigen-$(EIGEN_VERSION).tar.bz2
|
2021-03-29 03:13:51 +08:00
|
|
|
EIGEN_SITE = $(call gitlab,libeigen,eigen,$(EIGEN_VERSION))
|
2017-03-30 21:43:38 +08:00
|
|
|
EIGEN_LICENSE = MPL2, BSD-3-Clause, LGPL-2.1
|
2013-09-05 21:53:27 +08:00
|
|
|
EIGEN_LICENSE_FILES = COPYING.MPL2 COPYING.BSD COPYING.LGPL COPYING.README
|
|
|
|
EIGEN_INSTALL_STAGING = YES
|
|
|
|
EIGEN_INSTALL_TARGET = NO
|
2020-06-16 02:49:11 +08:00
|
|
|
EIGEN_SUPPORTS_IN_SOURCE_BUILD = NO
|
2013-09-05 21:53:27 +08:00
|
|
|
|
2020-06-16 02:49:11 +08:00
|
|
|
# Default Eigen CMake installs .pc file in /usr/share/pkgconfig
|
|
|
|
# change it to /usr/lib/pkgconfig, to be consistent with other packages.
|
2022-05-04 02:59:58 +08:00
|
|
|
EIGEN_CONF_OPTS = -DPKGCONFIG_INSTALL_DIR=/usr/lib/pkgconfig
|
|
|
|
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_FORTRAN),y)
|
2022-06-06 18:00:23 +08:00
|
|
|
EIGEN_CONF_OPTS += \
|
|
|
|
-DCMAKE_Fortran_COMPILER=$(TARGET_FC) \
|
|
|
|
-DEIGEN_BUILD_BLAS=ON \
|
|
|
|
-DEIGEN_BUILD_LAPACK=ON
|
|
|
|
else
|
|
|
|
EIGEN_CONF_OPTS += \
|
|
|
|
-DEIGEN_BUILD_BLAS=OFF \
|
|
|
|
-DEIGEN_BUILD_LAPACK=OFF
|
2022-05-04 02:59:58 +08:00
|
|
|
endif
|
2014-03-31 06:30:30 +08:00
|
|
|
|
2020-06-16 02:49:11 +08:00
|
|
|
$(eval $(cmake-package))
|