aboutsummaryrefslogtreecommitdiff
path: root/devel/tigcc/Makefile
blob: 585ddee8a3370574694f3db731754194d979e71b (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
# New ports collection makefile for:	tigcc
# Date created:		15 February 2004
# Whom:			Ben Haga <tuximus@tuximus.mine.nu>
#
# $FreeBSD$
#

PORTNAME=	tigcc
PORTVERSION=	0.96.b5
CATEGORIES=	devel
MASTER_SITES=	http://tigcc.ticalc.org/sources/\
		http://tigcc.ticalc.org/linux/
DISTNAME=	tigcc_src
DISTFILES=	tigcc_src.tar.bz2 gcc-3.3.3.tar.bz2 gas-2.14.tar.bz2

MAINTAINER=	gkovesdan@t-hosting.hu
COMMENT=	C compiler for the TI89, 92, and 92+ calculators

BUILD_DEPENDS=	cdialog:${PORTSDIR}/devel/cdialog \
		bash:${PORTSDIR}/shells/bash2

IS_INTERACTIVE=	yes
USE_BZIP2=	yes
USE_REINPLACE=	yes
NO_WRKSUBDIR=	yes

post-patch:
	@${REINPLACE_CMD} -e 's|/bin/bash|${LOCALBASE}/bin/bash|' ${WRKSRC}/scripts/Install

do-build:
	(cd ${WRKSRC}/; \
	${MKDIR} download; \
	${CP} ${DISTDIR}/gcc-3.3.3.tar.bz2 ${DISTDIR}/gas-2.14.tar.bz2 download; \
	cd download; \
	${TAR} yxf gas-2.14.tar.bz2; \
	${TAR} yxf gcc-3.3.3.tar.bz2; \
	${LN} -s binutils-2.14 binutils.ti)

do-install:
	(cd ${WRKSRC}/scripts; ./Install)

.include <bsd.port.mk>