4th version 3.5d3 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    version 3.5d3

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


      The 4th Portfile 57586 2009-09-13 19:31:34Z mww macports.org $

      PortSystem 1.0

      Name: 4th
      Version: 3.5d3
      Category: lang
      Platform: darwin
      Maintainers: mww
      Description: very small Forth compiler
      Long Description: 4tH is a very small Forth compiler that can create bytecode, C-embeddable bytecode, standalone executables, but also works fine as a scripting language. It supports over 85% of the ANS Forth CORE wordset and features conditional compilation, pipes, files, assertions, forward declarations, recursion, include files, etc.

      Homepage: http://www.xs4all.nl/~thebeez/4tH/foldtree.html
      Master Sites: http://www.xs4all.nl/~thebeez/4tH/
      distname ${distname}-unix
      Checksums: md5 83517580a3f81de043bf7667bf86e6f5 sha1 b80d65ae3f24b91602943c963ff0cacbb4aa344b rmd160 9c3a74d3d6bc16d5491205a4ef124804f71a022b
      Patch Files: patch-Makefile.OSX.diff

      worksrcdir ${worksrcdir}/sources

      post-extract { xinstall -m 755 ${filespath}/configure ${worksrcpath} }

      configure.env-append PREFIX=${prefix}
      build.args -f Makefile.OSX
      destroot.args -f Makefile.OSX

      post-destroot {
      xinstall -m 755 -d ${destroot}${prefix}/share/doc
      file copy ${worksrcpath}/../documentation ${destroot}${prefix}/share/doc/${name}
      file copy ${worksrcpath}/../examples ${destroot}${prefix}/share/doc/${name}/
      file rename ${destroot}${prefix}/share/doc/4th/4th.1 ${destroot}${prefix}/share/man/man1/4th.1
      file copy ${worksrcpath}/../lib ${destroot}${prefix}/share/${name}
      }

      livecheck.type regex
      livecheck.url http://www.xs4all.nl/~thebeez/4tH/download.html
      livecheck.regex 4th-(\[a-z0-9\\.\]+)-unix.tar.gz


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

     Where to find more information:

    Darwin Ports



    Lightbox this page.