clean up, replace old libtool fixup calls with PKG_FIXUP
[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.26.3
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:=6e52cd9c03e372026d6eccbfb80f09ef
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 CONFIGURE_ARGS += \
33 --enable-shared \
34 --enable-static \
35 --with-expat \
36 --with-ssl="openssl" \
37 --without-egd \
38 --without-socks \
39
40 CONFIGURE_VARS += \
41 LDFLAGS="$$$$LDFLAGS -lcrypto -lssl"
42
43 define Build/Compile
44 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install
45 endef
46
47 define Build/InstallDev
48 mkdir -p $(1)/usr/bin
49 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/neon-config $(1)/usr/bin/
50 mkdir -p $(1)/usr/include
51 $(CP) $(PKG_INSTALL_DIR)/usr/include/neon $(1)/usr/include/
52 mkdir -p $(1)/usr/lib
53 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libneon.{a,so*} $(1)/usr/lib/
54 mkdir -p $(1)/usr/lib/pkgconfig
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/neon.pc $(1)/usr/lib/pkgconfig/
56 $(SED) 's,-I$$$${includedir}/,-I$(1)/usr/include/,g' $(1)/usr/bin/neon-config
57 $(SED) 's,-L$$$${libdir},,g' $(1)/usr/bin/neon-config
58 endef
59
60 define Package/libneon/install
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libneon.so.* $(1)/usr/lib/
63 endef
64
65 $(eval $(call BuildPackage,libneon))