From 1504a153b0d730b206440d20359579c8212a250c Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 21 Feb 2024 12:46:46 -0800 Subject: [PATCH] nghttp3: fix pkgconfig file CMake build is passing host paths in pkgconfig. Signed-off-by: Rosen Penev (cherry picked from commit fa79aaad5f79447b579b98ea2e418486be71261d) --- libs/nghttp3/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/nghttp3/Makefile b/libs/nghttp3/Makefile index 6573977fbd..7ea0c12f76 100644 --- a/libs/nghttp3/Makefile +++ b/libs/nghttp3/Makefile @@ -30,6 +30,12 @@ endef CMAKE_OPTIONS += -DENABLE_LIB_ONLY=ON +define Build/InstallDev + $(call Build/InstallDev/cmake,$(1)) + $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libnghttp3.pc + $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/libnghttp3.pc +endef + define Package/libnghttp3/install $(INSTALL_DIR) $(1)/usr/lib $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libnghttp3.so* $(1)/usr/lib -- 2.30.2