blob: 073d9402841aa63d52b8a4576c8f9630239ca129 (
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
|
PORTNAME?= dotnet-runtime
DISTVERSION?= 2.0.7
DISTVERSIONSUFFIX= -linux-x64
CATEGORIES= lang
MASTER_SITES?= https://download.microsoft.com/download/E/F/7/EF7302FE-4F84-4529-9E3A-893450F76501/
PKGNAMEPREFIX= linux-
MAINTAINER= mono@FreeBSD.org
COMMENT= Cross-platform .NET implementation
WWW= https://www.microsoft.com/net/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
ONLY_FOR_ARCHS= amd64
.if ${PORTNAME} != dotnet-cli
RUN_DEPENDS= dotnet:lang/linux-dotnet-cli
.endif
USES= linux:c7
USE_LINUX?= curl icu libunwind lttng-ust openssl
DATADIR= ${PREFIX}/share/dotnet
NO_BUILD= yes
NO_WRKSUBDIR= yes
SLAVEDIR= ${.CURDIR}
DISTINFO_FILE?= ${SLAVEDIR}/distinfo
PLIST= ${SLAVEDIR}/pkg-plist
PLIST_SUB= VERSION=${DISTVERSION}
BINFILES?= shared/Microsoft.NETCore.App/${DISTVERSION}/createdump
.if !target(do-install)
do-install:
cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
${RM} ${STAGEDIR}${DATADIR}/dotnet ${STAGEDIR}${DATADIR}/LICENSE.txt ${STAGEDIR}${DATADIR}/ThirdPartyNotices.txt
.for bin in ${BINFILES}
${RM} ${STAGEDIR}${DATADIR}/${bin}
${INSTALL_PROGRAM} ${WRKSRC}/${bin} ${STAGEDIR}${DATADIR}/${bin}
.endfor
.endif
.include <bsd.port.mk>
|