Install wget for Mac OS X

Mac OS X comes standard with curl instead of wget. While both programs do the same, However, I would like to have wget, as this is used by my existing scripts. Prerequisite for the following HowTo is an installation of Apple XCode Developer Tools, In addition, the Command Line Tools installed (XCode -> Preferences -> Downloads -> Components)*.
Update: The shortcut to automatically load the latest version has been unfortunately removed. So it is first the latest version of wget out at the following URL http://ftp.gnu.org/gnu/wget/ and then insert it into the first row instead of VERSION below.

Per Terminal is installed wget then follows:

curl -O http://ftp.gnu.org/gnu/wget/wget-1.14.tar.gz
tar -zxvf wget-1.14.tar.gz
cd wget-1.14/
./configure
make
sudo make install

And we also clean up again:

cd ..
rm wget-1.14.tar.gz
rm -rf wget-1.14

Alternatively, the installation is also Homebrew (brew install wget) or MacPorts (sudo port install wget) possible.

Update: From version 1.13 wget requires the installation default GnuTLS instead of OpenSSL. * GnuTLS but is not installed by default. We can instruct the installation but, OpenSSL to use in which we extend the above ./configure to a suitable switch:

./configure --with-ssl=openssl