summaryrefslogtreecommitdiff
path: root/devel/hp48cc/Makefile
blob: 13d1c4078ebeac03d912973b4869c109cccdfd64 (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
# Created by: Patrick Li <pat@databits.net>
# $FreeBSD$

PORTNAME=	hp48cc
PORTVERSION=	1.3
PORTREVISION=	2
CATEGORIES=	devel lang
MASTER_SITES=	${MASTER_SITE_SUNSITE} http://www.sigala.it/sandro/files/
MASTER_SITE_SUBDIR=	devel/lang/c

MAINTAINER=	danfe@FreeBSD.org
COMMENT=	C-like compiler that translates input code to the HP48 RPL language

LICENSE=	GPLv2

USES=		bison
GNU_CONFIGURE=	yes
MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS}"

MAN1=		${PORTNAME}.1
PLIST_FILES=	bin/${PORTNAME}
PORTEXAMPLES=	*

post-patch:
# Fix the Makefile to unbreak parallel builds
	@${REINPLACE_CMD} -e 's,(YACC),& -o parser.c, ; \
		s,(LEX),& -olexer.c, ; /mv/d' ${WRKSRC}/src/Makefile.in

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>