summaryrefslogtreecommitdiffstats
path: root/lang/fsharp/Makefile
blob: 59586e44f0609cd09b692f6cb755a85980ca13a5 (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
37
38
39
40
41
42
43
44
45
46
# Created by: Phillip Neumann <pneumann@gmail.com>
# $FreeBSD$

PORTNAME=	fsharp
PORTVERSION=	4.0.1.20
CATEGORIES=	lang
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}

MAINTAINER=	mono@FreeBSD.org
COMMENT=	Functional and object-oriented language for the .NET platform

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	mono>=3.0:lang/mono \
		referenceassemblies-pcl>=4.6-1:lang/referenceassemblies-pcl
RUN_DEPENDS=	mono>=3.0:lang/mono

NUGET_DEPENDS=	FSharp.Compiler.Tools=4.0.1.3 \
		FSharp.Data=2.2.5 \
		FSharp.SRGen.Build.Tasks=3.0.0 \
		fssrgen=3.0.0 \
		Microsoft.DiaSymReader=1.0.8 \
		Microsoft.DiaSymReader.PortablePdb=1.1.0 \
		System.Collections.Immutable=1.2.0 \
		System.Reflection.Metadata=1.4.1-beta-24227-04

USE_GITHUB=	yes

USES=		autoreconf gmake mono:nuget pkgconfig
GNU_CONFIGURE=	yes
MAKE_JOBS_UNSAFE=	Build not parallelizable
NO_ARCH=	yes

do-test:
	${MKDIR} ${WRKDIR}/bin
	echo "#!/bin/sh" > ${WRKDIR}/bin/fsharpc
	echo 'exec ${LOCALBASE}/bin/mono ${WRKSRC}/lib/release/fsc.exe "$$@"' >> ${WRKDIR}/bin/fsharpc
	${CHMOD} 0755 ${WRKDIR}/bin/fsharpc
	(cd ${WRKSRC}/tests/fsharp/core; \
		${ENV} \
			PATH=${WRKDIR}/bin:${PATH} \
			MONO_PATH=${WRKSRC}/lib/release \
			./run-all.sh)

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