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.32.1
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://notroj.github.io/neon
  13. PKG_HASH:=05c54bc115030c89e463a4fb28d3a3f8215879528ba5ca70d676d3d21bf3af52
  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_VARS += \
  41. ne_cv_os_uname="Linux"
  42. CONFIGURE_ARGS += \
  43. --enable-shared \
  44. --enable-static \
  45. --with-expat \
  46. --with-ssl="openssl" \
  47. --without-egd \
  48. --without-gssapi \
  49. --without-libproxy
  50. define Build/InstallDev
  51. $(INSTALL_DIR) $(1)/usr/bin
  52. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/neon-config $(1)/usr/bin/
  53. $(INSTALL_DIR) $(1)/usr/include
  54. $(CP) $(PKG_INSTALL_DIR)/usr/include/neon $(1)/usr/include/
  55. $(INSTALL_DIR) $(1)/usr/lib
  56. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libneon.{a,so*} $(1)/usr/lib/
  57. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  58. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/neon.pc $(1)/usr/lib/pkgconfig/
  59. $(SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' $(1)/usr/bin/neon-config
  60. $(INSTALL_DIR) $(2)/bin
  61. $(LN) ../../usr/bin/neon-config $(2)/bin/neon-config
  62. endef
  63. define Package/libneon/install
  64. $(INSTALL_DIR) $(1)/usr/lib
  65. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libneon.so.* $(1)/usr/lib/
  66. endef
  67. $(eval $(call BuildPackage,libneon))