2007-05-17 21:21:26 +00:00
|
|
|
#
|
2011-03-10 11:59:35 +00:00
|
|
|
# Copyright (C) 2007-2011 OpenWrt.org
|
2007-05-17 21:21:26 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=neon
|
2011-07-04 00:47:39 +00:00
|
|
|
PKG_VERSION:=0.29.6
|
2011-11-07 23:45:59 +00:00
|
|
|
PKG_RELEASE:=2
|
2007-05-17 21:21:26 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2011-03-10 11:59:35 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.webdav.org/neon
|
2011-07-04 00:47:39 +00:00
|
|
|
PKG_MD5SUM:=591e0c82e6979e7e615211b386b8f6bc
|
2007-05-17 21:21:26 +00:00
|
|
|
|
2012-06-11 21:18:33 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2010-01-18 00:59:10 +00:00
|
|
|
PKG_INSTALL:=1
|
2007-12-27 02:12:04 +00:00
|
|
|
|
2007-05-17 21:21:26 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2007-10-10 15:13:45 +00:00
|
|
|
define Package/libneon
|
2007-05-17 21:21:26 +00:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2007-10-10 15:13:45 +00:00
|
|
|
TITLE:=HTTP and WebDAV client library
|
2007-05-17 21:21:26 +00:00
|
|
|
URL:=http://www.webdav.org/neon/
|
2007-10-10 15:13:45 +00:00
|
|
|
DEPENDS:=+libopenssl +libexpat
|
2007-05-17 21:21:26 +00:00
|
|
|
endef
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
2011-11-07 23:45:59 +00:00
|
|
|
TARGET_CPPFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
|
2008-08-06 22:43:15 +00:00
|
|
|
|
2007-10-10 15:13:45 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--with-expat \
|
|
|
|
--with-ssl="openssl" \
|
|
|
|
--without-egd \
|
2010-01-18 00:59:10 +00:00
|
|
|
--without-libproxy \
|
2007-10-10 15:13:45 +00:00
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
LDFLAGS="$$$$LDFLAGS -lcrypto -lssl"
|
|
|
|
|
2007-05-17 21:21:26 +00:00
|
|
|
define Build/InstallDev
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/neon-config $(1)/usr/bin/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2007-10-10 15:13:45 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/neon $(1)/usr/include/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-10-10 15:13:45 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libneon.{a,so*} $(1)/usr/lib/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/neon.pc $(1)/usr/lib/pkgconfig/
|
2010-01-18 00:59:10 +00:00
|
|
|
$(SED) 's,-I$$$${includedir}/,-I$(STAGING_DIR)/usr/include/,g' $(1)/usr/bin/neon-config
|
2007-10-10 15:13:45 +00:00
|
|
|
$(SED) 's,-L$$$${libdir},,g' $(1)/usr/bin/neon-config
|
2007-05-17 21:21:26 +00:00
|
|
|
endef
|
|
|
|
|
2009-10-04 10:56:10 +00:00
|
|
|
define Package/libneon/install
|
2007-05-17 21:21:26 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-10-10 15:13:45 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libneon.so.* $(1)/usr/lib/
|
2007-05-17 21:21:26 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-10 15:13:45 +00:00
|
|
|
$(eval $(call BuildPackage,libneon))
|