2006-07-18 18:06:30 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=curl
|
|
|
|
PKG_VERSION:=7.14.0
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=http://curl.haxx.se/download/ \
|
|
|
|
http://www.mirrorspace.org/curl/ \
|
|
|
|
http://curl.mirror.internet.tp/download/ \
|
|
|
|
ftp://ftp.sunet.se/pub/www/utilities/curl/ \
|
|
|
|
ftp://ftp.planetmirror.com/pub/curl/ \
|
|
|
|
http://www.mirrormonster.com/curl/download/ \
|
|
|
|
http://curl.mirrors.cyberservers.net/download/
|
|
|
|
PKG_MD5SUM:=46ce665e47d37fce1a0bad935cce58a9
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2006-10-28 22:43:08 +00:00
|
|
|
define Package/curl/Default
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2006-07-18 18:06:30 +00:00
|
|
|
URL:=http://curl.haxx.se/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/curl
|
2006-10-28 22:43:08 +00:00
|
|
|
$(call Package/curl/Default)
|
2006-07-26 01:26:21 +00:00
|
|
|
DEPENDS:=+libcurl
|
2006-07-18 18:06:30 +00:00
|
|
|
TITLE:=A client-side URL transfer library
|
2006-10-28 22:43:08 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libcurl
|
|
|
|
$(call Package/curl/Default)
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
DEPENDS:=+libopenssl +zlib
|
|
|
|
TITLE:=A client-side URL transfer utility
|
2006-07-18 18:06:30 +00:00
|
|
|
endef
|
|
|
|
|
2007-09-22 04:41:28 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--disable-thread \
|
|
|
|
--enable-cookies \
|
|
|
|
--enable-crypto-auth \
|
|
|
|
--enable-nonblocking \
|
|
|
|
--enable-file \
|
|
|
|
--enable-ftp \
|
|
|
|
--enable-http \
|
|
|
|
--enable-ipv6 \
|
|
|
|
--disable-ares \
|
|
|
|
--disable-debug \
|
|
|
|
--disable-dict \
|
|
|
|
--disable-gopher \
|
|
|
|
--disable-ldap \
|
|
|
|
--disable-manual \
|
|
|
|
--disable-sspi \
|
|
|
|
--disable-telnet \
|
|
|
|
--disable-verbose \
|
|
|
|
--with-random="/dev/urandom" \
|
|
|
|
--with-ssl="$(STAGING_DIR)/usr" \
|
|
|
|
--without-ca-bundle \
|
|
|
|
--without-gnutls \
|
|
|
|
--without-libidn \
|
|
|
|
--with-zlib="$(STAGING_DIR)/usr" \
|
|
|
|
|
2006-07-18 18:06:30 +00:00
|
|
|
define Build/Configure
|
2007-09-22 04:41:28 +00:00
|
|
|
$(call Build/Configure/Default)
|
|
|
|
$(call libtool_disable_rpath)
|
2006-07-18 18:06:30 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2007-09-22 04:41:28 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) all
|
|
|
|
$(call libtool_fixup_libdir,$(PKG_INSTALL_DIR))
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
|
2006-07-18 18:06:30 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
mkdir -p $(STAGING_DIR)/usr/bin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/curl-config $(STAGING_DIR)/usr/bin/
|
|
|
|
mkdir -p $(STAGING_DIR)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/curl $(STAGING_DIR)/usr/include/
|
|
|
|
mkdir -p $(STAGING_DIR)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcurl.{a,so*} $(STAGING_DIR)/usr/lib/
|
2007-09-22 04:41:28 +00:00
|
|
|
mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/libcurl.pc $(STAGING_DIR)/usr/lib/pkgconfig/
|
|
|
|
$(SED) 's,-L$$$${exec_prefix}/lib,,g' $(STAGING_DIR)/usr/bin/curl-config
|
|
|
|
$(SED) 's,^includedir=.*,includedir=$(STAGING_DIR)/usr/include,g' $(STAGING_DIR)/usr/lib/pkgconfig/libcurl.pc
|
|
|
|
$(SED) 's,^libdir=.*,libdir=$(STAGING_DIR)/usr/lib,g' $(STAGING_DIR)/usr/lib/pkgconfig/libcurl.pc
|
|
|
|
$(SED) 's,$(TARGET_LDFLAGS),,g' $(STAGING_DIR)/usr/lib/pkgconfig/libcurl.pc
|
2006-07-18 18:06:30 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/UninstallDev
|
2006-10-28 22:43:08 +00:00
|
|
|
rm -rf $(STAGING_DIR)/usr/bin/curl-config \
|
2006-07-18 18:06:30 +00:00
|
|
|
$(STAGING_DIR)/usr/include/curl \
|
2007-09-22 04:41:28 +00:00
|
|
|
$(STAGING_DIR)/usr/lib/libcurl.{a,so*} \
|
|
|
|
$(STAGING_DIR)/usr/lib/pkconfig/libcurl.pc
|
2006-07-18 18:06:30 +00:00
|
|
|
endef
|
|
|
|
|
2006-10-28 22:43:08 +00:00
|
|
|
define Package/curl/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2006-10-28 22:43:08 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/curl $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libcurl/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2006-10-28 22:43:08 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcurl.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2006-07-18 18:06:30 +00:00
|
|
|
$(eval $(call BuildPackage,curl))
|
2006-10-28 22:43:08 +00:00
|
|
|
$(eval $(call BuildPackage,libcurl))
|