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

    version 2.12.4.0

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


      The calc Portfile 57222 2009-09-07 20:35:03Z blb macports.org $

      PortSystem 1.0
      Name: calc
      Version: 2.12.4.0
      Category: math
      Maintainers: nomaintainer
      Description: Arbitrary precision calculator
      Long Description: Calc is an interactive calculator which provides for easy large numeric calculations, but which also can be easily programmed for difficult or long calculations. It can accept a command line argument, in which case it executes that single command and exits. Otherwise, it enters interactive mode. There are a great number of pre-defined functions. The calculator can calculate transcendental functions, and accept and display numbers in real or exponential format. The calculator also knows about complex numbers.

      Platform: darwin

      Homepage: http://www.isthe.com/chongo/tech/comp/calc/
      Master Sites: sourceforge
      use_bzip2 yes

      Checksums: md5 2ef56695837c6e501ca80b64e0be0db6 sha1 d9984dbffb606416e6cc1d85465d5d78fac7fed2 rmd160 c27c033d82db56e9068d508533d10388e3d7b4fc

      depends_lib port:readline port:ncurses

      Patch Files: patch-Makefile.diff
      post-patch {
      reinplace "s|___PREFIX___|${prefix}|" ${worksrcpath}/Makefile
      reinplace "s|___DESTROOT___|${destroot}|" ${worksrcpath}/Makefile
      reinplace "s|___CC___|${configure.cc}|" ${worksrcpath}/Makefile
      reinplace "s|___MACOSX_DEPLOYMENT_TARGET___|${macosx_deployment_target}|" ${worksrcpath}/Makefile
      }

      use_configure no
      use_parallel_build no

      test.run yes
      test.target check

      destroot.destdir


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

     Where to find more information:

    Darwin Ports



    Lightbox this page.