summaryrefslogtreecommitdiff
path: root/math/capc-calc/Makefile
blob: d9a2143bb05c6a227ba33f63c1e6bad3ae4722dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# $NetBSD: Makefile,v 1.4 2001/02/17 18:22:16 wiz Exp $
#

DISTNAME=	calc-2.11.4t2
PKGNAME=	capc-${DISTNAME:S/t/./}
CATEGORIES=	math
MASTER_SITES=	http://www.isthe.com/chongo/src/calc/ \
		ftp://ftp.batnet.com/wombats/noll/ftp/pub/calc/

MAINTAINER=	wiz@netbsd.org
HOMEPAGE=	http://www.isthe.com/chongo/tech/comp/calc/
COMMENT=	C arbitrary precision calculator

NO_CONFIGURE=	# defined

.if exists(/usr/include/readline.h) && !exists(/usr/include/readline/readline.h)
post-patch:
	${SED} -e "s|readline/readline.h|readline.h|" \
	       -e "s|readline/history.h|history.h|" ${WRKSRC}/hist.c > \
			${WRKSRC}/hist.c.new && \
	${MV} -f ${WRKSRC}/hist.c.new ${WRKSRC}/hist.c
.endif

.include "../../mk/bsd.pkg.mk"