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.

61 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.42
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@GNU/libmicrohttpd
  13. PKG_MD5SUM:=3b9cf0b67fc8ebc9e69f53c6bc84a88d
  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
  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. CONFIGURE_ARGS += \
  31. --enable-https \
  32. --with-gnutls \
  33. --disable-curl \
  34. --disable-spdy \
  35. --without-openssl
  36. define Build/InstallDev
  37. $(INSTALL_DIR) $(1)/usr/include/
  38. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  39. $(INSTALL_DIR) $(1)/usr/lib/
  40. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} $(1)/usr/lib/
  41. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
  42. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
  43. endef
  44. define Package/libmicrohttpd/install
  45. $(INSTALL_DIR) $(1)/usr/lib/
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  47. endef
  48. $(eval $(call BuildPackage,libmicrohttpd))