Zlib version 1.2.3 - How to Download and Install on Mac OS X
Saturday the 4th of July, 2009

    version 1.2.3

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


      The zlib Portfile 50980 2009-05-14 19:41:55Z and.damore macports.org $

      PortSystem 1.0
      PortGroup muniversal 1.0

      Name: zlib
      Version: 1.2.3
      Revision: 2
      Category: archivers
      Maintainers: landonf ryandesign openmaintainer
      Homepage: http://www.zlib.net/
      Platform: darwin freebsd
      use_bzip2 yes

      Description: zlib lossless data-compression library

      Long Description: zlib is designed to be a free, general-purpose, legally unencumbered, lossless data-compression library for use on virtually any computer hardware and operating system.

      Master Sites: ${homepage} http://www.gzip.org/zlib/ sourceforge:libpng

      Checksums: md5 dee233bf288ee795ac96a98cc2e369b6 sha1 967e280f284d02284b0cd8872a8e2e04bfdc7283 rmd160 cfba9984b354dcc38da49331457e6bfc861c6f51

      Patch Files: patch-Makefile-static.diff patch-Makefile-test.diff

      configure.args --shared
      configure.universal_args

      # configure script does not recognize --host option
      array set merger_host {
      ppc ""
      i386 ""
      ppc64 ""
      x86_64 ""
      }

      # Ensure ldflags are used (see http://trac.macports.org/ticket/18841).
      post-patch {
      if { ${configure.ldflags}!="-L${prefix}/lib" } {
      configure.ldflags-delete -L${prefix}/lib
      reinplace "s|LDFLAGS=\"\\(.*\\)\"|LDFLAGS=\"\\1 ${configure.ldflags}\"|" ${worksrcpath}/configure
      }
      }

      use_parallel_build yes

      test.run yes

      destroot.destdir prefix=${destroot}${prefix}

      post-destroot {
      set docdir ${prefix}/share/doc/${name}-${version}
      xinstall -d ${destroot}${docdir}
      xinstall -m 0644 -W ${worksrcpath} ChangeLog FAQ README ${destroot}${docdir}

      set examplesdir ${docdir}/examples
      xinstall -d ${destroot}${examplesdir}
      eval xinstall -m 0644 [glob ${worksrcpath}/example{.c,s/*}] ${destroot}${examplesdir}
      }

      livecheck.check regex
      livecheck.url ${homepage}
      livecheck.regex ${name}-(\[0-9.\]+)\\.tar

    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/zlib
      % sudo port install zlib
      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 zlib
      ---> Verifying checksum for zlib
      ---> Extracting zlib
      ---> Configuring zlib
      ---> Building zlib with target all
      ---> Staging zlib into destroot
      ---> Installing zlib
    - 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 zlib with these commands:
      %  man zlib
      % apropos zlib
      % which zlib
      % locate zlib

     Where to find more information:

    Darwin Ports



    Lightbox this page.