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.

79 lines
2.7 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.30.2
  10. PKG_RELEASE:=4
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://web.archive.org/web/20170923042221/http://webdav.org:80/neon/
  13. PKG_HASH:=db0bd8cdec329b48f53a6f00199c92d5ba40b0f015b153718d1b15d3d967fbca
  14. PKG_INSTALL:=1
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/libneon
  17. SECTION:=libs
  18. CATEGORY:=Libraries
  19. TITLE:=HTTP and WebDAV client library
  20. URL:=http://www.webdav.org/neon/
  21. DEPENDS:=+libopenssl +libexpat +zlib
  22. MAINTAINER:=Federico Di Marco <fededim@gmail.com>
  23. endef
  24. define Package/libneon/description
  25. neon is an HTTP and WebDAV client library, with a C interface. Features:
  26. - High-level wrappers for common HTTP and WebDAV operations (GET, MOVE, DELETE, etc)
  27. - Low-level interface to the HTTP request/response engine, allowing the use of arbitrary HTTP methods, headers, etc.
  28. - Authentication support including Basic and Digest support, along with GSSAPI-based Negotiate on Unix, and
  29. SSPI-based Negotiate/NTLM on Win32
  30. - SSL/TLS support using OpenSSL or GnuTLS; exposing an abstraction layer for verifying server certificates, handling client
  31. certificates, and examining certificate properties. Smartcard-based client certificates are also supported via a
  32. PKCS11 wrapper interface.
  33. - Abstract interface to parsing XML using libxml2 or expat, and wrappers for simplifying handling XML HTTP response bodies
  34. - WebDAV metadata support; wrappers for PROPFIND and PROPPATCH to simplify property manipulation.
  35. endef
  36. TARGET_CFLAGS += $(FPIC)
  37. TARGET_CPPFLAGS += -D_GNU_SOURCE
  38. CONFIGURE_ARGS += \
  39. --enable-shared \
  40. --enable-static \
  41. --with-expat \
  42. --with-ssl="openssl" \
  43. --without-egd \
  44. --without-gssapi \
  45. --without-libproxy
  46. CONFIGURE_VARS += \
  47. LDFLAGS="$$$$LDFLAGS -lcrypto -lssl"
  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))