anchor.diff:    passthru.updateScript = ./update.sh;
   
     meta = {
  -    homepage = http://netpbm.sourceforge.net/;
  +    homepage = "http://netpbm.sourceforge.net/";
       description = "Toolkit for manipulation of graphic images";
  -    license = "GPL,free";
  +    license = lib.licenses.free; # http://netpbm.svn.code.sourceforge.net/p/netpbm/code/trunk/doc/copyright_summary
       platforms = with stdenv.lib.platforms; linux ++ darwin;
     };
   }
  
positive.code:       --replace '"-dSAFER"' '"-dPARANOIDSAFER"'
    '';
  
    buildInputs =
      [ pkgconfig flex zlib perl libpng libjpeg libxml2 makeWrapper libtiff ]
      ++ lib.optional enableX11 libX11;
  
    configurePhase = ''
      cp config.mk.in config.mk
  
negative.code:         --replace "TIFFHDR_DIR =" "TIFFHDR_DIR = ${libtiff.dev}/include" \
          --replace "JPEGLIB = NONE" "JPEGLIB = ${libjpeg.out}/lib/libjpeg.so" \
          --replace "JPEGHDR_DIR =" "JPEGHDR_DIR = ${libjpeg.dev}/include"
    '' + stdenv.lib.optionalString stdenv.isDarwin ''
      echo "LDSHLIB=-dynamiclib -install_name $out/lib/libnetpbm.\$(MAJ).dylib" >> config.mk
      echo "NETPBMLIBTYPE = dylib" >> config.mk
      echo "NETPBMLIBSUFFIX = dylib" >> config.mk
  