# $Id: Portfile,v 1.21 2006/08/08 07:07:55 yeled Exp $

PortSystem 1.0
name        wget
version     1.10.2
categories  net www
maintainers yeled@opendarwin.org
description internet file retriever
long_description    GNU Wget is a free software package for retrieving files using HTTP, \
            HTTPS and FTP, the most widely-used Internet protocols. It is a \
            non-interactive commandline tool, so it may easily be called from \
            scripts, cron jobs, terminals without Xsupport, etc.
homepage    http://www.gnu.org/software/wget/wget.html
platforms   darwin freebsd
master_sites    gnu
checksums   md5 795fefbb7099f93e2d346b026785c4b8
configure.args  --infodir=${prefix}/share/info --mandir=${prefix}/share/man --with-libssl-prefix=${prefix}
configure.env   CFLAGS=-I${prefix}/include LDFLAGS=-L${prefix}/lib

depends_lib port:openssl port:gettext

variant no_ssl {
    depends_lib-delete  port:openssl
    configure.args-append   --without-ssl
    configure.args-delete   --with-libssl-prefix=${prefix}
}

platform darwin 8 {
    configure.env-append    CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0
}
