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