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).
===> The following configuration options are available for calc-2.17.0.2:
FULL=on: Install all funcs/scripts/headers (OFF: just basic calculator)
HELP=on: Install calc help files
===> Use 'make config' to modify these settings
math/calc: Stop conflicting with itself
My initial hope was that pkg would identify and skip tautologies, and
the tests I ran seemed to work at the time, but it doesn't work in
practice. Instead, teach calc not to conflict with calc, and calc-tiny
not to conflict with calc-tiny.
math/calc: Update to 2.16.0.2 and add a "tiny" flavor
The "tiny" flavor reduces the footprint < 20K by statically-linking
the executable and installing nothing else (no help files, no advanced
loadable modules, etc.). This makes it a great option for most
bit/networking/back-of-the-envelope calculations in constrained
environments.
Changes: https://github.com/lcn2/calc/releases/tag/v2.16.0.2
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
Fix CONFLICTS entries of multiple ports
There have been lots of missing CONFLICTS_INSTALL entries, either
because conflicting ports were added without updating existing ports,
due to name changes of generated packages, due to mis-understanding
the format and semantics of the conflicts entries, or just due to
typoes in package names.
This patch is the result of a comparison of all files contained in
the official packages with each other. This comparison was based on
packages built with default options and may therefore have missed
further conflicts with optionally installed files.
Where possible, version numbers in conflicts entries have been
generalized, some times taking advantage of the fact that a port
(Only the first 15 lines of the commit message are shown above )
Disable -march=native to fix build on riscv64:
cc: error: invalid arch name 'native', string must begin with rv32{i,e,g} or
rv64{i,g}
(For cluster building, it should not be set in any case.)
Approved by: maintainer
calc: Simplify and take maintainership
calc provides a horrific Makefile that uses ?= for nothing at all,
requiring the file to be mangled by hand. Still, it was a little
much for us to redefine every system command. `cp` is unlikely to
wander out of $PATH.
While here, add some options to not install some stuff. In particular,
make it possible to just install a simple usable calculator without
hundreds of scripts, functions, headers, and help files.
Fix build failure since r446818.
gmake[2]: HELPDIR=/usr/local/share/calc/help: No such file or directory
gmake[2]: *** No rule to make target 'HELPDIR=/usr/local/share/calc/help'.
Stop.
Convert GMAKE to MAKE_CMD
Please note that lots of invocation of MAKE_CMD here are wrong as they do not
properly respect MAKE_ENV and friends
With hat: portmgr