summaryrefslogtreecommitdiff
path: root/lang/SmartEiffel/Makefile
blob: 3351c736bbb1ffa7ae158fd6a9e00d812e5d3ac8 (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
33
34
35
36
# $NetBSD: Makefile,v 1.2 2005/06/17 04:49:47 jlam Exp $

DISTNAME=	se
PKGNAME=	SmartEiffel-2.0
CATEGORIES=	lang
MASTER_SITES=	ftp://ftp.loria.fr/pub/loria/SmartEiffel/
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	lars.nordlund@hem.utfors.se
HOMEPAGE=	http://smarteiffel.loria.fr/
COMMENT=	The GNU Eiffel Compiler

WRKSRC=		${WRKDIR}/SmartEiffel

DIST_SUBDIR=	${PKGNAME_NOREV}

MAKE_ENV=	SmartEiffel=${WRKSRC}/sys/system.se

# This package relies heavily on GCC.
ONLY_FOR_COMPILER=	gcc

post-patch:
	${SED} "s:XXXWORKDIRXXX:${WRKDIR}:g" ${FILESDIR}/system.se \
		> ${WRKSRC}/sys/system.se

post-build:
	${MV} -f ${WRKSRC}/sys/system.se ${WRKSRC}/sys/system.se.bak
	${SED} "s:${WRKDIR}:${LOCALBASE}:g" ${WRKSRC}/sys/system.se.bak > \
		${WRKSRC}/sys/system.se
	${RM} -f ${WRKSRC}/sys/system.se.bak
	${RM} -f ${WRKSRC}/sys/system.se~

do-install:
	${CP} -r ${WRKSRC} ${PREFIX}

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