From: Rosen Penev Date: Wed, 21 Feb 2024 20:46:46 +0000 (-0800) Subject: nghttp3: fix pkgconfig file X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=fa79aaad5f79447b579b98ea2e418486be71261d;p=openwrt-packages.git nghttp3: fix pkgconfig file CMake build is passing host paths in pkgconfig. Signed-off-by: Rosen Penev --- diff --git a/libs/nghttp3/Makefile b/libs/nghttp3/Makefile index 6573977fb..7ea0c12f7 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