libfmt: Fix pkgconfig paths
authorRosen Penev <rosenp@gmail.com>
Mon, 16 Sep 2019 18:51:32 +0000 (11:51 -0700)
committerRosen Penev <rosenp@gmail.com>
Mon, 16 Sep 2019 18:51:32 +0000 (11:51 -0700)
pkgconfig needs to override these.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
libs/libfmt/Makefile

index 376e8a26e7ab99d069eac04ab48e70872ca212da..632dd86718ac61476b314501bd51e26b927c8438 100644 (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/