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.

47 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2007-2015 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-1.1
  9. PKG_VERSION:=1.1.7
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=BSD-3-Clause
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_URL:=https://github.com/ellzey/libevhtp.git
  14. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_SOURCE_VERSION:=f70c920d4d8d4146ff662867f47c4b5854045b3c
  16. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/libevhtp-1.1
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=A more flexible replacement for libevent's httpd API - compatibility package
  22. MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
  23. URL:=https://github.com/ellzey/libevhtp
  24. DEPENDS:=+libevent2 +libevent2-pthreads +libpthread
  25. endef
  26. define Package/libevhtp-1.1/description
  27. Libevhtp was created as a replacement API for Libevent's current HTTP API.
  28. NOTE: This is an older version required for compatibility reasons. The latest version has its own package named "libevhtp".
  29. endef
  30. include $(INCLUDE_DIR)/cmake.mk
  31. define Build/InstallDev
  32. $(INSTALL_DIR) $(1)/usr/include/libevhtp-1.1/
  33. $(INSTALL_DIR) $(1)/usr/lib/libevhtp-1.1/
  34. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  35. $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
  36. endef
  37. $(eval $(call BuildPackage,libevhtp-1.1))