BSD Ports

math/capc-calc 2.12.7.1 NetBSD

C arbitrary precision calculator

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
e282cfb26b
Categories
math
Package size
873.6 KiB, 6515.0 KiB installed

Description

Calc is an interactive calculator which provides for easy large numeric caluclations, 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. In this mode, it accepts commands one at a time, processes them, and displays the answers. In the simplest case, commands are simply expressions which are evaluated. For example, he following line can be input: > 3 * (4 + 1) and the calculator will print 15.

Commands are statements in a C-like language, where each input line is treated as the body of a procedure. Thus he copmmand line can contain variable declarations, expressions, labels, conditional tests, and loops. Assignments to any variable name will automatically define that name as a global variable.

For more information on the program, run 'calc help help'.

Install

Binary package:

pkgin install capc-calc

From pkgsrc:

cd /usr/pkgsrc/math/capc-calc && make install clean

Packages

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

RepositoryVersion
NetBSD 10.1 x86_642.12.7.1
NetBSD 10.1 aarch642.12.7.1
SmartOS / illumos x86_64-
macOS 15 arm642.12.7.1

Dependencies

No port depends on this one.

Commit history 1

DateCommitCreditsLog message
e282cfb26b wiz *: add LDFLAGS overide that was previously in mk
This is a workaround and should be fixed properly per-package - they should use the pkgsrc LDFLAGS, but this restores what happened before the mk/ cleanup. Fixes relro build for packages that do not honor LDFLAGS. Package list provided by mef@, thanks! Workaround commit requested by bsiegert on tech-pkg.