2013-09-05 15:53:27 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# eigen
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-05-28 13:01:20 +02:00
|
|
|
EIGEN_VERSION = 3.3.3
|
|
|
|
EIGEN_SOURCE = $(EIGEN_VERSION).tar.bz2
|
|
|
|
EIGEN_SITE = https://bitbucket.org/eigen/eigen/get
|
2017-03-30 15:43:38 +02:00
|
|
|
EIGEN_LICENSE = MPL2, BSD-3-Clause, LGPL-2.1
|
2013-09-05 15:53:27 +02:00
|
|
|
EIGEN_LICENSE_FILES = COPYING.MPL2 COPYING.BSD COPYING.LGPL COPYING.README
|
|
|
|
EIGEN_INSTALL_STAGING = YES
|
|
|
|
EIGEN_INSTALL_TARGET = NO
|
2014-03-20 11:45:47 +01:00
|
|
|
EIGEN_DEST_DIR = $(STAGING_DIR)/usr/include/eigen3
|
2013-09-05 15:53:27 +02:00
|
|
|
|
2014-03-31 00:30:30 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_EIGEN_UNSUPPORTED_MODULES),y)
|
|
|
|
define EIGEN_INSTALL_UNSUPPORTED_MODULES_CMDS
|
|
|
|
mkdir -p $(EIGEN_DEST_DIR)/unsupported
|
|
|
|
cp -a $(@D)/unsupported/Eigen $(EIGEN_DEST_DIR)/unsupported
|
|
|
|
endef
|
|
|
|
endif
|
|
|
|
|
2015-12-28 20:08:54 +01:00
|
|
|
# Generate the .pc file at build time
|
|
|
|
define EIGEN_BUILD_CMDS
|
|
|
|
sed -r -e 's,^Version: .*,Version: $(EIGEN_VERSION),' \
|
2015-12-28 21:59:09 +01:00
|
|
|
-e 's,^Cflags: .*,Cflags: -I$(EIGEN_DEST_DIR),' \
|
|
|
|
$(@D)/eigen3.pc.in >$(@D)/eigen3.pc
|
2015-12-28 20:08:54 +01:00
|
|
|
endef
|
|
|
|
|
2013-09-05 15:53:27 +02:00
|
|
|
# This package only consists of headers that need to be
|
|
|
|
# copied over to the sysroot for compile time use
|
|
|
|
define EIGEN_INSTALL_STAGING_CMDS
|
2014-03-20 11:45:47 +01:00
|
|
|
$(RM) -r $(EIGEN_DEST_DIR)
|
|
|
|
mkdir -p $(EIGEN_DEST_DIR)
|
|
|
|
cp -a $(@D)/Eigen $(EIGEN_DEST_DIR)
|
2014-03-31 00:30:30 +02:00
|
|
|
$(EIGEN_INSTALL_UNSUPPORTED_MODULES_CMDS)
|
2015-12-28 20:08:54 +01:00
|
|
|
$(INSTALL) -D -m 0644 $(@D)/eigen3.pc \
|
2015-12-28 21:59:09 +01:00
|
|
|
$(STAGING_DIR)/usr/lib/pkgconfig/eigen3.pc
|
2013-09-05 15:53:27 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|