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.

57 lines
1.9 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:=1
  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 <cote2004-github@yahoo.com>
  20. PKG_LICENSE:=BSD-3-Clause
  21. PKG_LICENSE_FILES:=LICENSE
  22. TARGET_CFLAGS += $(TARGET_CPPFLAGS)
  23. CMAKE_INSTALL:=1
  24. CMAKE_OPTIONS += \
  25. -DLIB_INSTALL_DIR="$(STAGING_DIR)/usr/lib" \
  26. -DINCLUDE_INSTALL_DIR="$(STAGING_DIR)/usr/include"
  27. include $(INCLUDE_DIR)/package.mk
  28. include $(INCLUDE_DIR)/cmake.mk
  29. define Package/libevhtp
  30. SECTION:=libs
  31. CATEGORY:=Libraries
  32. TITLE:=A more flexible replacement for libevent's httpd API
  33. URL:=https://github.com/criticalstack/libevhtp
  34. DEPENDS:=+libevent2 +libevent2-openssl +libevent2-pthreads +oniguruma
  35. endef
  36. define Package/libevhtp/description
  37. Libevhtp was created as a replacement API for Libevent's current HTTP API.
  38. The reality of libevent's http interface is that it was created as a JIT server,
  39. meaning the developer never thought of it being used for creating a full-fledged HTTP service.
  40. endef
  41. define Package/InstallDev
  42. $(INSTALL_DIR) $(1)/usr/{lib,include}
  43. $(CP) $(PKG_INSTALL_DIR)/usr/include/. $(1)/usr/include/
  44. $(CP) $(PKG_INSTALL_DIR)/usr/lib/. $(1)/usr/lib/
  45. endef
  46. $(eval $(call BuildPackage,libevhtp))