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.

66 lines
2.0 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.2.18
  12. PKG_RELEASE:=3
  13. # This package is building a static library, used by seafile-server
  14. # Every time the built library changes (metadata changes are exempt),
  15. # seafile-server needs a release bump to ensure the update is used.
  16. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  17. PKG_SOURCE_URL:=https://codeload.github.com/criticalstack/libevhtp/tar.gz/$(PKG_VERSION)?
  18. PKG_HASH:=316ede0d672be3ae6fe489d4ac1c8c53a1db7d4fe05edaff3c7c853933e02795
  19. PKG_MAINTAINER:=Eneas U de Queiroz <cotequeiroz@gmail.com>, Jeffery To <jeffery.to@gmail.com>
  20. PKG_LICENSE:=BSD-3-Clause
  21. PKG_LICENSE_FILES:=LICENSE
  22. PKG_BUILD_DEPENDS:=libevent2 oniguruma
  23. CMAKE_INSTALL:=1
  24. PKG_CONFIG_DEPENDS:=LIBEVHTP_BUILD_DEPENDS
  25. include $(INCLUDE_DIR)/package.mk
  26. include $(INCLUDE_DIR)/cmake.mk
  27. define Package/libevhtp
  28. SECTION:=libs
  29. CATEGORY:=Libraries
  30. TITLE:=A more flexible replacement for libevent's httpd API
  31. URL:=https://github.com/criticalstack/libevhtp
  32. endef
  33. define Package/libevhtp/description
  34. Libevhtp was created as a replacement API for Libevent's current HTTP API.
  35. The reality of libevent's http interface is that it was created as a JIT server,
  36. meaning the developer never thought of it being used for creating a full-fledged HTTP service.
  37. endef
  38. define Package/libevhtp/config
  39. config LIBEVHTP_BUILD_DEPENDS
  40. bool
  41. default PACKAGE_libevhtp
  42. config LIBEVHTP_BUILD_SELECT
  43. tristate
  44. default m if LIBEVHTP_BUILD_DEPENDS
  45. select PACKAGE_libevent2-openssl
  46. select PACKAGE_libevent2-pthreads
  47. endef
  48. define Build/InstallDev
  49. $(call Build/InstallDev/cmake,$(1))
  50. $(SED) 's,^\(include\|lib\)dir=,\0$(STAGING_DIR)/usr/\1,' "$(1)/usr/lib/pkgconfig/evhtp.pc"
  51. endef
  52. $(eval $(call BuildPackage,libevhtp))