Keine Beschreibung

Makefile 1.6KB

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