miniupnpc: add InstallDev 14254/head
authorDaniel Bermond <danielbermond@gmail.com>
Sat, 12 Dec 2020 22:23:38 +0000 (22:23 +0000)
committerDaniel Bermond <danielbermond@gmail.com>
Sat, 12 Dec 2020 22:23:38 +0000 (22:23 +0000)
Commit ef388ff1f3f2 removed 'CMAKE_INSTALL:=1', and this makes the
development files to be not installed anymore on 'staging_dir'.
Being such, packages that needs to link against libminiupnpc fails
to build, because it cannot find the headers and the library.

Adding an InstallDev fixes this.

Build-tested on: ipq806x (R7800)
Run-tested on: ipq806x (R7800)

Signed-off-by: Daniel Bermond <danielbermond@gmail.com>
net/miniupnpc/Makefile

index c04b50898d52f3cf71c8e5fffa3201a3a41c91ac..7a8a572456bb7d32094fe9845f6f4d1c71ca8b1a 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=miniupnpc
 PKG_VERSION:=2.2.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://miniupnp.tuxfamily.org/files
@@ -51,6 +51,13 @@ CMAKE_OPTIONS += -DUPNPC_BUILD_TESTS=OFF
 TARGET_CFLAGS += $(FPIC)
 TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
 
+define Build/InstallDev
+       $(INSTALL_DIR) $(1)/usr/include
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/include/miniupnpc/ $(1)/usr/include/
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.{a,so*} $(1)/usr/lib/
+endef
+
 define Package/miniupnpc/install
        $(INSTALL_DIR) $(1)/usr/bin
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/upnpc-shared $(1)/usr/bin/upnpc