aboutsummaryrefslogtreecommitdiff
path: root/math/gnubc/Makefile
blob: ed3f8960d781fd727f38eb94d55c222bfc3ffb59 (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
PORTNAME=	bc
DISTVERSION=	1.07.1
PORTREVISION=	2
CATEGORIES=	math
MASTER_SITES=	GNU
PKGNAMEPREFIX=	gnu

MAINTAINER=	ports@FreeBSD.org
COMMENT=	GNU bc/dc calculator
WWW=		https://www.gnu.org/software/bc/

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

BROKEN_powerpc64=	fails to build: tests fail with error code 2

USES=		cpe libedit makeinfo
CPE_VENDOR=	gnu
GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=	--with-libedit
INFO=		bc \
		dc
PLIST_FILES=	bin/bc \
		bin/dc \
		man/man1/bc.1.gz \
		man/man1/dc.1.gz
PORTEXAMPLES=	ckbook.b \
		pi.b \
		primes.b \
		twins.b

OPTIONS_DEFINE=	EXAMPLES

CONFLICTS_INSTALL=	gh-bc

post-install:
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for f in ${PORTEXAMPLES}
	${INSTALL_DATA} ${WRKSRC}/Examples/${f} ${STAGEDIR}${EXAMPLESDIR}
.endfor

.include <bsd.port.mk>