[packages] neon: update to 0.29.5
[openwrt/svn-archive/archive.git] / libs / neon / Makefile
1 #
2 # Copyright (C) 2007-2011 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.29.5
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:=ff369e69ef0f0143beb5626164e87ae2
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libneon
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=HTTP and WebDAV client library
27 URL:=http://www.webdav.org/neon/
28 DEPENDS:=+libopenssl +libexpat
29 endef
30
31 TARGET_CFLAGS += $(FPIC)
32
33 CONFIGURE_ARGS += \
34 --enable-shared \
35 --enable-static \
36 --with-expat \
37 --with-ssl="openssl" \
38 --without-egd \
39 --without-libproxy \
40
41 CONFIGURE_VARS += \
42 LDFLAGS="$$$$LDFLAGS -lcrypto -lssl"
43
44 define Build/InstallDev
45 $(INSTALL_DIR) $(1)/usr/bin
46 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/neon-config $(1)/usr/bin/
47 $(INSTALL_DIR) $(1)/usr/include
48 $(CP) $(PKG_INSTALL_DIR)/usr/include/neon $(1)/usr/include/
49 $(INSTALL_DIR) $(1)/usr/lib
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libneon.{a,so*} $(1)/usr/lib/
51 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
52 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/neon.pc $(1)/usr/lib/pkgconfig/
53 $(SED) 's,-I$$$${includedir}/,-I$(STAGING_DIR)/usr/include/,g' $(1)/usr/bin/neon-config
54 $(SED) 's,-L$$$${libdir},,g' $(1)/usr/bin/neon-config
55 endef
56
57 define Package/libneon/install
58 $(INSTALL_DIR) $(1)/usr/lib
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libneon.so.* $(1)/usr/lib/
60 endef
61
62 $(eval $(call BuildPackage,libneon))