Wget version 1.12 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    version 1.12

      View the most recent changes for the wget port at: wget.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for wget.
      The raw portfile for wget 1.12 is located here:
      http://wget.darwinports.com/dports/net/wget/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/wget


      The wget Portfile 58284 2009-09-25 04:20:31Z ryandesign macports.org $

      PortSystem 1.0
      PortGroup muniversal 1.0

      Name: wget
      Version: 1.12
      Category: net www
      Maintainers: ryandesign
      license GPLv3
      Homepage: http://www.gnu.org/software/wget/
      Platform: darwin freebsd
      use_parallel_build yes
      Master Sites: gnu

      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.

      Checksums: md5 141461b9c04e454dc8933c9d1f2abf83 sha1 50d4ed2441e67db7aa5061d8a4dde41ee0e94248 rmd160 232d0aa6fb36731c162d2b7374aa9ab59e671b7d

      configure.args --with-libssl-prefix=${prefix}

      depends_build bin:makeinfo:texinfo bin:pod2man:perl5

      depends_lib port:libidn port:openssl port:gettext

      # So that +universal can use gettext and openssl on Tiger; see #18276.
      configure.ldflags-append -liconv -lintl
      if {![variant_isset no_ssl]} {
      depends_build-append port:pkgconfig
      pre-configure {
      configure.ldflags-append [exec ${prefix}/bin/pkg-config --libs libssl]
      }
      }

      Variant: test {
      depends_build-append port:p5-libwww-perl port:p5-io-socket-ssl
      test.run yes
      test.target check
      }

      Variant: no_ssl description {Build without SSL support} {
      depends_lib-delete port:openssl
      configure.args-append --without-ssl
      configure.args-delete --with-libssl-prefix=${prefix}
      }

      Patch Files: patch-prefix.diff

      post-patch {
      reinplace "s| PREFIX |${prefix}|g" ${worksrcpath}/ChangeLog ${worksrcpath}/README ${worksrcpath}/NEWS ${worksrcpath}/doc/sample.wgetrc ${worksrcpath}/doc/wget.texi
      }

      post-destroot {
      # Install documentation.
      set docdir ${destroot}${prefix}/share/doc/${name}-${version}
      xinstall -d ${docdir}
      foreach docfile {AUTHORS COPYING MAILING-LIST NEWS README} {
      xinstall -W ${worksrcpath} -m 0644 ${docfile} ${docdir}/${docfile}.txt
      }
      xinstall -W ${worksrcpath} -m 0644 ChangeLog ${docdir}/ChangeLog.txt
      foreach changelog {doc src} {
      xinstall -W ${worksrcpath} -m 0644 ${changelog}/ChangeLog ${docdir}/ChangeLog-${changelog}.txt
      }

      # Rename sample wgetrc file so we don't clobber a user's real config file on upgrade.
      move ${destroot}${prefix}/etc/wgetrc ${destroot}${prefix}/etc/wgetrc.sample
      }

      post-activate {
      if {![file exists ${prefix}/etc/wgetrc]} {
      ui_msg "To customize wget, you can copy wgetrc.sample to wgetrc"
      ui_msg "in ${prefix}/etc and then make changes."
      }
      }

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/wget
      % sudo port install wget
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching wget
      ---> Verifying checksum for wget
      ---> Extracting wget
      ---> Configuring wget
      ---> Building wget with target all
      ---> Staging wget into destroot
      ---> Installing wget
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using wget with these commands:
      %  man wget
      % apropos wget
      % which wget
      % locate wget

     Where to find more information:

    Darwin Ports



    Lightbox this page.