NAME=curl
VERSION=7.16.2
SOURCE=http://curl.haxx.se/download/curl-$VERSION.tar.bz2
OPTIMIZE=${OPTIMIZE:-"-Os -pipe"}
BUILD=${BUILD:-1}

build() {
	_explode 0
	cd curl-$VERSION
	_configure \
		--disable-static \
		--enable-http \
		--enable-ftp \
		--enable-file \
		--disable-ldap \
		--enable-dict \
		--enable-telnet \
		--enable-tftp \
		--enable-manual \
		--enable-ipv6 \
		--enable-nonblocking \
		--enable-thread \
		--enable-verbose \
		--disable-debug \
		--enable-crypto-auth \
		--enable-cookies \
		--enable-hidden-symbols \
		--without-krb4 \
		--without-spnego \
		--without-gssapi \
		--without-libssh2 \
		--without-ssl \
		--with-gnutls \
		--with-zlib \
		--with-libidn
	make
	make install DESTDIR=$PKG
	_doc 0 curl-$VERSION  CHANGES COPYING README RELEASE-NOTES
	cd docs
	_doc 0 curl-$VERSION  BUGS BINDINGS CONTRIBUTE DISTRO-DILEMMA \
		FAQ FEATURES HISTORY KNOWN_BUGS LICENSE-MIXING MANUAL \
		RESOURCES SSLCERTS THANKS TheArtOfHttpScripting TODO \
		VERSIONS examples
	_chfix
	_chgrp_bin
}
