The team previously known as mono has no active members. I will send an email to ports@ in case anyone wants to pick up these ports. Approved by: portmgr (bofh)
46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
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= ports@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>
|