liboping: add pkgconfig to dev install target
authorFlorian Eckert <fe@dev.tdt.de>
Thu, 1 Aug 2024 14:27:19 +0000 (16:27 +0200)
committerRosen Penev <rosenp@gmail.com>
Mon, 19 Aug 2024 12:02:05 +0000 (05:02 -0700)
The packages 'liboping' does also provide da 'pkgconfig' file. So that other
programs that link against this library and use pkgconfig can find it more
easily, the provided pkconfig file must also be copied into the staging dir.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
libs/liboping/Makefile

index 2d5ca695d85b83fe79ddf499a30515894bb5abd6..dc5013d8764c7fdfbbe44c3c00b50bab1ad1ee32 100644 (file)
@@ -62,8 +62,12 @@ CONFIGURE_ARGS += \
 define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include
        $(CP) $(PKG_INSTALL_DIR)/usr/include/oping.h $(1)/usr/include/
+
        $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/liboping.{a,so*} $(1)/usr/lib/
+
+       $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/liboping.pc $(1)/usr/lib/pkgconfig/
 endef
 
 define Package/liboping/install