From: Michael Heimpold Date: Mon, 3 Sep 2018 14:29:03 +0000 (+0200) Subject: net/mosquitto: install pkg-config files X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=97a0cde430c25fd590e182149b0c9f36f6bd7062;p=openwrt-packages.git 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 --- diff --git a/net/mosquitto/Makefile b/net/mosquitto/Makefile index f0a80461e..f2ed10365 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