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.

78 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.30.2
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://www.webdav.org/neon
  13. PKG_MD5SUM:=e28d77bf14032d7f5046b3930704ef41
  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-libproxy
  45. CONFIGURE_VARS += \
  46. LDFLAGS="$$$$LDFLAGS -lcrypto -lssl"
  47. define Build/InstallDev
  48. $(INSTALL_DIR) $(1)/usr/bin
  49. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/neon-config $(1)/usr/bin/
  50. $(INSTALL_DIR) $(1)/usr/include
  51. $(CP) $(PKG_INSTALL_DIR)/usr/include/neon $(1)/usr/include/
  52. $(INSTALL_DIR) $(1)/usr/lib
  53. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libneon.{a,so*} $(1)/usr/lib/
  54. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  55. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/neon.pc $(1)/usr/lib/pkgconfig/
  56. $(SED) 's,-I$$$${includedir}/,-I$(STAGING_DIR)/usr/include/,g' $(1)/usr/bin/neon-config
  57. $(SED) 's,-L$$$${libdir},,g' $(1)/usr/bin/neon-config
  58. endef
  59. define Package/libneon/install
  60. $(INSTALL_DIR) $(1)/usr/lib
  61. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libneon.so.* $(1)/usr/lib/
  62. endef
  63. $(eval $(call BuildPackage,libneon))