You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
2.6 KiB

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