bcallah 049598efb6 Import math/pcalc, a command line utility for doing hex/dec/oct/bin math
quickly.

Original submission from Charles Daniels <charles@cdaniels.net>, who takes
MAINTAINER -- thanks!

Feedback from sthen@ and kn@

ok sthen@

pcalc is a programmer's calculator. It simplifies some operations
(especially working with multiple bases) that are hard work without
this or another programmer's calculator.  Main features:

     o Full math parser, parentheses, add, sub, mult, div, exponential
     o Automatic conversion between HEX DEC OCT BIN numbers
     o Mixing different bases in one expression
     o Definable variables
     o Math constants (E PI ...)
     o Built in math functions (sin/cos/sqrt ...)
2018-12-04 22:02:27 +00:00

44 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2018/12/04 22:02:27 bcallah Exp $
# XXX: 32-bit issues?
# See: https://github.com/vapier/pcalc/issues/7
# Uncomment me if 32-bit platforms are not reliable
# ONLY_FOR_ARCHS = ${LP64_ARCHS}
COMMENT = command line util for doing hex/dec/oct/bin math quickly
CATEGORIES = math sysutils
GH_ACCOUNT = vapier
GH_PROJECT = pcalc
GH_TAGNAME = v4
MAINTAINER = Charles Daniels <charles@cdaniels.net>
# GPLv2+
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += c m
COMPILER = base-clang ports-gcc
COMPILER_LANGS = c
BUILD_DEPENDS = devel/bison
TEST_DEPENDS = ${MODGNU_AUTOCONF_DEPENDS}
USE_GMAKE = Yes
MAKE_FLAGS = BINDIR="${TRUEPREFIX}/bin" CC="${CC}"
FAKE_FLAGS = BINDIR="${TRUEPREFIX}/bin"
# Known failures:
# tests 001 and 002 fail depending on accuracy of host math lib
# test 006 fails on 32-bit platforms
# https://github.com/vapier/pcalc/issues/6 and .../issues/7
TEST_ENV = AUTOCONF_VERSION=${AUTOCONF_VERSION}
TEST_FLAGS = BINDIR="${TRUEPREFIX}/bin" TESTSUITEFLAGS=
AUTOCONF_VERSION = 2.69
.include <bsd.port.mk>