1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00
freebsd-ports/math/calc/Makefile
Nuno Teixeira e04fe6e31d math/calc: Move man pages to share/man
Approved by:	portmgr (blanket)
2024-03-12 12:04:28 +00:00

45 lines
1.2 KiB
Makefile

PORTNAME= calc
PORTVERSION= 2.15.0.6
DISTVERSIONPREFIX= v
PORTREVISION= 1
CATEGORIES= math
MAINTAINER= adamw@FreeBSD.org
COMMENT= Interactive CLI arbitrary-precision calculator
WWW= https://github.com/lcn2/calc
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING-LGPL
USES= gmake tar:bzip2 readline
USE_GITHUB= yes
GH_ACCOUNT= lcn2
CONFLICTS_INSTALL= schilyutils # bin/calc
MAKE_JOBS_UNSAFE= yes
PLIST_SUB+= VERSION=${PORTVERSION} VERSION_R=${PORTVERSION:R}
MAKE_ARGS= DATADIR="${DATADIR}"
TEST_TARGET= check
OPTIONS_DEFINE= FULL HELP
OPTIONS_DEFAULT=FULL HELP
OPTIONS_SUB= yes
FULL_DESC= Install all funcs/scripts/headers (OFF: just basic calculator)
HELP_DESC= Install calc help files
# We use Makefile.freebsd because Makefile.local is in .gitignore
post-extract:
${SED} -e 's|%%CC%%|${CC}|; s|%%CFLAGS%%|${CFLAGS}|; s|%%SH%%|${SH}|' \
${FILESDIR}/Makefile.freebsd > ${WRKSRC}/Makefile.local
# The upstream Makefiles are a mess. Bash is hardcoded in many files, and only
# some of the Makefiles allow overrides. Plus, they error out if sed .bkp files exist.
${FIND} ${WRKSRC} -name 'Makefile*' \
| ${XARGS} ${REINPLACE_CMD} -i '' -E -e '/SHELL:?=/s|bash|${SH}|'
post-install:
cd ${STAGEDIR}${PREFIX} && ${STRIP_CMD} bin/calc lib/lib*.so
.include <bsd.port.mk>