1 ################################################################################
5 ################################################################################
8 EIGEN_SITE
= https
://bitbucket.org
/eigen
/eigen
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
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
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
41 $(eval
$(generic-package
))