mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 14:01:57 -09:00
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>
This commit is contained in:
committed by
Thomas Petazzoni
parent
a986e09497
commit
ad366b357b
@@ -20,6 +20,13 @@ define EIGEN_INSTALL_UNSUPPORTED_MODULES_CMDS
|
|||||||
endef
|
endef
|
||||||
endif
|
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
|
# This package only consists of headers that need to be
|
||||||
# copied over to the sysroot for compile time use
|
# copied over to the sysroot for compile time use
|
||||||
define EIGEN_INSTALL_STAGING_CMDS
|
define EIGEN_INSTALL_STAGING_CMDS
|
||||||
@@ -27,6 +34,8 @@ define EIGEN_INSTALL_STAGING_CMDS
|
|||||||
mkdir -p $(EIGEN_DEST_DIR)
|
mkdir -p $(EIGEN_DEST_DIR)
|
||||||
cp -a $(@D)/Eigen $(EIGEN_DEST_DIR)
|
cp -a $(@D)/Eigen $(EIGEN_DEST_DIR)
|
||||||
$(EIGEN_INSTALL_UNSUPPORTED_MODULES_CMDS)
|
$(EIGEN_INSTALL_UNSUPPORTED_MODULES_CMDS)
|
||||||
|
$(INSTALL) -D -m 0644 $(@D)/eigen3.pc \
|
||||||
|
$(STAGING_DIR)/usr/lib/pkgconfig/eigen3.pc
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(generic-package))
|
$(eval $(generic-package))
|
||||||
|
|||||||
Reference in New Issue
Block a user