diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2015-12-28 20:08:54 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-12-28 21:58:14 +0100 |
commit | ad366b357bc224e82a04c0b0ded6289c4d938969 (patch) | |
tree | 4a75d80fa261be54c8173aee21c7f450e3253781 | |
parent | a986e09497d1ddc3c8fecdf8feabc516fd345cfc (diff) | |
download | buildroot-ad366b357bc224e82a04c0b0ded6289c4d938969.tar.gz buildroot-ad366b357bc224e82a04c0b0ded6289c4d938969.zip |
package/eigen: install .pc file
Other packages will look for eigen3.pc to detect the presence of eigen3.
eigen3.pc is usually installed by eigen's cmake buildsystem, but we do a
manual install to not depend on host-cmake just to install header files.
But in doing so, we forgot to install the .pc file.
Manually sed the source .pc.in to generate the final .pc file.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r-- | package/eigen/eigen.mk | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/package/eigen/eigen.mk b/package/eigen/eigen.mk index dd88fde45f..3eb858ad8d 100644 --- a/package/eigen/eigen.mk +++ b/package/eigen/eigen.mk @@ -20,6 +20,13 @@ define EIGEN_INSTALL_UNSUPPORTED_MODULES_CMDS 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 @@ -27,6 +34,8 @@ define EIGEN_INSTALL_STAGING_CMDS 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)) |