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.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://www.webdav.org
/neon
/
16 PKG_MD5SUM
:=b99b3f44e8507ae2d17362f1b34aaf02
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/libneon
25 TITLE
:=HTTP and WebDAV client library
26 URL
:=http
://www.webdav.org
/neon
/
27 DEPENDS
:=+libopenssl
+libexpat
31 TARGET_CFLAGS
+= $(FPIC
)
37 --with-ssl
="openssl" \
42 LDFLAGS
="$$$$LDFLAGS -lcrypto -lssl"
45 $(MAKE
) -C
$(PKG_BUILD_DIR
) DESTDIR
="$(PKG_INSTALL_DIR)" all install
48 define Build
/InstallDev
50 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/neon-config
$(1)/usr
/bin
/
51 mkdir
-p
$(1)/usr
/include
52 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/neon
$(1)/usr
/include/
54 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libneon.
{a
,so
*} $(1)/usr
/lib
/
55 mkdir
-p
$(1)/usr
/lib
/pkgconfig
56 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/neon.
pc $(1)/usr
/lib
/pkgconfig
/
57 $(SED
) 's,-I$$$${includedir}/,-I$(1)/usr/include/,g' $(1)/usr
/bin
/neon-config
58 $(SED
) 's,-L$$$${libdir},,g' $(1)/usr
/bin
/neon-config
61 define Package
/libneon
/install
62 $(INSTALL_DIR
) $(1)/usr
/lib
63 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libneon.so.
* $(1)/usr
/lib
/
66 $(eval
$(call BuildPackage
,libneon
))