2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.webdav.org/neon/
17 PKG_MD5SUM:=b99b3f44e8507ae2d17362f1b34aaf02
21 include $(INCLUDE_DIR)/package.mk
23 define Package/libneon
26 TITLE:=HTTP and WebDAV client library
27 URL:=http://www.webdav.org/neon/
28 DEPENDS:=+libopenssl +libexpat
32 TARGET_CFLAGS += $(FPIC)
38 --with-ssl="openssl" \
43 LDFLAGS="$$$$LDFLAGS -lcrypto -lssl"
46 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install
49 define Build/InstallDev
51 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/neon-config $(1)/usr/bin/
52 mkdir -p $(1)/usr/include
53 $(CP) $(PKG_INSTALL_DIR)/usr/include/neon $(1)/usr/include/
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libneon.{a,so*} $(1)/usr/lib/
56 mkdir -p $(1)/usr/lib/pkgconfig
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/neon.pc $(1)/usr/lib/pkgconfig/
58 $(SED) 's,-I$$$${includedir}/,-I$(1)/usr/include/,g' $(1)/usr/bin/neon-config
59 $(SED) 's,-L$$$${libdir},,g' $(1)/usr/bin/neon-config
62 define Package/libneon/install
63 $(INSTALL_DIR) $(1)/usr/lib
64 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libneon.so.* $(1)/usr/lib/
67 $(eval $(call BuildPackage,libneon))