1 |
# $MidnightBSD$ |
2 |
|
3 |
PORTNAME?= dotnet-runtime |
4 |
DISTVERSION?= 2.0.7 |
5 |
DISTVERSIONSUFFIX= -linux-x64 |
6 |
CATEGORIES= lang |
7 |
MASTER_SITES?= https://download.microsoft.com/download/E/F/7/EF7302FE-4F84-4529-9E3A-893450F76501/ |
8 |
PKGNAMEPREFIX= linux- |
9 |
|
10 |
MAINTAINER= ports@MidnightBSD.org |
11 |
COMMENT= Cross-platform .NET implementation |
12 |
|
13 |
LICENSE= mit |
14 |
LICENSE_FILE= ${WRKSRC}/LICENSE.txt |
15 |
|
16 |
ONLY_FOR_ARCHS= amd64 |
17 |
|
18 |
.if ${PORTNAME} != dotnet-cli |
19 |
RUN_DEPENDS= dotnet:lang/linux-dotnet-cli |
20 |
.endif |
21 |
|
22 |
USES= linux:c7 |
23 |
USE_LINUX?= curl icu libunwind lttng-ust openssl |
24 |
|
25 |
DATADIR= ${PREFIX}/share/dotnet |
26 |
NO_BUILD= yes |
27 |
NO_WRKSUBDIR= yes |
28 |
|
29 |
SLAVEDIR= ${.CURDIR} |
30 |
DISTINFO_FILE?= ${SLAVEDIR}/distinfo |
31 |
PLIST= ${SLAVEDIR}/pkg-plist |
32 |
PLIST_SUB= VERSION=${DISTVERSION} |
33 |
|
34 |
BINFILES?= shared/Microsoft.NETCore.App/${DISTVERSION}/createdump |
35 |
|
36 |
.if !target(do-install) |
37 |
do-install: |
38 |
cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} |
39 |
${RM} ${STAGEDIR}${DATADIR}/dotnet ${STAGEDIR}${DATADIR}/LICENSE.txt ${STAGEDIR}${DATADIR}/ThirdPartyNotices.txt |
40 |
.for bin in ${BINFILES} |
41 |
${RM} ${STAGEDIR}${DATADIR}/${bin} |
42 |
${INSTALL_PROGRAM} ${WRKSRC}/${bin} ${STAGEDIR}${DATADIR}/${bin} |
43 |
.endfor |
44 |
.endif |
45 |
|
46 |
.include <bsd.port.mk> |