freebsd-ports/lang/fsharp/Makefile
Gabor Pali bd50b1948a F# developed as a research programming language to provide the much
sought-after combination of type safety, succinctness, performance,
expressivity and scripting, with all the advantages of running on a
high-quality, well-supported modern runtime system.  This combination
has been so successful that the language is now being transitioned
towards a fully supported language on the .NET platform.

F# was developed as a pragmatically-oriented variant of ML that shares a
core language with OCaml.  Unlike other scripting languages it executes
at or near the speed of C# and C++, making use of the performance that
comes through strong typing.  Unlike many type-inferred,
statically-typed languages it also supports many dynamic language
techniques, such as property discovery and reflection where needed.  F#
includes extensions for working across languages and for object-oriented
programming, and it works seamlessly with other .NET programming
languages and tools.

WWW: http://research.microsoft.com/fsharp/fsharp.aspx

Approved by:	gabor (mentor)
2009-05-10 10:46:38 +00:00

77 lines
2.4 KiB
Makefile

# New ports collection makefile for: fsharp
# Date created: 2006 10 10
# Whom: Phillip Neumann <pneumann@gmail.com>
#
# $FreeBSD$
#
PORTNAME= fsharp
PORTVERSION= 1.9.6.2
CATEGORIES= lang
MASTER_SITES= http://download.microsoft.com/download/7/5/c/75c5ac35-9c13-4737-b363-3c930002259a/
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= Build \
Compiler.CodeDom Compiler.Interactive.Settings Compiler.Server.Shared Compiler \
Core \
LanguageService \
PowerPack.Linq PowerPack.Math.Providers PowerPack.Plot.Excel PowerPack.Plot.Neutral \
PowerPack.Plot.XCeed PowerPack.Plot PowerPack \
ProjectSystem.Base ProjectSystem.FSharp ProjectSystem.PropertyPages \
VS.FSI
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 ${PREFIX}/${PORTDIR}/setup ${DOCSDIR}
@ (cd ${WRKSRC} && ${COPYTREE_SHARE} "bin setup" ${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>