Libpng version 1.2.40 - How to Download and Install on Mac OS X
Friday the 20th of November, 2009

    version 1.2.40

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


      The libpng Portfile 59105 2009-10-09 21:46:55Z ryandesign macports.org $

      PortSystem 1.0
      PortGroup muniversal 1.0
      PortGroup archcheck 1.0

      Name: libpng
      Version: 1.2.40
      Category: graphics
      Maintainers: ryandesign waqar
      license libpng
      Platform: darwin openbsd freebsd sunos linux
      Homepage: http://www.libpng.org/pub/png/libpng.html
      use_bzip2 yes
      use_parallel_build yes
      Master Sites: sourceforge

      Description: Library for manipulating PNG images

      Long Description: Libpng was written as a companion to the PNG specification, as a way to reduce the amount of time and effort it takes to support the PNG file format in application programs. Most users will not have to modify the library significantly, advanced users may want to modify it more. The library was coded for both users. All attempts were made to make it as complete as possible, while keeping the code easy to understand. Currently, this library only supports C. Support for other languages is being considered.

      Checksums: md5 29bbd1c3cbe54b04bfc2bda43067ccb5 sha1 776cf18a799af58303590f6996f6d3aa5a7908ff rmd160 1ba929e73493bfc81bc95113f69f0ff9c5f47814

      depends_lib port:zlib

      archcheck.files lib/libz.dylib

      use_parallel_build yes

      test.run yes
      test.target check

      post-destroot {
      set docdir ${prefix}/share/doc/${name}-${version}
      xinstall -d ${destroot}${docdir}/examples
      xinstall -m 0644 -W ${worksrcpath} ANNOUNCE CHANGES KNOWNBUG LICENSE README TODO ${destroot}${docdir}
      xinstall -m 0644 ${worksrcpath}/example.c ${destroot}${docdir}/examples
      }

      livecheck.type regexm
      livecheck.regex {Current.+?version.+?([0-9.]+)}

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.