Jbigkit version 2.0 - How to Download and Install on Mac OS X
Monday the 23rd of November, 2009

    jbigkit  most recent diff


    version 2.0

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


      # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
      The jbigkit Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0

      Name: jbigkit
      Version: 2.0
      Category: graphics
      Maintainers: nomaintainer
      Description: Data compression algorithm for bi-level high-res images
      Long Description: JBIG-KIT provides a portable library of compression and decompression functions with a documented interface that you can very easily include into your image or document processing software. In addition, JBIG-KIT provides ready-to-use compression and decompression programs with a simple command line interface (similar to the converters found in netpbm).

      Platform: darwin

      Homepage: http://www.cl.cam.ac.uk/~mgk25/${name}
      Master Sites: http://www.cl.cam.ac.uk/~mgk25/download/

      Checksums: md5 3dd87f605abb1a97a22dc79d8b3e8f6c sha1 cfb7d3121f02a74bfb229217858a0d149b6589ef rmd160 4b1b8358203c2bd86e034703d666c1453c60e572

      worksrcdir ${name}

      Patch Files: patch-Makefile

      configure {
      reinplace "s|__CC__|${configure.cc}|" ${worksrcpath}/Makefile
      reinplace "s|__CFLAGS__|${configure.cflags}|" ${worksrcpath}/Makefile
      }

      test.run yes
      test.target test

      destroot {
      xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} ${destroot}${prefix}/share/examples
      xinstall -m 755 -W ${worksrcpath}/pbmtools jbgtopbm pbmtojbg ${destroot}${prefix}/bin
      xinstall -m 644 -W ${worksrcpath}/pbmtools jbgtopbm.1 pbmtojbg.1 ${destroot}${prefix}/share/man/man1
      xinstall -m 644 -W ${worksrcpath}/libjbig jbig.h jbig_ar.h ${destroot}${prefix}/include
      xinstall -m 644 -W ${worksrcpath}/libjbig libjbig.a ${destroot}${prefix}/lib
      xinstall -m 644 -W ${worksrcpath} ANNOUNCE CHANGES COPYING INSTALL TODO ${destroot}${prefix}/share/doc/${name}
      copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${name}
      }

      set name_version ${version}
      set install_version [join [lrange [split ${version} .] 0 0] .]

      platform darwin {
      patchfiles-append patch-libjbig_Makefile_darwin

      post-patch {
      reinplace "s|__MACPORTS_PREFIX__|${prefix}|g" ${worksrcpath}/libjbig/Makefile
      reinplace "s|__MACPORTS_VERSION__|${name_version}|g" ${worksrcpath}/libjbig/Makefile
      reinplace "s|__MACPORTS_INSTALL_VERSION__|${install_version}|g" ${worksrcpath}/libjbig/Makefile
      }

      post-destroot {
      xinstall -m 644 -W ${worksrcpath}/libjbig libjbig.${name_version}.dylib ${destroot}${prefix}/lib
      ln -s libjbig.${name_version}.dylib ${destroot}${prefix}/lib/libjbig.${install_version}.dylib
      ln -s libjbig.${name_version}.dylib ${destroot}${prefix}/lib/libjbig.dylib
      }
      }

      livecheck.type regex
      livecheck.url ${master_sites}
      livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.