notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photos
All times are UTC
Ukraine
The recently imposed "must be logged in" restriction is a response to increased bot traffic on the site. This affects search, commits, and vuxml pages.
Search engines are not blocked. Try using "site:www.freshports.org" and your search terms.
Port details
calc Interactive CLI arbitrary-precision calculator
2.17.0.0 math on this many watch lists=15 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 2.16.1.2Version of this port present on the latest quarterly branch.
Maintainer: adamw@FreeBSD.org search for ports maintained by this maintainer
Port Added: unknown
Last Update: 2026-05-18 19:51:47
Commit Hash: 9b7ab74
People watching this port, also watch:: unzip, gmake, gettext, libiconv, expat
License: LGPL21
WWW:
https://github.com/lcn2/calc
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).
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
There is no configure plist information for this port.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • calc>0:math/calc
Conflicts:
CONFLICTS_INSTALL:
  • schilyutils
  • calc-tiny
To install the port:
cd /usr/ports/math/calc/ && make install clean
To add the package, run one of these commands:
  • pkg install math/calc
  • pkg install calc
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: calc
Package flavors (<flavor>: <package>)
  • default: calc
  • tiny: calc-tiny
distinfo:
TIMESTAMP = 1779132929 SHA256 (lcn2-calc-v2.17.0.0_GH0.tar.gz) = aeea09ed7c5b5a7c1913e4eff5bc49cd4bad0b987da8b259792293416b986525 SIZE (lcn2-calc-v2.17.0.0_GH0.tar.gz) = 1303904

Packages (timestamps in pop-ups are UTC):
calc
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest2.16.1.22.16.1.22.12.7.2_12.16.0.02.16.1.2n/an/an/a
FreeBSD:13:quarterly2.16.1.22.16.1.22.14.1.62.15.1.12.16.1.2n/an/an/a
FreeBSD:14:latest2.16.1.22.16.1.32.14.1.22.16.0.02.16.1.22.14.1.6-2.14.1.6
FreeBSD:14:quarterly2.16.1.22.16.1.2-2.15.1.12.16.1.22.15.0.42.15.0.42.15.0.4
FreeBSD:15:latest2.16.1.32.17.0.0n/a2.16.0.0n/an/a2.15.0.52.15.0.6
FreeBSD:15:quarterly2.16.1.22.16.1.2n/a-n/an/a--
FreeBSD:16:latest2.16.1.22.17.0.0n/a-n/an/a--
 

calc-tiny
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest2.16.1.22.16.1.2--2.16.1.2n/an/an/a
FreeBSD:13:quarterly2.16.1.22.16.1.2--2.16.1.2n/an/an/a
FreeBSD:14:latest2.16.1.22.16.1.3--2.16.1.2---
FreeBSD:14:quarterly2.16.1.22.16.1.2--2.16.1.2---
FreeBSD:15:latest2.16.1.32.17.0.0n/a-n/an/a--
FreeBSD:15:quarterly2.16.1.22.16.1.2n/a-n/an/a--
FreeBSD:16:latest2.16.1.22.17.0.0n/a-n/an/a--
 

Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. gmake>=4.4.1 : devel/gmake
Library dependencies:
  1. libreadline.so.8 : devel/readline
This port is required by:
for Run
  1. math/bcal

Configuration Options:
===> The following configuration options are available for calc-2.17.0.0: FULL=on: Install all funcs/scripts/headers (OFF: just basic calculator) HELP=on: Install calc help files ===> Use 'make config' to modify these settings
Options name:
math_calc
USES:
gmake tar:bzip2 readline
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (1 items)
Collapse this list.
  1. https://codeload.github.com/lcn2/calc/tar.gz/v2.17.0.0?dummy=/
Collapse this list.

Number of commits found: 104 (showing only 4 on this page)

«  1 | 2 

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
08 Jul 2001 03:11:50
commit hash: fp1.15952@dev.null.freshports.orgcommit hash: fp1.15952@dev.null.freshports.orgcommit hash: fp1.15952@dev.null.freshports.orgcommit hash: fp1.15952@dev.null.freshports.org files touched by this commit
jmz search for other commits by this committer
Upgrade to version 2.11.5.   Install associated files in ${PREFIX}/share instead
of ${PREFIX}/lib    
07 Feb 2001 23:34:54
commit hash: fp1.9348@dev.null.freshports.orgcommit hash: fp1.9348@dev.null.freshports.orgcommit hash: fp1.9348@dev.null.freshports.orgcommit hash: fp1.9348@dev.null.freshports.org files touched by this commit
jmz search for other commits by this committer
Upgrade to version 2.11.2   Update MASTER_SITES    
09 Nov 2000 04:58:30
commit hash: fp1.6176@dev.null.freshports.orgcommit hash: fp1.6176@dev.null.freshports.orgcommit hash: fp1.6176@dev.null.freshports.orgcommit hash: fp1.6176@dev.null.freshports.org files touched by this commit
jmz search for other commits by this committer
#include <sys/types.h> before <machine/endian.h>    
08 Oct 2000 04:10:26
commit hash: fp1.4777@dev.null.freshports.orgcommit hash: fp1.4777@dev.null.freshports.orgcommit hash: fp1.4777@dev.null.freshports.orgcommit hash: fp1.4777@dev.null.freshports.org files touched by this commit
asami search for other commits by this committer
Convert category math to new layout.  

Number of commits found: 104 (showing only 4 on this page)

«  1 | 2