Add libtool fixup to libusb.
[openwrt/svn-archive/archive.git] / libs / neon / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=neon
12 PKG_VERSION:=0.28.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.webdav.org/neon/
17 PKG_MD5SUM:=b99b3f44e8507ae2d17362f1b34aaf02
18
19 PKG_FIXUP = libtool
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
32 TARGET_CFLAGS += $(FPIC)
33
34 CONFIGURE_ARGS += \
35 --enable-shared \
36 --enable-static \
37 --with-expat \
38 --with-ssl="openssl" \
39 --without-egd \
40 --without-socks \
41
42 CONFIGURE_VARS += \
43 LDFLAGS="$$$$LDFLAGS -lcrypto -lssl"
44
45 define Build/Compile
46 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install
47 endef
48
49 define Build/InstallDev
50 mkdir -p $(1)/usr/bin
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/
54 mkdir -p $(1)/usr/lib
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
60 endef
61
62 define Package/libneon/install
63 $(INSTALL_DIR) $(1)/usr/lib
64 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libneon.so.* $(1)/usr/lib/
65 endef
66
67 $(eval $(call BuildPackage,libneon))