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
://web.archive.org
/web
/20170923042221/http
://webdav.org
:80/neon
/
16 PKG_HASH
:=db0bd8cdec329b48f53a6f00199c92d5ba40b0f015b153718d1b15d3d967fbca
18 PKG_CPE_ID
:=cpe
:/a
:webdav
:neon
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/libneon
27 TITLE
:=HTTP and WebDAV client library
28 URL
:=http
://www.webdav.org
/neon
/
29 DEPENDS
:=+libopenssl
+libexpat
+zlib
30 MAINTAINER
:=Federico Di Marco
<fededim@gmail.com
>
33 define Package
/libneon
/description
34 neon is an HTTP and WebDAV client library
, with a C interface. Features
:
36 - High-level wrappers for common HTTP and WebDAV operations
(GET
, MOVE
, DELETE
, etc
)
37 - Low-level interface to the HTTP request
/response engine
, allowing the use of arbitrary HTTP methods
, headers
, etc.
38 - Authentication support including Basic and Digest support
, along with GSSAPI-based Negotiate on Unix
, and
39 SSPI-based Negotiate
/NTLM on Win32
40 - SSL
/TLS support using OpenSSL or GnuTLS
; exposing an abstraction layer for verifying server certificates
, handling client
41 certificates
, and examining certificate properties. Smartcard-based client certificates are also supported via a
42 PKCS11 wrapper interface.
43 - Abstract interface to parsing XML using libxml2 or expat
, and wrappers for simplifying handling XML HTTP response bodies
44 - WebDAV metadata support
; wrappers for PROPFIND and PROPPATCH to simplify property manipulation.
48 TARGET_CFLAGS
+= $(FPIC
)
49 TARGET_CPPFLAGS
+= -D_GNU_SOURCE
55 --with-ssl
="openssl" \
61 LDFLAGS
="$$$$LDFLAGS -lcrypto -lssl"
63 define Build
/InstallDev
64 $(INSTALL_DIR
) $(1)/usr
/bin
65 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/neon-config
$(1)/usr
/bin
/
66 $(INSTALL_DIR
) $(1)/usr
/include
67 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/neon
$(1)/usr
/include/
68 $(INSTALL_DIR
) $(1)/usr
/lib
69 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libneon.
{a
,so
*} $(1)/usr
/lib
/
70 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
71 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/neon.
pc $(1)/usr
/lib
/pkgconfig
/
72 $(SED
) 's,-I$$$${includedir}/,-I$(STAGING_DIR)/usr/include/,g' $(1)/usr
/bin
/neon-config
73 $(SED
) 's,-L$$$${libdir},,g' $(1)/usr
/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
))