aboutsummaryrefslogtreecommitdiff
path: root/libs/libfmt
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2019-09-16 11:51:32 -0700
committerRosen Penev <rosenp@gmail.com>2019-09-16 11:51:32 -0700
commitbfcab07d87bda7d5746c5ef85035fc47af14b09b (patch)
treecc0c1d8fec8337628e4a8b6d4a90b5233eff9ae7 /libs/libfmt
parent434debefffa7d1f988b1981e33c9af86f1567f50 (diff)
libfmt: Fix pkgconfig paths
pkgconfig needs to override these. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'libs/libfmt')
-rw-r--r--libs/libfmt/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/libfmt/Makefile b/libs/libfmt/Makefile
index 376e8a26e..632dd8671 100644
--- a/libs/libfmt/Makefile
+++ b/libs/libfmt/Makefile
@@ -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/