libfmt: Fix pkgconfig paths

pkgconfig needs to override these.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2019-09-16 11:51:32 -07:00
parent 434debefff
commit bfcab07d87
No known key found for this signature in database
GPG Key ID: 36D31CFA845F0E3B
1 changed files with 6 additions and 0 deletions

View File

@ -43,6 +43,12 @@ define Package/libfmt/description
It can be used as a safe alternative to printf or as a fast alternative to IOStreams.
endef
define Build/InstallDev
$(call Build/InstallDev/cmake,$(1))
$(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/fmt.pc
$(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/fmt.pc
endef
define Package/libfmt/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libfmt.so* $(1)/usr/lib/