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

    pngcrush  most recent diff


    version 1.6.10

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


      The pngcrush Portfile 41101 2008-10-23 01:52:52Z blb macports.org $

      PortSystem 1.0
      Name: pngcrush
      Version: 1.6.10
      Category: graphics
      Description: optimizer for PNG files
      Long Description: pngcrush reads in a PNG image, and writes it out again, with the optimum filter_type and zlib_level. It uses brute force (trying filter_type none, and libpng adaptive filtering, with compression levels 3 and 9). It does the most time-consuming method last in case it turns out to be the best. Optionally, it can remove unwanted chunks or add gAMA and sRGB chunks.
      Homepage: http://pmt.sourceforge.net/pngcrush/
      Platform: darwin freebsd
      Maintainers: nomaintainer
      Master Sites: sourceforge:pmt
      Checksums: md5 375d3119f7dbc53c9c9c6d7764b0fec9 sha1 18835985d715dec37b6806fb9afa07f13129f93f rmd160 eb4e6cdbd826647c387e363226c7a8454fb44dda
      use_bzip2 yes

      use_configure no

      build.args-append LD="/usr/bin/gcc-4.0"

      destroot {
      xinstall -m 755 -d ${destroot}${prefix}/bin
      xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin
      }

      platform darwin 8 {
      build.args-append CC="/usr/bin/gcc-4.0 -DPNG_NO_ASSEMBLER_CODE"
      }

      platform darwin 9 {
      build.args-append CC="/usr/bin/gcc-4.0 -DPNG_NO_ASSEMBLER_CODE"
      }

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.