head	1.2;
access;
symbols
	pkgsrc-2019Q4:1.1.0.12
	pkgsrc-2019Q4-base:1.1
	pkgsrc-2019Q3:1.1.0.8
	pkgsrc-2019Q3-base:1.1
	pkgsrc-2019Q2:1.1.0.6
	pkgsrc-2019Q2-base:1.1
	pkgsrc-2019Q1:1.1.0.4
	pkgsrc-2019Q1-base:1.1
	pkgsrc-2018Q4:1.1.0.2
	pkgsrc-2018Q4-base:1.1;
locks; strict;
comment	@# @;


1.2
date	2020.01.09.12.21.37;	author sjmulder;	state dead;
branches;
next	1.1;
commitid	sq8wtxcRgzs8Q0SB;

1.1
date	2018.12.15.17.25.15;	author leot;	state Exp;
branches;
next	;
commitid	YJhUBMFK4Jc23V3B;


desc
@@


1.2
log
@bcal: Update to 2.2

Changes:
 - Support calc for multi-base expressions
 - To use calc, export BCAL_USE_CALC=1
 - Fix lint issues
 - Fix issue #30
 - Updated auto-generated packages
 - More portable Makefile
@
text
@$NetBSD: patch-Makefile,v 1.1 2018/12/15 17:25:15 leot Exp $

 - Respect LDFLAGS
 - Respect existing LDLIBS
 - Remove default -O3

--- Makefile
+++ Makefile
@@@@ -4,20 +4,19 @@@@ MANDIR = $(DESTDIR)$(PREFIX)/share/man/man1
 DOCDIR = $(DESTDIR)$(PREFIX)/share/doc/bcal
 STRIP ?= strip
 
-CFLAGS ?= -O3
 CFLAGS += -Wall -Wextra -Wno-unused-parameter -Werror
-LDLIBS = -lreadline
+LDLIBS += -lreadline
 
 SRC = $(wildcard src/*.c)
 INCLUDE = -Iinc
 
 bcal: $(SRC)
-	$(CC) $(CFLAGS) $(INCLUDE) -o bcal $(SRC) $(LDLIBS)
+	$(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDE) -o bcal $(SRC) $(LDLIBS)
 
 all: bcal
 
 x86: $(SRC)
-	$(CC) -m64 $(CFLAGS) $(INCLUDE) -o bcal $(SRC) $(LDLIBS)
+	$(CC) -m64 $(CFLAGS) $(LDFLAGS) $(INCLUDE) -o bcal $(SRC) $(LDLIBS)
 	strip bcal
 
 distclean: clean
@


1.1
log
@bcal: Import bcal-2.1 as math/bcal

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(1) mode for general-purpose numerical calculations.

Only 64-bit operating systems are supported.

Packaged by Sijmen J. Mulder in pkgsrc-wip, thanks!
@
text
@d1 1
a1 1
$NetBSD$
@

