linux-pam: add optional libselinux and audit dependencies
[buildroot-gz.git] / package / eigen / eigen.mk
blob730bb5ffd2108b594cab8b0ce064d6affc0f7a54
1 ################################################################################
3 # eigen
5 ################################################################################
7 EIGEN_VERSION = 3.2.5
8 EIGEN_SITE = https://bitbucket.org/eigen/eigen
9 EIGEN_SITE_METHOD = hg
10 EIGEN_LICENSE = MPL2, BSD-3c, LGPLv2.1
11 EIGEN_LICENSE_FILES = COPYING.MPL2 COPYING.BSD COPYING.LGPL COPYING.README
12 EIGEN_INSTALL_STAGING = YES
13 EIGEN_INSTALL_TARGET = NO
14 EIGEN_DEST_DIR = $(STAGING_DIR)/usr/include/eigen3
16 ifeq ($(BR2_PACKAGE_EIGEN_UNSUPPORTED_MODULES),y)
17 define EIGEN_INSTALL_UNSUPPORTED_MODULES_CMDS
18 mkdir -p $(EIGEN_DEST_DIR)/unsupported
19 cp -a $(@D)/unsupported/Eigen $(EIGEN_DEST_DIR)/unsupported
20 endef
21 endif
23 # Generate the .pc file at build time
24 define EIGEN_BUILD_CMDS
25 sed -r -e 's,^Version: .*,Version: $(EIGEN_VERSION),' \
26 -e 's,^Cflags: .*,Cflags: -I$(EIGEN_DEST_DIR),' \
27 $(@D)/eigen3.pc.in >$(@D)/eigen3.pc
28 endef
30 # This package only consists of headers that need to be
31 # copied over to the sysroot for compile time use
32 define EIGEN_INSTALL_STAGING_CMDS
33 $(RM) -r $(EIGEN_DEST_DIR)
34 mkdir -p $(EIGEN_DEST_DIR)
35 cp -a $(@D)/Eigen $(EIGEN_DEST_DIR)
36 $(EIGEN_INSTALL_UNSUPPORTED_MODULES_CMDS)
37 $(INSTALL) -D -m 0644 $(@D)/eigen3.pc \
38 $(STAGING_DIR)/usr/lib/pkgconfig/eigen3.pc
39 endef
41 $(eval $(generic-package))