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.

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