Netpbm version 10.26.57 - How to Download and Install on Mac OS X
Thursday the 2nd of July, 2009

    version 10.26.57

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


      The netpbm Portfile 40261 2008-09-27 11:28:09Z ryandesign macports.org $

      PortSystem 1.0

      Name: netpbm
      Version: 10.26.57
      Category: graphics
      Maintainers: mas openmaintainer
      Description: Image manipulation
      Long Description: A whole bunch of utilities for primitive manipulation of graphic images. Wide array of converters from one graphics format to another. E.g. from g3 fax format to jpeg. Many basic graphics editing tools such as magnifying and cropping.

      Homepage: http://netpbm.sourceforge.net/
      Master Sites: sourceforge:netpbm
      Platform: darwin freebsd linux
      use_parallel_build no

      depends_lib port:zlib port:jpeg port:tiff port:libpng port:jasper
      extract.suffix .tgz
      Checksums: md5 2975e9c4a90cd16eeff763c38c9aa73f sha1 159d297902facbbae4621e194448b01a24baf365 rmd160 69f5a44e57b21d8a45f93e8f982ef16c0d775e4e

      set gcc-suffix ""
      Patch Files: patch-lib-Makefile

      configure {
      system "cd ${worksrcpath} &&
      cat Makefile.config.in ${filespath}/Makefile.config.${os.platform} |
      sed -e '/ PREFIX /s ${prefix} ' -e '/ GCC_SUFFIX /s ${gcc-suffix} ' > Makefile.config";
      }

      build.args "messages=yes"
      build.target ""
      build.type gnu

      destroot {
      file delete -force ${destroot}${prefix}
      system "cd ${worksrcpath} && ${build.cmd} package pkgdir=${destroot}${prefix}"
      xinstall -m 755 -d ${destroot}${prefix}/share/netpbm
      system "cd ${destroot}${prefix} &&
      mv bin/doc.url misc/* share/netpbm &&
      mv man share &&
      rm -rf README VERSION config_template link misc pkginfo share/man/web"
      foreach old_library {pbm pgm pnm ppm} {
      ln -s libnetpbm.dylib ${destroot}${prefix}/lib/lib${old_library}.dylib
      }
      }

      # "Netpbm has a sophisticated, rather novel system of releasing source code"
      livecheck.distname super stable

      universal_variant no

      # work around bug in Apple's gcc build 4061
      platform darwin 8 {
      set fl [open "| gcc --version"]
      set data [read $fl]
      close $fl
      if {[regexp "build 4061" $data]} {
      set gcc-suffix "-3.3"
      } else {
      set gcc-suffix "-4.0"
      }
      }

      platform freebsd {
      patchfiles-append patch-libopt.c
      depends_build port:libtool
      }

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.