aboutsummaryrefslogtreecommitdiff
path: root/lang/ironpython/Makefile
blob: c0d036c41535e722a1acad09d9cc01f4cda7e86a (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
43
# New ports collection makefile for:    ironpython
# Date created:		29 July 2004
# Whom:			Hye-Shik Chang
#
# $FreeBSD$
#

PORTNAME=	ironpython
PORTVERSION=	1.0.1
PORTREVISION=	2
CATEGORIES=	lang python
MASTER_SITES=	http://www.go-mono.com/sources/${PORTNAME}/
DISTNAME=	IronPython-1.0.1-Src

MAINTAINER=	perky@FreeBSD.org
COMMENT=	New Python implementation targeting the .NET

BUILD_DEPENDS=	mono:${PORTSDIR}/lang/mono
RUN_DEPENDS=	mono:${PORTSDIR}/lang/mono

WRKSRC=	${WRKDIR}/IronPython-${PORTVERSION}
USE_ZIP=	yes
USE_GMAKE=	yes

post-extract:
	@(${ECHO} '#!${SH}' > ${WRKDIR}/ironpython)
	@(${ECHO} '${LOCALBASE}/bin/mono ${PREFIX}/lib/ironpython/ipy.exe -X:ColorfulConsole $$*' \
		>> ${WRKDIR}/ironpython)

pre-build:
	@${MKDIR} ${WRKSRC}/Src/IronPythonTest/bin

do-build:
	cd ${WRKSRC}/Src && ${GMAKE}

do-install:
	@${MKDIR} ${PREFIX}/lib/ironpython
	cd ${WRKSRC}; for f in *.exe *.dll; do \
		${INSTALL_DATA} $$f ${PREFIX}/lib/ironpython; \
	done
	@${INSTALL_SCRIPT} ${WRKDIR}/ironpython ${PREFIX}/bin/

.include <bsd.port.mk>