You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2010-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libmicrohttpd
  9. PKG_VERSION:=0.9.38
  10. PKG_RELEASE:=1.2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@GNU/libmicrohttpd
  13. PKG_MD5SUM:=b72efbfe7f290846015d460aea7091fe
  14. PKG_MAINTAINER:=Martijn Zilverschoon <martijn@friedzombie.com>
  15. PKG_LICENSE:=LGPL-2.1
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/libmicrohttpd
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=GNU libmicrohttpd is a library that runs an HTTP server.
  23. URL:=http://www.gnu.org/software/libmicrohttpd/
  24. DEPENDS:=+libpthread +libgcrypt +libgnutls +libgpg-error +libopenssl
  25. endef
  26. define Package/libmicrohttpd/description
  27. GNU libmicrohttpd is a small C library that is supposed to make it easy
  28. to run an HTTP server as part of another application.
  29. endef
  30. define Build/InstallDev
  31. $(INSTALL_DIR) $(1)/usr/include/
  32. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  33. $(INSTALL_DIR) $(1)/usr/lib/
  34. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} $(1)/usr/lib/
  35. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
  36. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
  37. endef
  38. define Package/libmicrohttpd/install
  39. $(INSTALL_DIR) $(1)/usr/lib/
  40. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  41. endef
  42. $(eval $(call BuildPackage,libmicrohttpd))