Lzma version 4.63 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    version 4.63

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


      The lzma Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0

      Name: lzma
      Version: 4.63
      Category: archivers
      Platform: darwin
      Maintainers: nomaintainer
      Description: high compression ratio archiver

      Long Description: LZMA is default and general compression method of 7z format in 7-Zip program. LZMA provides high compression ratio and very fast decompression.

      Homepage: http://www.7-zip.org/sdk.html
      Master Sites: sourceforge:sevenzip
      distname lzma[strsed ${version} {/\.//}]
      use_bzip2 yes

      Checksums: md5 ad7d7eb5120b500271dcf83af00e2fc1 sha1 36b5fe39014c9f1f114ab4dfbe5768cb20529d3e rmd160 d3506df1996d72be7d4e914c56b5b2e43c5a0b8a

      extract.mkdir yes
      post-extract {
      # Convert DOS to UNIX line endings so we can patch
      reinplace "s|\r||g" ${worksrcpath}/CPP/7zip/Compress/LZMA_Alone/makefile.gcc
      }

      Patch Files: patch-lzma.1 patch-makefile.gcc
      post-patch {
      reinplace "s| CC |${configure.cc}|g" ${worksrcpath}/CPP/7zip/Compress/LZMA_Alone/makefile.gcc
      reinplace "s| CXX |${configure.cxx}|g" ${worksrcpath}/CPP/7zip/Compress/LZMA_Alone/makefile.gcc
      }

      use_configure no

      build.dir ${worksrcpath}/CPP/7zip/Compress/LZMA_Alone
      build.type gnu
      build.args -f makefile.gcc

      post-install {
      ui_msg "The LZMA SDK program is installed as \"lzma_alone\", to avoid conflict with LZMA Utils"
      }

      destroot {
      xinstall -s ${worksrcpath}/CPP/7zip/Compress/LZMA_Alone/lzma ${destroot}${prefix}/bin/lzma_alone
      xinstall ${worksrcpath}/lzma.1 ${destroot}${prefix}/share/man/man1/lzma_alone.1

      set docdir ${prefix}/share/doc/${name}-${version}
      xinstall -d ${destroot}${docdir}
      xinstall -m 0644 -W ${worksrcpath} history.txt lzma.txt ${destroot}${docdir}
      }

      livecheck.type regex
      livecheck.regex {(\d+(?:\.\d+)*):}


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

     Where to find more information:

    Darwin Ports



    Lightbox this page.