FreeBSD Ports

math/bcal 2.6

Storage expression, unit conversion & address offset CLI calculator

Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
db3885877e
License
GPLv3
Categories
math

Description

bcal (Byte CALculator) is a REPL CLI utility for storage expressions, unit conversions or address calculations. If you can't calculate the hex address offset for (512 - 16) MiB, or the value when the 43rd bit of a 64-bit address is set mentally, bcal is for you.

It has a bc mode for general-purpose numerical calculations.

bcal follows Ubuntu's standard unit conversion and notation policy. Only 64-bit operating systems are supported.

Features:

  • evaluate arithmetic expressions involving storage units
  • perform general purpose calculations (using bc)
  • convert to IEC/SI standard data storage units
  • interactive mode with the last valid result stored for reuse
  • show the address in bytes
  • show address as LBA:OFFSET
  • convert CHS to LBA and vice versa
  • base conversion to binary, decimal and hex
  • custom sector size, max heads/cylinder and max sectors/track
  • minimal dependencies

Install

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

pkg install math/bcal
pkg install bcal

From the ports tree:

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

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

RUN_DEPENDS=	bcal>0:math/bcal

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:latest-2.5---
FreeBSD:14:quarterly-2.5n/a--
FreeBSD:15:latest-2.5n/a--
FreeBSD:15:quarterly-2.5n/an/an/a
FreeBSD:16:latest-2.5n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Test 1

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_bcal

OptionDefaultDescription
DOCSoffBuild and/or install documentation
USES
gmake python:test readline
Service scripts
none

Files

distinfo 1
FileSizeSHA256
bcal-v2.6.tar.gz486475bb315eb1c2ccc17e056247c0601c77dfbbdbef97051bdb522c00fe12b10eaa4
Master sites 1
  • https://github.com/jarun/bcal/releases/download/${DISTVERSIONFULL}/

Commit history 3

DateCommitCreditsLog message
db3885877e Nuno Teixeira math/bcal: Update to 2.6
- Switch to release asset tarball - Take maintainership ChangeLog: https://github.com/jarun/bcal/releases/tag/v2.6 MFH: 2026Q4
c93ceecb61 Mateusz Piotrowski math/bcal: Return to pool
140b327e54 Mateusz Piotrowski math/bcal: Update to 2.5.0
Sponsored by: fme AG