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
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))