Makefile (1569B)
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 8 # NOTE: please DO NOT update this package without the maintainer's consent. 9 # See https://github.com/haiwen/seafile/issues/1119 10 11 include $(TOPDIR)/rules.mk 12 13 PKG_NAME:=libevhtp 14 PKG_VERSION:=1.1.6 15 PKG_RELEASE:=1 16 PKG_LICENSE:=BSD-3-Clause 17 18 PKG_SOURCE_PROTO:=git 19 PKG_SOURCE_URL:=https://github.com/ellzey/libevhtp.git 20 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) 21 PKG_SOURCE_VERSION:=91071e2f20749cd469b87ac2ef1c158dc2a6806f 22 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz 23 24 PKG_INSTALL:=1 25 26 include $(INCLUDE_DIR)/package.mk 27 28 define Package/libevhtp 29 SECTION:=libs 30 CATEGORY:=Libraries 31 TITLE:=A more flexible replacement for libevent's httpd API 32 MAINTAINER:=Gergely Kiss <mail.gery@gmail.com> 33 URL:=https://github.com/ellzey/libevhtp 34 DEPENDS:=+libevent2 +libevent2-openssl +libevent2-pthreads +libopenssl +libpthread 35 endef 36 37 define Package/libevhtp/description 38 Libevhtp was created as a replacement API for Libevent's current HTTP API. 39 The reality of libevent's http interface is that it was created as a JIT server, 40 meaning the developer never thought of it being used for creating a full-fledged HTTP service. 41 endef 42 43 include $(INCLUDE_DIR)/cmake.mk 44 45 define Build/InstallDev 46 $(INSTALL_DIR) $(1)/usr/{include,lib} 47 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/ 48 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/ 49 endef 50 51 $(eval $(call BuildPackage,libevhtp))