1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/lang/linux-dotnet-runtime/Makefile
2021-04-06 16:31:07 +02:00

47 lines
1.2 KiB
Makefile

# Created by: David Naylor <dbn@FreeBSD.org>
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
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>