Bzip2 version 1.0.5 - How to Download and Install on Mac OS X
Saturday the 21st of November, 2009

    version 1.0.5

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


      The bzip2 Portfile 58055 2009-09-21 11:04:10Z ryandesign macports.org $

      PortSystem 1.0

      Name: bzip2
      Version: 1.0.5
      Revision: 3
      Platform: darwin freebsd linux sunos
      Category: archivers sysutils
      Maintainers: ryandesign openmaintainer
      license BSD
      use_configure no
      use_parallel_build yes
      Homepage: http://www.bzip.org/
      Master Sites: ${homepage}${version}

      Description: compression library and tools

      Long Description: ${name} is a freely available, patent free, high-quality data compressor.

      Checksums: md5 3c15a0c8d1d3ee1c46a1634d00617b1a sha1 8b02713ea0c8eb501cc8bdac4432d7f29700f767 rmd160 2b31a22138e3914d82a656fee28e2bf029cbc3d4

      Patch Files: patch-Makefile-man.diff patch-Makefile-links.diff patch-Makefile-so.diff

      platform darwin {
      patchfiles-delete patch-Makefile-so.diff
      patchfiles-append patch-Makefile-dylib.diff

      post-patch {
      reinplace "s|__MacPorts_Version__|${version}|g" ${worksrcpath}/Makefile
      reinplace "s|__MacPorts_Compatibility_Version__|[join [lrange [split ${version} .] 0 1] .]|g" ${worksrcpath}/Makefile
      }

      post-destroot {
      ln -s libbz2.${version}.dylib ${destroot}${prefix}/lib/libbz2.[join [lrange [split ${version} .] 0 1] .].dylib
      ln -s libbz2.${version}.dylib ${destroot}${prefix}/lib/libbz2.[join [lrange [split ${version} .] 0 0] .].dylib
      ln -s libbz2.${version}.dylib ${destroot}${prefix}/lib/libbz2.dylib
      }
      }

      Variant: universal {}
      pre-build {
      if {[variant_isset universal]} {
      set my_archflags ${configure.universal_cflags}
      } else {
      set my_archflags ${configure.cc_archflags}
      }
      build.args CC="${configure.cc} ${my_archflags}" PREFIX=${prefix}
      }

      destroot.destdir PREFIX=${destroot}${prefix}

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.