2 # Copyright (C) 2007-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://notroj.github.io
/neon
16 PKG_HASH
:=b1e2120e4ae07df952c4a858731619733115c5f438965de4fab41d6bf7e7a508
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
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/libneon
31 TITLE
:=HTTP and WebDAV client library
32 URL
:=https
://notroj.github.io
/neon
/
33 DEPENDS
:=+libopenssl
+libexpat
+zlib
36 define Package
/libneon
/description
37 neon is an HTTP and WebDAV client library
, with a C interface. Features
:
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.
51 ne_cv_os_uname
="Linux"
57 --with-ssl
="openssl" \
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
76 define Package
/libneon
/install
77 $(INSTALL_DIR
) $(1)/usr
/lib
78 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libneon.so.
* $(1)/usr
/lib
/
81 $(eval
$(call BuildPackage
,libneon
))