treewide: remove AUTORELEASE
[feed/packages.git] / libs / neon / Makefile
1 #
2 # Copyright (C) 2007-2014 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 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=neon
11 PKG_VERSION:=0.32.4
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://notroj.github.io/neon
16 PKG_HASH:=b1e2120e4ae07df952c4a858731619733115c5f438965de4fab41d6bf7e7a508
17
18 PKG_MAINTAINER:=Federico Di Marco <fededim@gmail.com>
19 PKG_LICENSE:=LGPL-2.1-or-later
20 PKG_LICENSE_FILES:=src/COPYING.LIB
21 PKG_CPE_ID:=cpe:/a:webdav:neon
22
23 PKG_INSTALL:=1
24 PKG_BUILD_PARALLEL:=1
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/libneon
29 SECTION:=libs
30 CATEGORY:=Libraries
31 TITLE:=HTTP and WebDAV client library
32 URL:=https://notroj.github.io/neon/
33 DEPENDS:=+libopenssl +libexpat +zlib
34 endef
35
36 define Package/libneon/description
37 neon is an HTTP and WebDAV client library, with a C interface. Features:
38
39 - High-level wrappers for common HTTP and WebDAV operations (GET, MOVE, DELETE, etc)
40 - Low-level interface to the HTTP request/response engine, allowing the use of arbitrary HTTP methods, headers, etc.
41 - Authentication support including Basic and Digest support, along with GSSAPI-based Negotiate on Unix, and
42 SSPI-based Negotiate/NTLM on Win32
43 - SSL/TLS support using OpenSSL or GnuTLS; exposing an abstraction layer for verifying server certificates, handling client
44 certificates, and examining certificate properties. Smartcard-based client certificates are also supported via a
45 PKCS11 wrapper interface.
46 - Abstract interface to parsing XML using libxml2 or expat, and wrappers for simplifying handling XML HTTP response bodies
47 - WebDAV metadata support; wrappers for PROPFIND and PROPPATCH to simplify property manipulation.
48 endef
49
50 CONFIGURE_VARS += \
51 ne_cv_os_uname="Linux"
52
53 CONFIGURE_ARGS += \
54 --enable-shared \
55 --enable-static \
56 --with-expat \
57 --with-ssl="openssl" \
58 --without-egd \
59 --without-gssapi \
60 --without-libproxy
61
62 define Build/InstallDev
63 $(INSTALL_DIR) $(1)/usr/bin
64 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/neon-config $(1)/usr/bin/
65 $(INSTALL_DIR) $(1)/usr/include
66 $(CP) $(PKG_INSTALL_DIR)/usr/include/neon $(1)/usr/include/
67 $(INSTALL_DIR) $(1)/usr/lib
68 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libneon.{a,so*} $(1)/usr/lib/
69 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
70 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/neon.pc $(1)/usr/lib/pkgconfig/
71 $(SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' $(1)/usr/bin/neon-config
72 $(INSTALL_DIR) $(2)/bin
73 $(LN) ../../usr/bin/neon-config $(2)/bin/neon-config
74 endef
75
76 define Package/libneon/install
77 $(INSTALL_DIR) $(1)/usr/lib
78 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libneon.so.* $(1)/usr/lib/
79 endef
80
81 $(eval $(call BuildPackage,libneon))