aboutsummaryrefslogtreecommitdiffstats
path: root/lang/fsharp/Makefile
blob: 289ba94d6f0d3472bbb2638b5176de4a4d0cf28e (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# New ports collection makefile for:    fsharp
# Date created:     2006 10 10
# Whom:         Phillip Neumann <pneumann@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   fsharp
PORTVERSION=    1.9.6.16
PORTREVISION=   3
CATEGORIES= lang
MASTER_SITES=   http://download.microsoft.com/download/F/7/4/F74A3170-261C-4E8F-B1A8-2E352C61A89B/
DISTNAME=   fsharp

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

BUILD_DEPENDS=  mono>=2:${PORTSDIR}/lang/mono\
        ${LOCALBASE}/lib/libgdiplus.a:${PORTSDIR}/x11-toolkits/libgdiplus
RUN_DEPENDS=    mono>=2:${PORTSDIR}/lang/mono\
        ${LOCALBASE}/lib/libgdiplus.a:${PORTSDIR}/x11-toolkits/libgdiplus

PORTDIR=    lib/${PORTNAME}-${PORTVERSION}
PORTDOCS=   LICENSE-fsharp.txt README-fsharp.html doc manual
PORTDATA=   lib source

PLIST_SUB=  SUBDIR=${PORTDIR}
.if !defined(NOPORTDOCS)
PLIST_SUB+= RMLIC="@comment "
.else
PLIST_SUB+= RMLIC=""
.endif

WRKSRC= ${WRKDIR}/FSharp-${PORTVERSION}
USE_ZIP=    yes
RESTRICTED= Microsoft Research Shared Source License Agreement

AOT=        Core Compiler PowerPack
WRAPPERS=   fsc fsi fslex fsyacc

post-extract:
.for wrapper in ${WRAPPERS}
    @(${ECHO} '#!${SH}' > ${WRKDIR}/${wrapper})
    @(${ECHO} '${LOCALBASE}/bin/mono ${PREFIX}/${PORTDIR}/bin/${wrapper}.exe $$*' >> ${WRKDIR}/${wrapper})
.endfor

do-build:

do-install:
.for asm in ${AOT}
    @ ${GACUTIL_INSTALL} ${WRKSRC}/bin/FSharp.${asm}.dll
.endfor
    @ ${MKDIR} ${PREFIX}/${PORTDIR} ${PREFIX}/${PORTDIR}/bin ${DOCSDIR}
    @ (cd ${WRKSRC} && ${COPYTREE_SHARE} "bin" ${PREFIX}/${PORTDIR}/)
    @ ${INSTALL_DATA} ${WRKSRC}/LICENSE-fsharp.txt ${DOCSDIR}/
.if !defined(NOPORTDOCS)
    @ ${MKDIR} ${DOCSDIR}/doc ${DOCSDIR}/manual
    @ (cd ${WRKSRC} && ${COPYTREE_SHARE} "doc manual" ${DOCSDIR}/)
    @ ${INSTALL_DATA} ${WRKSRC}/README-fsharp.html ${DOCSDIR}/
.endif
.if !defined(NOPORTDATA)
    @ ${MKDIR} ${DATADIR} ${DATADIR}/lib ${DATADIR}/source
    @ (cd ${WRKSRC} && ${COPYTREE_SHARE} "lib source" ${DATADIR}/)
.endif
.for wrapper in ${WRAPPERS}
    @ ${INSTALL_SCRIPT} ${WRKDIR}/${wrapper} ${PREFIX}/bin/
.endfor

.include "${.CURDIR}/../../lang/mono/bsd.mono.mk"
.include <bsd.port.mk>