bluez-tools: Add package bluezetools
[feed/packages.git] / libs / libevhtp / Makefile
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.2.18
15 PKG_RELEASE:=3
16 # This package is building a static library, used by seafile-server
17 # Every time the built library changes (metadata changes are exempt),
18 # seafile-server needs a release bump to ensure the update is used.
19
20 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
21 PKG_SOURCE_URL:=https://codeload.github.com/criticalstack/libevhtp/tar.gz/$(PKG_VERSION)?
22 PKG_HASH:=316ede0d672be3ae6fe489d4ac1c8c53a1db7d4fe05edaff3c7c853933e02795
23
24 PKG_MAINTAINER:=Eneas U de Queiroz <cotequeiroz@gmail.com>, Jeffery To <jeffery.to@gmail.com>
25 PKG_LICENSE:=BSD-3-Clause
26 PKG_LICENSE_FILES:=LICENSE
27
28 PKG_BUILD_DEPENDS:=libevent2 oniguruma
29 CMAKE_INSTALL:=1
30
31 PKG_CONFIG_DEPENDS:=LIBEVHTP_BUILD_DEPENDS
32
33 include $(INCLUDE_DIR)/package.mk
34 include $(INCLUDE_DIR)/cmake.mk
35
36 define Package/libevhtp
37 SECTION:=libs
38 CATEGORY:=Libraries
39 TITLE:=A more flexible replacement for libevent's httpd API
40 URL:=https://github.com/criticalstack/libevhtp
41 BUILDONLY:=1
42 endef
43
44 define Package/libevhtp/description
45 Libevhtp was created as a replacement API for Libevent's current HTTP API.
46 The reality of libevent's http interface is that it was created as a JIT server,
47 meaning the developer never thought of it being used for creating a full-fledged HTTP service.
48 endef
49
50 define Package/libevhtp/config
51 config LIBEVHTP_BUILD_DEPENDS
52 bool
53 default PACKAGE_libevhtp
54
55 config LIBEVHTP_BUILD_SELECT
56 tristate
57 default m if LIBEVHTP_BUILD_DEPENDS
58 select PACKAGE_libevent2-openssl
59 select PACKAGE_libevent2-pthreads
60 endef
61
62 define Build/InstallDev
63 $(call Build/InstallDev/cmake,$(1))
64 $(SED) 's,^\(include\|lib\)dir=,\0$(STAGING_DIR)/usr/\1,' "$(1)/usr/lib/pkgconfig/evhtp.pc"
65 endef
66
67 $(eval $(call BuildPackage,libevhtp))