cm3 version 5.2.6 for Mac OS X 10.5 Leopard
Friday the 16th of May, 2008

    cm3  most recent diff


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



      # $Id: Portfile 32256 2007-12-23 09:18:47Z ryandesign macports.org $
      PortSystem 1.0
      Name: cm3
      Version: 5.2.6
      revision 1
      Category: lang
      Platform: darwin
      Maintainers: nomaintainer
      Homepage: http://www.elegosoft.com/cm3/
      Description: Critical Mass Modula-3 Compiler
      Long Description: CM3 5.2 is an open source release of Critical Mass Modula-3. It is a complete easy-to-use and easy-to-install Modula-3 system that contains considerable enhancements over its ancestor DEC SRC Modula-3.

      master_sites ${homepage}
      distfiles cm3-src-all-${version}.tgz

      checksums cm3-src-all-${version}.tgz md5 44fd8c9c905707e4f9835eaf6b747127

      worksrcdir cm3
      extract.dir ${worksrcpath}
      pre-extract "file mkdir ${workpath}/${worksrcdir}"

      # Add a path entry for the bootstrap cm3 compiler
      build.env PATH=$env(PATH):${workpath}/bootstrap/bin

      # M3 requires a bootstrap compiler to build
      # This port currently supports only Darwin/PPC
      platform darwin powerpc {
      distfiles-append cm3-min-POSIX-PPC_DARWIN-${version}.tgz
      checksums-append cm3-min-POSIX-PPC_DARWIN-${version}.tgz md5 6b1421b926731c36c0fc98e86f08c24c

      # Apple's cpp-precomp in Jaguar (10.2) incorrectly handles
      # gcc 'poisoned' tokens, so we turn it off.
      # It only makes the build take longer anyway.
      patchfiles patch-fix-cpp-precomp.diff
      }

      platform freebsd i386 {
      distfiles-append cm3-min-POSIX-FreeBSD4-${version}.tgz
      checksums-append cm3-min-POSIX-FreeBSD4-${version}.tgz md5 162156b414ffebd24c8f0ab9b71ee5e8
      }

      post-extract {
      # Create bootstrap directory and extract the cm3 bootstrap to it
      file mkdir ${workpath}/bootstrap
      system "tar -C ${workpath}/bootstrap -zxf ${worksrcpath}/system.tgz"
      }

      configure {
      # Configure the bootstrap
      file copy -force ${filespath}/${os.platform}-cm3.cfg ${workpath}/bootstrap/bin/cm3.cfg
      reinplace s| USE_ROOT |\"${workpath}/bootstrap\"|g ${workpath}/bootstrap/bin/cm3.cfg
      reinplace s| INSTALL_ROOT |\"${destroot}${prefix}/cm3\"|g ${workpath}/bootstrap/bin/cm3.cfg
      reinplace s| PREFIX |\"${prefix}/cm3\"|g ${workpath}/bootstrap/bin/cm3.cfg
      }

      build {
      set cm3-buildscript "cd ${worksrcpath}/scripts && env ${build.env}"
      # build core distribution
      system "${cm3-buildscript} ./do-cm3-core.sh buildship"

      # build tcp package
      system "${cm3-buildscript} ./do-pkg.sh buildship tcp"
      }

      destroot {
      # create a link to cm3 (m3 compiler) in ${prefix}/cm3/bin
      system "cd ${destroot}${prefix}/cm3/bin/ && ln -s ../pkg/cm3/PPC_DARWIN/cm3"

      # copy bootstrap configuration file to destroot
      file copy -force ${filespath}/${os.platform}-cm3.cfg ${destroot}${prefix}/cm3/bin/cm3.cfg

      # update file paths to reflect final installation paths
      reinplace s| INSTALL_ROOT |\"${prefix}/cm3\"|g ${destroot}${prefix}/cm3/bin/cm3.cfg
      reinplace s| USE_ROOT |\"${prefix}/cm3\"|g ${destroot}${prefix}/cm3/bin/cm3.cfg
      reinplace s| PREFIX |\"${prefix}/cm3\"|g ${destroot}${prefix}/cm3/bin/cm3.cfg
      }

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

     Where to find more information:

    Darwin Ports



    image test