2014-12-14 23:48:10 +01:00
|
|
|
#
|
2016-04-28 09:58:06 +02:00
|
|
|
# Copyright (C) 2007-2016 OpenWrt.org
|
2014-12-14 23:48:10 +01:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
2016-05-16 00:03:33 +02:00
|
|
|
# NOTE: please DO NOT update this package without the maintainer's consent.
|
|
|
|
# See https://github.com/haiwen/seafile/issues/1119
|
|
|
|
|
2014-12-14 23:48:10 +01:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libevhtp
|
2019-05-09 20:21:04 +02:00
|
|
|
PKG_VERSION:=1.2.18
|
2020-04-29 18:27:30 +02:00
|
|
|
PKG_RELEASE:=3
|
2019-05-22 14:10:25 +02:00
|
|
|
# This package is building a static library, used by seafile-server
|
|
|
|
# Every time the built library changes (metadata changes are exempt),
|
|
|
|
# seafile-server needs a release bump to ensure the update is used.
|
2014-12-14 23:48:10 +01:00
|
|
|
|
2018-11-06 20:35:21 +01:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/criticalstack/libevhtp/tar.gz/$(PKG_VERSION)?
|
2019-05-09 20:21:04 +02:00
|
|
|
PKG_HASH:=316ede0d672be3ae6fe489d4ac1c8c53a1db7d4fe05edaff3c7c853933e02795
|
2019-05-07 23:17:27 +02:00
|
|
|
|
2020-04-29 18:27:30 +02:00
|
|
|
PKG_MAINTAINER:=Eneas U de Queiroz <cotequeiroz@gmail.com>, Jeffery To <jeffery.to@gmail.com>
|
2019-05-07 23:17:27 +02:00
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
2015-02-22 02:37:56 +01:00
|
|
|
|
2020-04-29 18:27:30 +02:00
|
|
|
PKG_BUILD_DEPENDS:=libevent2 oniguruma
|
2019-05-07 23:17:27 +02:00
|
|
|
CMAKE_INSTALL:=1
|
2014-12-14 23:48:10 +01:00
|
|
|
|
2020-04-29 18:27:30 +02:00
|
|
|
PKG_CONFIG_DEPENDS:=LIBEVHTP_BUILD_DEPENDS
|
|
|
|
|
2014-12-14 23:48:10 +01:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-06-11 01:27:06 +02:00
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
2014-12-14 23:48:10 +01:00
|
|
|
|
|
|
|
define Package/libevhtp
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=A more flexible replacement for libevent's httpd API
|
2019-05-07 23:17:27 +02:00
|
|
|
URL:=https://github.com/criticalstack/libevhtp
|
2020-10-13 02:40:44 +02:00
|
|
|
BUILDONLY:=1
|
2014-12-14 23:48:10 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libevhtp/description
|
|
|
|
Libevhtp was created as a replacement API for Libevent's current HTTP API.
|
|
|
|
The reality of libevent's http interface is that it was created as a JIT server,
|
|
|
|
meaning the developer never thought of it being used for creating a full-fledged HTTP service.
|
|
|
|
endef
|
|
|
|
|
2020-04-29 18:27:30 +02:00
|
|
|
define Package/libevhtp/config
|
|
|
|
config LIBEVHTP_BUILD_DEPENDS
|
|
|
|
bool
|
|
|
|
default PACKAGE_libevhtp
|
|
|
|
|
|
|
|
config LIBEVHTP_BUILD_SELECT
|
|
|
|
tristate
|
|
|
|
default m if LIBEVHTP_BUILD_DEPENDS
|
|
|
|
select PACKAGE_libevent2-openssl
|
|
|
|
select PACKAGE_libevent2-pthreads
|
|
|
|
endef
|
|
|
|
|
2019-06-01 02:25:54 +02:00
|
|
|
define Build/InstallDev
|
|
|
|
$(call Build/InstallDev/cmake,$(1))
|
|
|
|
$(SED) 's,^\(include\|lib\)dir=,\0$(STAGING_DIR)/usr/\1,' "$(1)/usr/lib/pkgconfig/evhtp.pc"
|
2019-05-09 20:21:04 +02:00
|
|
|
endef
|
|
|
|
|
2014-12-14 23:48:10 +01:00
|
|
|
$(eval $(call BuildPackage,libevhtp))
|