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.

51 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2007-2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. # NOTE: please DO NOT update this package without the maintainer's consent.
  8. # See https://github.com/haiwen/seafile/issues/1119
  9. include $(TOPDIR)/rules.mk
  10. PKG_NAME:=libevhtp
  11. PKG_VERSION:=1.1.6
  12. PKG_RELEASE:=1
  13. PKG_LICENSE:=BSD-3-Clause
  14. PKG_SOURCE_PROTO:=git
  15. PKG_SOURCE_URL:=https://github.com/ellzey/libevhtp.git
  16. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  17. PKG_SOURCE_VERSION:=91071e2f20749cd469b87ac2ef1c158dc2a6806f
  18. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/libevhtp
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=A more flexible replacement for libevent's httpd API
  25. MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
  26. URL:=https://github.com/ellzey/libevhtp
  27. DEPENDS:=+libevent2 +libevent2-openssl +libevent2-pthreads +libopenssl +libpthread
  28. endef
  29. define Package/libevhtp/description
  30. Libevhtp was created as a replacement API for Libevent's current HTTP API.
  31. The reality of libevent's http interface is that it was created as a JIT server,
  32. meaning the developer never thought of it being used for creating a full-fledged HTTP service.
  33. endef
  34. include $(INCLUDE_DIR)/cmake.mk
  35. define Build/InstallDev
  36. $(INSTALL_DIR) $(1)/usr/{include,lib}
  37. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  38. $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
  39. endef
  40. $(eval $(call BuildPackage,libevhtp))