FreeBSD Ports

math/calc 2.17.0.2

Interactive CLI arbitrary-precision calculator

Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
f28a0ad678
License
LGPL21
Categories
math
Package size
936.8 KiB, 5784.2 KiB installed

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.

There is a "tiny" flavor (pkg install calc-tiny) that excludes both the help files and loadable modules. It provides a basic calculator (still with MANY built-in functions) in under 20K (on amb64). Note that the tiny flavor installs a static executable only, so libcalc.so is not available (as of the time of writing, no other ports use it).

Install

As a binary package — by origin, or by package name:

pkg install math/calc
pkg install calc

From the ports tree:

cd /usr/ports/math/calc/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	calc>0:math/calc
LIB_DEPENDS=	libcalc.so:math/calc

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2.17.0.22.17.0.22.14.1.22.16.0.02.17.0.2
FreeBSD:14:quarterly2.17.0.22.17.0.2n/a2.15.1.12.17.0.2
FreeBSD:15:latest2.17.0.22.17.0.2n/a2.16.0.02.16.0.0
FreeBSD:15:quarterly2.17.0.22.17.0.2n/an/an/a
FreeBSD:16:latest2.17.0.22.17.0.2n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

All build dependencies 4
All run dependencies 2

No port depends on this one.

Configuration

Options name: math_calc

OptionDefaultDescription
FULLonInstall all funcs/scripts/headers (OFF: just basic calculator)
HELPonInstall calc help files
USES
gmake tar:bzip2 readline
Service scripts
none
Conflicts with
schilyutils
Flavors
calc-tiny-2.17.0.2

Files

Manual pages 1
  • calc(1)
pkg-plist 543
  • bin/calc
  • include/calc/attribute.h
  • include/calc/banned.h
  • include/calc/blkcpy.h
  • include/calc/block.h
  • include/calc/byteswap.h
  • include/calc/calc.h
  • include/calc/cmath.h
  • include/calc/config.h
  • include/calc/custom.h
  • include/calc/errtbl.h
  • include/calc/file.h
  • include/calc/func.h
  • include/calc/hash.h
  • include/calc/hist.h
  • include/calc/int.h
  • include/calc/jump.h
  • include/calc/label.h
  • include/calc/lib_calc.h
  • include/calc/lib_util.h
  • include/calc/nametype.h
  • include/calc/opcodes.h
  • include/calc/prime.h
  • include/calc/qmath.h
  • include/calc/sha1.h
  • include/calc/str.h
  • include/calc/strl.h
  • include/calc/symbol.h
  • include/calc/token.h
  • include/calc/value.h
  • include/calc/version.h
  • include/calc/zmath.h
  • include/calc/zrand.h
  • include/calc/zrandom.h
  • lib/libcalc.so
  • lib/libcalc.so.
  • lib/libcalc.so.
  • lib/libcustcalc.so
  • lib/libcustcalc.so.
  • lib/libcustcalc.so.
  • libexec/cscript/4dsphere
  • libexec/cscript/fproduct
  • libexec/cscript/mersenne
  • libexec/cscript/piforever
  • libexec/cscript/plus
  • libexec/cscript/powerterm
  • libexec/cscript/simple
  • libexec/cscript/square
  • share/calc/README
  • share/calc/alg_config.cal
  • share/calc/beer.cal
  • share/calc/bernoulli.cal
  • share/calc/bernpoly.cal
  • share/calc/bigprime.cal
  • share/calc/bindings
  • share/calc/brentsolve.cal
  • share/calc/chi.cal
  • share/calc/chrem.cal
  • share/calc/comma.cal
  • share/calc/constants.cal
  • share/calc/custhelp/argv
  • share/calc/custhelp/devnull
  • share/calc/custhelp/help
  • share/calc/custhelp/pfe
  • share/calc/custhelp/pmodm127
  • share/calc/custhelp/pzasusb8
  • share/calc/custhelp/register
  • share/calc/custhelp/sysinfo
  • share/calc/custom/argv.cal
  • share/calc/custom/halflen.cal
  • share/calc/custom/pfe.cal
  • share/calc/custom/pmodm127.cal
  • share/calc/custom/pzasusb8.cal
  • share/calc/custom/register.cal
  • share/calc/deg.cal
  • share/calc/dms.cal
  • share/calc/dotest.cal
  • share/calc/ellip.cal
  • share/calc/factorial.cal
  • share/calc/factorial2.cal
  • share/calc/fnv_tool.cal
  • share/calc/gvec.cal
  • share/calc/hello.cal
  • share/calc/help/COPYING
  • share/calc/help/COPYING-LGPL
  • share/calc/help/abs
  • share/calc/help/access
  • share/calc/help/acos
  • share/calc/help/acosh
  • share/calc/help/acot
  • share/calc/help/acoth
  • share/calc/help/acovercos
  • share/calc/help/acoversin
  • share/calc/help/acrd
  • share/calc/help/acsc
  • share/calc/help/acsch
  • share/calc/help/address
  • share/calc/help/agd
  • share/calc/help/append
  • share/calc/help/appr

The first 100 are listed.

distinfo 1
FileSizeSHA256
lcn2-calc-v2.17.0.2_GH0.tar.gz1.309892e+0612471c2c23ae6b8a010be7472ef58e877a94022bd2e8c172cb60bede98b6417f

Commit history 2

DateCommitCreditsLog message
f28a0ad678 Adam Weinberger math/calc: Update to 2.17.0.2
e36527d8da Adam Weinberger math/calc: Fix packaging for @tiny flavor