Mapm3 version 3.0 - How to Download and Install on Mac OS X
Sunday the 21st of March, 2010

    version 3.0

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


      The mapm3 Portfile 38771 2008-07-31 04:05:43Z ryandesign macports.org $

      PortSystem 1.0

      Name: mapm3
      Version: 3.0
      Revision: 3
      Platform: darwin
      Maintainers: ryandesign openmaintainer
      Category: science
      Description: cli tool for calculating Quantitative Trait Loci
      Master Sites: http://www-genome.wi.mit.edu/ftp/distribution/software/mapmaker3/

      distname ${name}-source
      extract.suffix .tar.Z
      Checksums: md5 8aa7a061d32a49c8704c1a5c4b31aa2d

      extract.mkdir yes
      extract.cmd uncompress
      extract.pre_args -c
      extract.post_args | tar -C ${worksrcpath} -xf -

      Patch Files: patch-iolib.h patch-xmapmaker patch-Makefile patch-system.h patch-xqtl

      configure {
      reinplace "s|^DIR= /usr/local/bin|DIR= ${prefix}/bin|g" "${worksrcpath}/Makefile"
      }

      pre-destroot {
      reinplace "s|^DIR= ${prefix}/bin|DIR= ${destroot}${prefix}/bin|g" "${worksrcpath}/Makefile"
      }

      post-destroot {
      xinstall -d ${destroot}${prefix}/libexec/${name}
      foreach prog {mapmaker qtl} {
      move ${destroot}${prefix}/bin/${prog} ${destroot}${prefix}/libexec/${name}
      xinstall -m 755 ${filespath}/wrapper.in ${destroot}${prefix}/bin/${prog}
      reinplace "s% PREFIX %${prefix}%g" ${destroot}${prefix}/bin/${prog}
      }
      }

      Variant: large_datasets {
      post-patch {
      reinplace "s|^SYS= -D_SYS_DARWIN -DUSE_RAND48|SYS= -D_SYS_DARWIN -DUSE_RAND48 -D_BIG_DATASETS|g" "${worksrcpath}/Makefile"
      }
      }

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.