about [UPDATING (4 days)] [MOVED (15 hours)] [vuxml (13 minutes)]summaryrefslograw-logtreecommitdiffstats
path: root/math/calc/Makefile [up]
Last 15 commits to file "math/calc/Makefile" in the last year: [ Last 15 commits to this file | All commits to this file ]
 
Commit messageAuthorDateFilesLines
* [ file ]math/calc: Update to 2.17.0.2Adam Weinberger2026-09-30 06:10:54 +01001-1/+1
* [ file ]math/calc: Fix packaging for @tiny flavorAdam Weinberger2026-09-04 06:49:37 +01001-1/+1
* [ file ]math/calc: Update to 2.17.0.0Adam Weinberger2026-05-18 20:51:47 +01001-1/+1
* [ file ]math/calc: Update to 2.16.1.3Adam Weinberger2026-05-12 20:10:30 +01001-1/+1
* [ file ]math/calc: Update to 2.16.1.2Adam Weinberger2026-01-08 13:37:52 +00001-1/+1
* [ file ]math/calc: Update to 2.16.1.1Adam Weinberger2026-01-05 04:12:15 +00001-1/+1
* [ file ]math/calc: Update to 2.16.1.0Adam Weinberger2026-01-01 01:36:39 +00001-1/+1
* [ file ]math/calc: Update to 2.16.0.3Adam Weinberger2025-12-26 16:41:52 +00001-2/+1
* [ file ]math/calc: Stop conflicting with itselfAdam Weinberger2025-12-23 16:40:45 +00001-1/+5
* [ file ]math/calc: Update to 2.16.0.2 and add a "tiny" flavorAdam Weinberger2025-12-22 15:01:24 +00001-8/+24
* [ file ]math/calc: Update to 2.16.0.0Adam Weinberger2025-08-15 03:20:26 +01001-1/+1
* [ file ]math/calc: Update to 2.15.1.2Adam Weinberger2025-08-14 05:30:10 +01001-1/+1
* [ file ]math/calc: Update to 2.15.1.1Adam Weinberger2025-04-24 14:38:47 +01001-1/+1
* [ file ]math/calc: Update to 2.15.0.7Adam Weinberger2024-05-28 15:53:54 +01001-2/+1
* [ file ]math/calc: Move man pages to share/manNuno Teixeira2024-03-12 12:04:28 +00001-0/+1
[...]


commit: (<title> <author> <date> etc.)
blob: be056184c08814b4787b77bc3bca0db7aba620e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
PORTNAME=	calc
PORTVERSION=	2.17.0.2
DISTVERSIONPREFIX=	v
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

FLAVORS=	default tiny

USES=		gmake tar:bzip2 readline
USE_GITHUB=	yes
GH_ACCOUNT=	lcn2

MAKE_ARGS=	DATADIR="${DATADIR}"
MAKE_JOBS_UNSAFE=	yes
TEST_TARGET=	check

CONFLICTS_INSTALL=	schilyutils
PLIST_SUB+=	VERSION=${PORTVERSION} VERSION_R=${PORTVERSION:R}

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

.if ${FLAVOR:U} == tiny
OPTIONS_EXCLUDE=FULL HELP
PKGNAMESUFFIX=	-tiny
MAKE_ARGS+=	BLD_TYPE=calc-static-only
PLIST_FILES=	bin/calc
PLIST=		# Use only PLIST_FILES
CONFLICTS_INSTALL+=	calc
.else
CONFLICTS_INSTALL+=	calc-tiny
.endif

.include <bsd.port.pre.mk>
# We use Makefile.freebsd because Makefile.local is in our .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}|'

.if ${FLAVOR:U} == default
post-install:
	cd ${STAGEDIR}${PREFIX} && ${STRIP_CMD} bin/calc lib/lib*.so

.else
do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/calc ${STAGEDIR}${PREFIX}/bin
.endif

.include <bsd.port.post.mk>
This site is maintained by Jamie Landeg-Jones <jamie@catflap.org>, and is not an official FreeBSD project, nor is it endorsed by the FreeBSD team.