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.

60 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2007-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:=libevhtp
  9. PKG_VERSION:=1.2.9
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=BSD-3-Clause
  12. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  13. PKG_SOURCE:=$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=https://github.com/ellzey/libevhtp/archive/
  15. PKG_MD5SUM:=428a8d179fcc0cadedd914ed6456e08f
  16. PKG_CAT:=zcat
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/libevhtp
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=A more flexible replacement for libevent's httpd API
  23. MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
  24. URL:=https://github.com/ellzey/libevhtp
  25. DEPENDS:=+libevent2 +libevent2-openssl +libevent2-pthreads +libopenssl +libpthread
  26. endef
  27. define Package/libevhtp/description
  28. Libevhtp was created as a replacement API for Libevent's current HTTP API.
  29. The reality of libevent's http interface is that it was created as a JIT server,
  30. meaning the developer never thought of it being used for creating a full-fledged HTTP service.
  31. endef
  32. include $(INCLUDE_DIR)/cmake.mk
  33. Hooks/Prepare/Post += delete_source_package
  34. define delete_source_package
  35. # deleting source package as its filename is ambiguous
  36. rm -f $(DL_DIR)/$(PKG_SOURCE)
  37. endef
  38. define Build/InstallDev
  39. $(INSTALL_DIR) $(1)/usr/{include,lib}
  40. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevhtp.so* $(1)/usr/lib/
  42. endef
  43. define Package/libevhtp/install
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevhtp.so* $(1)/usr/lib/
  46. endef
  47. $(eval $(call BuildPackage,libevhtp))