From 97a0cde430c25fd590e182149b0c9f36f6bd7062 Mon Sep 17 00:00:00 2001 From: Michael Heimpold Date: Mon, 3 Sep 2018 16:29:03 +0200 Subject: [PATCH] net/mosquitto: install pkg-config files Install the .pc files to staging directory to help other packages to find the libraries. Since the build does not use CMake, we need to manually install the files and replace two variables using sed. Filed upstream as https://github.com/eclipse/mosquitto/pull/950 Signed-off-by: Michael Heimpold Tested-by: Karl Palsson --- net/mosquitto/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/net/mosquitto/Makefile b/net/mosquitto/Makefile index f0a80461ee..f2ed103656 100644 --- a/net/mosquitto/Makefile +++ b/net/mosquitto/Makefile @@ -197,6 +197,15 @@ define Build/InstallDev $(CP) $(PKG_BUILD_DIR)/lib/cpp/libmosquittopp.so.1 $(1)/usr/lib/ $(LN) libmosquitto.so.1 $(1)/usr/lib/libmosquitto.so $(LN) libmosquittopp.so.1 $(1)/usr/lib/libmosquittopp.so + $(INSTALL_DIR) $(1)/usr/lib/pkgconfig + $(CP) $(PKG_BUILD_DIR)/libmosquitto.pc.in $(1)/usr/lib/pkgconfig/libmosquitto.pc + sed -i -e "s#@CMAKE_INSTALL_PREFIX@#/usr#" \ + -e "s#@VERSION@#$(PKG_VERSION)#" \ + $(1)/usr/lib/pkgconfig/libmosquitto.pc + $(CP) $(PKG_BUILD_DIR)/libmosquittopp.pc.in $(1)/usr/lib/pkgconfig/libmosquittopp.pc + sed -i -e "s#@CMAKE_INSTALL_PREFIX@#/usr#" \ + -e "s#@VERSION@#$(PKG_VERSION)#" \ + $(1)/usr/lib/pkgconfig/libmosquittopp.pc endef # This installs files on the target. Compare with Build/InstallDev -- 2.30.2