summaryrefslogtreecommitdiffstats
path: root/math/e/Makefile
blob: 1cf4068f995cfb83522b9e3eab5b39611ca2a66e (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
25
26
27
28
29
30
31
32
# Created by: snowy
# $FreeBSD$

PORTNAME=	e
PORTVERSION=	0.02718
CATEGORIES=	math
MASTER_SITES=	http://www.softnet.tuc.gr/~apdim/projects/e/

MAINTAINER=	snowy@netphile.de
COMMENT=	A tiny expression evaluator

MAKEFILE=	makefile
ALL_TARGET=	e

NO_STAGE=	yes
post-patch:
	@${RM} ${WRKSRC}/${PORTNAME}
	@${REINPLACE_CMD} -e 's|gcc|${CC}|g ; \
		s|-O2|${CFLAGS}|g' ${WRKSRC}/makefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
.for i in EXAMPLES GRAMMAR README
	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>
OpenPOWER on IntegriCloud