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