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