Files
sthen 1b13452762 reset bcallah maintainer lines, quite a lot of timeouts which make it
tricky for others to work on the ports tree, this will also bring more
visible to portroach of those which are outdated
2026-02-11 15:12:24 +00:00

42 lines
897 B
Makefile

V = 7.1.0
COMMENT = implementation of POSIX bc with GNU and BSD extensions
DISTNAME = bc-${V}
PKGNAME = bc-gh-${V}
EXTRACT_SUFX = .tar.xz
CATEGORIES = math
REVISION = 0
HOMEPAGE = https://github.com/gavinhoward/bc
# BSD
PERMIT_PACKAGE = Yes
WANTLIB += c
SITES = https://github.com/gavinhoward/bc/releases/download/${V}/
COMPILER = base-clang ports-gcc
COMPILER_LANGS = c
# CONFIGURE_ARGS makes it so we don't run tests that need GNU bc to generate.
CONFIGURE_STYLE = simple
CONFIGURE_SCRIPT = configure.sh
CONFIGURE_ARGS = -G
CONFIGURE_ENV = CC="${CC}" \
CFLAGS="${CFLAGS}" \
EXECSUFFIX="-gh" \
MANDIR="${PREFIX}/man" \
NLSPATH="${PREFIX}/share/locale/%L/%N"
# Use 64-bit math on 64-bit archs
.include <bsd.port.arch.mk>
.if ${PROPERTIES:Mlp64}
CONFIGURE_ENV += LONG_BIT=64
.else
CONFIGURE_ENV += LONG_BIT=32
.endif
FAKE_FLAGS = DESTDIR="${DESTDIR}"
.include <bsd.port.mk>