Skip to content

Commit

Permalink
libfmt: Fix pkgconfig paths
Browse files Browse the repository at this point in the history
pkgconfig needs to override these.

Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb committed Sep 16, 2019
1 parent 434debe commit bfcab07
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libs/libfmt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit bfcab07

Please sign in to comment.