Changeset View
Standalone View
devel/dotnet/Makefile
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
svn:keywords | null | FreeBSD=%H \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
# Created by: Mateus de Morais <mateus@mateus.tech> | |||||
# $FreeBSD$ | |||||
PORTNAME= dotnet | |||||
dbn: This port conflicts with `linux-dotnet*` | |||||
DISTVERSION= 2.2.0-preview1-26620-03 | |||||
CATEGORIES= devel | |||||
MASTER_SITES= LOCAL/dbn/dotnet/:managed | |||||
DISTFILES= dotnet-freebsd-2.2.0-preview1-26620-03-MANAGEDONLY.tar.gz:managed | |||||
Not Done Inline ActionsLOCAL/dbn/dotnet:managed mat: `LOCAL/dbn/dotnet:managed` | |||||
MAINTAINER= mateus@mateus.tech | |||||
COMMENT= Dotnet is a cross-platform framework for building services and apps | |||||
LICENSE= MIT | |||||
LICENSE_FILE= ${WRKSRC}/LICENSE.TXT | |||||
ONLY_FOR_ARCHS= amd64 i386 | |||||
BUILD_DEPENDS= bash:shells/bash \ | |||||
cmake:devel/cmake \ | |||||
icuinfo:devel/icu \ | |||||
clang39:devel/llvm39 | |||||
dbnUnsubmitted Not Done Inline ActionsMissing dependency! We have llvm38 in ports, but I think the best one to use is llvm60. dbn: Missing dependency! We have llvm38 in ports, but I think the best one to use is llvm60. | |||||
danfeUnsubmitted Not Done Inline ActionsProbably had to be revised again, those LLVM dependencies are fast moving targets, quite unfortunately. danfe: Probably had to be revised again, those LLVM dependencies are fast moving targets, quite… | |||||
LIB_DEPENDS= libcurl.so:ftp/curl \ | |||||
libgssapi_krb5.so:security/krb5 \ | |||||
dbnUnsubmitted Not Done Inline ActionsThis seems to be picking up base libgssapi_krb5.so instead of port libgssapi_krb5.so dbn: This seems to be picking up base `libgssapi_krb5.so` instead of port `libgssapi_krb5.so` | |||||
libunwind-x86_64.so:devel/libunwind \ | |||||
libunwind.so:devel/libunwind \ | |||||
liblttng-ust.so:sysutils/lttng-ust | |||||
USES= gettext-runtime | |||||
dbnUnsubmitted Not Done Inline ActionsYou need USES=ssl. Please make sure you have DEVELOPER=yes set in /etc/make.conf dbn: You need `USES=ssl`. Please make sure you have `DEVELOPER=yes` set in `/etc/make.conf` | |||||
USE_GITHUB= yes | |||||
GH_ACCOUNT= dotnet | |||||
GH_PROJECT= core-setup | |||||
Not Done Inline ActionsWrong place in the Makefile. See Chapter 15. Order of Variables in Port Makefiles. mat: Wrong place in the Makefile. See [[ https://www.freebsd.org/doc/en/books/porters… | |||||
GH_TAGNAME= 2ad3de5 | |||||
GH_TUPLE= dotnet:coreclr:5d34cc6:coreclr/external/coreclr \ | |||||
dotnet:corefx:c7f7b5b:corefx/external/corefx | |||||
Not Done Inline ActionsWrong place in the Makefile. See Chapter 15. Order of Variables in Port Makefiles. mat: Wrong place in the Makefile. See [[ https://www.freebsd.org/doc/en/books/porters… | |||||
OPTIONS_SINGLE= GSSAPI | |||||
OPTIONS_SINGLE_GSSAPI= GSSAPI_MIT | |||||
Not Done Inline ActionsDo not use GH_TUPLE for the default distfile, split it up with GH_ACCOUNT/PROJECT/TAGNAME. mat: Do not use GH_TUPLE for the default distfile, split it up with GH_ACCOUNT/PROJECT/TAGNAME. | |||||
GSSAPI_MIT_USES= gssapi:mit | |||||
GSSAPI_MIT_CONFIGURE_ON= --with-gssapi=${GSSAPIBASEDIR} ${GSSAPI_CONFIGURE_ARGS} | |||||
Not Done Inline ActionsAdd a comment why. mat: Add a comment why. | |||||
BUILD_CONFIGURATION= release | |||||
RUNTIME_VERSION= 2.2.0-preview1-26620-03 | |||||
CORE_SETUP_VERSION= 2.0.0 | |||||
CORE_SETUP_COMMIT_HASH= 2ad3de577c6552be4a06fa0c6b7313ad8b57fc41 | |||||
.include <bsd.port.pre.mk> | |||||
.if ${ARCH} == i386 | |||||
CORE_SETUP_ARCH= x86 | |||||
.elif ${ARCH} == amd64 | |||||
CORE_SETUP_ARCH= x64 | |||||
.endif | |||||
do-build: | |||||
(cd ${WRKSRC} && \ | |||||
src/corehost/build.sh \ | |||||
--configuration ${BUILD_CONFIGURATION} \ | |||||
--hostver "${CORE_SETUP_VERSION}" \ | |||||
--arch "${CORE_SETUP_ARCH}" \ | |||||
dbnUnsubmitted Not Done Inline ActionsIf you instead ${ARCH:S/i386/x86/:S/amd64/x64/} then you can avoid needing to bring in bsd.port.pre.mk dbn: If you instead `${ARCH:S/i386/x86/:S/amd64/x64/}` then you can avoid needing to bring in `bsd. | |||||
--apphostver "${CORE_SETUP_VERSION}" \ | |||||
--fxrver "${CORE_SETUP_VERSION}" \ | |||||
--policyver "${CORE_SETUP_VERSION}" \ | |||||
--commithash ${CORE_SETUP_COMMIT_HASH}) | |||||
(cd ${WRKSRC}/external/coreclr && \ | |||||
./build.sh -clang3.9 -skipmscorlib -${BUILD_CONFIGURATION}) | |||||
dbnUnsubmitted Not Done Inline ActionsI think you need to add ${SETENV} LLVM_HOME=${LOCALBASE}/llvm60 before calling ./build.sh: lldbplugin hardcodes FreeBSD paths to clang 3.8 and 3.9. This is incorrect as it
Setting LLVM_HOME avoids the above problems. dbn: I think you need to add `${SETENV} LLVM_HOME=${LOCALBASE}/llvm60` before calling `./build.sh`… | |||||
(cd ${WRKSRC}/external/corefx && \ | |||||
src/Native/build-native.sh -clang3.9 -${BUILD_CONFIGURATION}) | |||||
do-install: | |||||
${MKDIR} ${STAGEDIR}${PREFIX}/share/dotnet/shared | |||||
(cd ${WRKDIR}/shared && \ | |||||
${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/share/dotnet/shared) | |||||
${INSTALL_PROGRAM} ${WRKDIR}/shared/Microsoft.NETCore.App/${RUNTIME_VERSION}/createdump ${STAGEDIR}${PREFIX}/share/dotnet/shared/Microsoft.NETCore.App/${RUNTIME_VERSION} | |||||
(cd ${WRKSRC}/cli/dll && \ | |||||
${INSTALL_LIB} libhostpolicy.so ${STAGEDIR}${PREFIX}/share/dotnet/shared/Microsoft.NETCore.App/${RUNTIME_VERSION}) | |||||
(cd ${WRKSRC}/cli/exe/dotnet && \ | |||||
${INSTALL_PROGRAM} dotnet ${STAGEDIR}${PREFIX}/share/dotnet) | |||||
${MKDIR} ${STAGEDIR}${PREFIX}/share/dotnet/host/fxr/${RUNTIME_VERSION} | |||||
(cd ${WRKSRC}/cli/fxr && \ | |||||
${INSTALL_LIB} libhostfxr.so ${STAGEDIR}${PREFIX}/share/dotnet/host/fxr/${RUNTIME_VERSION}) | |||||
${INSTALL_LIB} ${WRKSRC}/external/coreclr/bin/Product/FreeBSD.x64.Release/*.so ${STAGEDIR}${PREFIX}/share/dotnet/shared/Microsoft.NETCore.App/${RUNTIME_VERSION} | |||||
${INSTALL_DATA} ${WRKSRC}/external/coreclr/bin/Product/FreeBSD.x64.Release/System.Globalization.Native.a ${STAGEDIR}${PREFIX}/share/dotnet/shared/Microsoft.NETCore.App/${RUNTIME_VERSION} | |||||
${INSTALL_PROGRAM} ${WRKSRC}/external/coreclr/bin/Product/FreeBSD.x64.Release/corerun ${STAGEDIR}${PREFIX}/share/dotnet/shared/Microsoft.NETCore.App/${RUNTIME_VERSION} | |||||
${INSTALL_PROGRAM} ${WRKSRC}/external/coreclr/bin/Product/FreeBSD.x64.Release/crossgen ${STAGEDIR}${PREFIX}/share/dotnet/shared/Microsoft.NETCore.App/${RUNTIME_VERSION} | |||||
${CP} ${STAGEDIR}${PREFIX}/share/dotnet/dotnet ${STAGEDIR}${PREFIX}/share/dotnet/shared/Microsoft.NETCore.App/${RUNTIME_VERSION}/corehost | |||||
${INSTALL_LIB} ${WRKSRC}/external/corefx/bin/FreeBSD.x64.Release/native/*.so ${STAGEDIR}${PREFIX}/share/dotnet/shared/Microsoft.NETCore.App/${RUNTIME_VERSION} | |||||
${INSTALL_DATA} ${WRKSRC}/external/corefx/bin/FreeBSD.x64.Release/native/*.a ${STAGEDIR}${PREFIX}/share/dotnet/shared/Microsoft.NETCore.App/${RUNTIME_VERSION} | |||||
${INSTALL_MAN} ${WRKDIR}/LICENSE.txt ${STAGEDIR}${PREFIX}/share/dotnet | |||||
${INSTALL_MAN} ${WRKDIR}/ThirdPartyNotices.txt ${STAGEDIR}${PREFIX}/share/dotnet | |||||
${INSTALL_MAN} ${WRKSRC}/external/coreclr/bin/Product/FreeBSD.x64.Release/sosdocsunix.txt ${STAGEDIR}${PREFIX}/share/dotnet/shared/Microsoft.NETCore.App/${RUNTIME_VERSION} | |||||
${RLN} ${STAGEDIR}${PREFIX}/share/dotnet/dotnet ${STAGEDIR}${PREFIX}/bin/dotnet | |||||
.include <bsd.port.post.mk> |
This port conflicts with linux-dotnet*