Move all to deprecated folder.
This commit is contained in:
25
deprecated/firmware/buildroot/package/eigen/Config.in
Normal file
25
deprecated/firmware/buildroot/package/eigen/Config.in
Normal file
@@ -0,0 +1,25 @@
|
||||
config BR2_PACKAGE_EIGEN
|
||||
bool "eigen"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
help
|
||||
Eigen is a C++ template library for linear algebra: vectors,
|
||||
matrices, and related algorithms. It is versatile, fast, elegant
|
||||
and works on many platforms (OS/Compilers).
|
||||
|
||||
This package only installs header files to the include path.
|
||||
If you just want to use Eigen, you can use the header files
|
||||
right away. There is no binary to link to. Eigen is a pure
|
||||
template library defined in the headers.
|
||||
|
||||
http://eigen.tuxfamily.org/
|
||||
|
||||
if BR2_PACKAGE_EIGEN
|
||||
|
||||
config BR2_PACKAGE_EIGEN_UNSUPPORTED_MODULES
|
||||
bool "unsupported modules"
|
||||
help
|
||||
Install eigen unsupported modules
|
||||
endif
|
||||
|
||||
comment "eigen needs a toolchain w/ C++"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP
|
||||
41
deprecated/firmware/buildroot/package/eigen/eigen.mk
Normal file
41
deprecated/firmware/buildroot/package/eigen/eigen.mk
Normal file
@@ -0,0 +1,41 @@
|
||||
################################################################################
|
||||
#
|
||||
# eigen
|
||||
#
|
||||
################################################################################
|
||||
|
||||
EIGEN_VERSION = 3.2.5
|
||||
EIGEN_SITE = https://bitbucket.org/eigen/eigen
|
||||
EIGEN_SITE_METHOD = hg
|
||||
EIGEN_LICENSE = MPL2, BSD-3c, LGPLv2.1
|
||||
EIGEN_LICENSE_FILES = COPYING.MPL2 COPYING.BSD COPYING.LGPL COPYING.README
|
||||
EIGEN_INSTALL_STAGING = YES
|
||||
EIGEN_INSTALL_TARGET = NO
|
||||
EIGEN_DEST_DIR = $(STAGING_DIR)/usr/include/eigen3
|
||||
|
||||
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
|
||||
|
||||
# Generate the .pc file at build time
|
||||
define EIGEN_BUILD_CMDS
|
||||
sed -r -e 's,^Version: .*,Version: $(EIGEN_VERSION),' \
|
||||
-e 's,^Cflags: .*,Cflags: -I$(EIGEN_DEST_DIR),' \
|
||||
$(@D)/eigen3.pc.in >$(@D)/eigen3.pc
|
||||
endef
|
||||
|
||||
# This package only consists of headers that need to be
|
||||
# copied over to the sysroot for compile time use
|
||||
define EIGEN_INSTALL_STAGING_CMDS
|
||||
$(RM) -r $(EIGEN_DEST_DIR)
|
||||
mkdir -p $(EIGEN_DEST_DIR)
|
||||
cp -a $(@D)/Eigen $(EIGEN_DEST_DIR)
|
||||
$(EIGEN_INSTALL_UNSUPPORTED_MODULES_CMDS)
|
||||
$(INSTALL) -D -m 0644 $(@D)/eigen3.pc \
|
||||
$(STAGING_DIR)/usr/lib/pkgconfig/eigen3.pc
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user