libs/libmicrohttpd: Fix for install sections 8075/head
authorDaniel Engberg <daniel.engberg.lists@pyret.net>
Wed, 30 Jan 2019 09:13:34 +0000 (10:13 +0100)
committerGitHub <noreply@github.com>
Wed, 30 Jan 2019 09:13:34 +0000 (10:13 +0100)
Install libs for -ssl variant
Be a bit more specific about what we're installing...

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
libs/libmicrohttpd/Makefile

index 5859e309e60f483158b7eb2f5394e7aa2c589b62..23aa0a96f4c276b852a8b62e4c12b606317a8aed 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libmicrohttpd
 PKG_VERSION:=0.9.62
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 PKG_MAINTAINER:=Alexander Couzens <lynxis@fe80.eu>
 PKG_LICENSE:=LGPL-2.1
 PKG_LICENSE_FILES:=COPYING
@@ -69,16 +69,21 @@ endef
 
 define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include/
-       $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
+       $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/microhttpd.h $(1)/usr/include/
        $(INSTALL_DIR) $(1)/usr/lib/
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} $(1)/usr/lib/
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmicrohttpd.{so*,a,la} $(1)/usr/lib/
        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
-       $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
+       $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libmicrohttpd.pc $(1)/usr/lib/pkgconfig/
 endef
 
 define Package/libmicrohttpd/install
        $(INSTALL_DIR) $(1)/usr/lib/
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmicrohttpd.so* $(1)/usr/lib/
+endef
+
+define Package/libmicrohttpd-ssl/install
+       $(INSTALL_DIR) $(1)/usr/lib/
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmicrohttpd.so* $(1)/usr/lib/
 endef
 
 $(eval $(call BuildPackage,libmicrohttpd))