mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-28 10:08:24 +00:00
1da3310ac1
Highlights: - New Roslyn compiler for C# available - Improved support for nuget packages in USES=mono General: - fix pkg-plist: mono now produces '.pdb' debug files instead of '.mdb' - bump all dependant ports USES=mono: - properly handle caching of nuget packages - add support for multiple feeds for nuget packages - add support for nuget dependencies in a separate file - add support for paket packages lang/mono: - update to version 5.2.0.215 - automate certificate initialisation [2] - increase test coverage - mark as conflicting with net/czmq (conflicting on makecert) [1] - patch mono to use $PREFIX/share/mono instead of /usr/share/.mono devel/google-gdata: - use nunit.framework nuget package as the Mono shipped version is no longer suppport. - switch to using csc(1) for compiling (mcs(1) is depreciated). - use delayed signing (and then sign with sn(1)) as csc(1) does not support signing. - fix reference to system assemblies (the '.dll' suffix is required). - fix reference to HttpUtility: csc(1) is more strict about scoping devel/monodevelop: - reroll distinfo (no changes to content) lang/fsharp: - reroll distinfo (no changes to content) security/gnome-keyring-sharp: - delay sign (then sign with sn(1)) as csc(1) does not support direct signing. PR: 223188 [1] PR: 209670 [2] Differential Revision: https://reviews.freebsd.org/D13752
123 lines
4.5 KiB
Makefile
123 lines
4.5 KiB
Makefile
# Created by: Yukihiro Nakai <nakai@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mono
|
|
PORTVERSION= 5.2.0.215
|
|
DISTVERSIONPREFIX= mono-
|
|
CATEGORIES= lang
|
|
|
|
MAINTAINER= mono@FreeBSD.org
|
|
COMMENT= Open source implementation of .NET Development Framework
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
ONLY_FOR_ARCHS= amd64 armv6 armv7 i386 powerpc
|
|
BROKEN_armv6= fails to compile: mono/arch/arm/arm-codegen.h:947:10: fatal error: 'mono/arch/arm/arm_dpimacros.h' file not found
|
|
BROKEN_armv7= fails to compile: mono/arch/arm/arm-codegen.h:947:10: fatal error: 'mono/arch/arm/arm_dpimacros.h' file not found
|
|
|
|
BUILD_DEPENDS= p5-XML-Parser>=0:textproc/p5-XML-Parser \
|
|
bash:shells/bash
|
|
LIB_DEPENDS= libinotify.so:devel/libinotify
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>=0:graphics/py-pillow@${PY_FLAVOR} \
|
|
ca_root_nss>=0:security/ca_root_nss
|
|
|
|
CONFLICTS_INSTALL= czmq-3*
|
|
|
|
OPTIONS_DEFINE= ACCEPTANCE_TESTS MONOLITE
|
|
OPTIONS_DEFAULT= MONOLITE
|
|
|
|
ACCEPTANCE_TESTS_DESC= Download and run the .Net acceptance tests
|
|
ACCEPTANCE_TESTS_DISTFILES=nuget.31.zip:nuget31
|
|
ACCEPTANCE_TESTS_GH_TUPLE=xamarin:benchmarker:97f618c:12/acceptance-tests/external/benchmarker \
|
|
dotnet:coreclr:c7da48a:13/acceptance-tests/external/coreclr \
|
|
dotnet:roslyn:322bd5b:14/acceptance-tests/external/roslyn
|
|
ACCEPTANCE_TESTS_MASTER_SITES=https://dotnetci.blob.core.windows.net/roslyn/:nuget31
|
|
ACCEPTANCE_TESTS_TEST_DEPENDS=bash:shells/bash \
|
|
referenceassemblies-pcl>=4.6:lang/referenceassemblies-pcl
|
|
ACCEPTANCE_TESTS_VARS= SHEBANG_FILES+=${WRKSRC}/acceptance-tests/external/roslyn/cibuild.sh
|
|
|
|
MONOLITE_DESC= Use monolite to bootstrap mcs (otherwise use installed mcs)
|
|
MONOLITE_DISTFILES= monolite-${MONOLITE_VERSION}-latest.tar.gz:monolite
|
|
MONOLITE_MASTER_SITES= http://download.mono-project.com/monolite/:monolite
|
|
MONOLITE_VERSION= 1050200001
|
|
|
|
USES= autoreconf bison compiler:c11 cpe gettext gmake iconv libtool pathfix \
|
|
perl5 python shebangfix tar:bzip2
|
|
USE_GNOME= glib20
|
|
USE_PERL5= build
|
|
GNU_CONFIGURE= yes
|
|
USE_LDCONFIG= yes
|
|
LLD_UNSAFE= yes
|
|
SHEBANG_FILES= scripts/mono-heapviz
|
|
|
|
USE_GITHUB= yes
|
|
GH_TUPLE= mono:Lucene.Net.Light:85978b7:1/external/Lucene.Net.Light \
|
|
mono:NUnitLite:690603b:19/external/nunit-lite \
|
|
mono:Newtonsoft.Json:471c3e0:2/external/Newtonsoft.Json \
|
|
mono:NuGet.BuildTasks:8d30747:3/external/nuget-buildtasks \
|
|
mono:aspnetwebstack:e77b12e:4/external/aspnetwebstack \
|
|
mono:buildtools:b5cc6e6:5/external/buildtools \
|
|
mono:cecil:1003fcb:6/external/cecil \
|
|
mono:cecil:33d50b8:7/external/cecil-legacy \
|
|
mono:corefx:78360b2:17/external/corefx \
|
|
mono:corert:ed6296d:16/external/corert \
|
|
mono:ikdasm:88b67c4:8/external/ikdasm \
|
|
mono:ikvm-fork:7c1e61b:9/external/ikvm \
|
|
mono:linker:c7450ca:18/external/linker \
|
|
mono:reference-assemblies:142cbeb:10/external/binary-reference-assemblies \
|
|
mono:roslyn-binaries:dcb0a05:15/external/roslyn-binaries \
|
|
mono:rx:b29a4b0:11/external/rx
|
|
|
|
CONFIGURE_ARGS= --disable-dtrace
|
|
CONFIGURE_ENV= ac_cv_header_sys_inotify_h=no
|
|
|
|
MAKE_ENV= MONO_SHARED_DIR="${WRKDIR}" \
|
|
INSTALL_STRIP_FLAG="${STRIP}" \
|
|
TZ=UTC
|
|
|
|
TEST_TARGET= check
|
|
|
|
PORTSCOUT= limit:^\d+\.\d+\.[1-9]\d*
|
|
|
|
LOCALBASE?= /usr/local
|
|
.if !exists(${LOCALBASE}/bin/mcs)
|
|
OPTIONS_SLAVE= MONOLITE
|
|
.endif
|
|
|
|
post-extract-MONOLITE-on:
|
|
${MKDIR} ${WRKSRC}/mcs/class/lib/monolite
|
|
${MV} ${WRKDIR}/monolite-${MONOLITE_VERSION}-latest ${WRKSRC}/mcs/class/lib/monolite/${MONOLITE_VERSION}
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's|^#!/bin/bash|#!/usr/bin/env bash|g' \
|
|
${WRKSRC}/scripts/mono-find-provides.in \
|
|
${WRKSRC}/scripts/mono-find-requires.in \
|
|
${WRKSRC}/scripts/mono-test-install
|
|
${FIND} ${WRKSRC} -name '*.sh' | ${XARGS} ${REINPLACE_CMD} \
|
|
-e 's|^#!/bin/bash|#!/bin/sh|g'
|
|
${SED} 's/tarball/${PORTVERSION}/' ${WRKSRC}/mono/mini/Makefile.am.in \
|
|
> ${WRKSRC}/mono/mini/Makefile.am
|
|
${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}|g' \
|
|
${WRKSRC}/mcs/class/corlib/System/Environment.cs \
|
|
${WRKSRC}/external/corefx/src/System.Runtime.Extensions/src/System/Environment.Unix.cs
|
|
${REINPLACE_CMD} -e 's|/usr/share/.mono|${PREFIX}/share/mono|g' \
|
|
${WRKSRC}/man/mono-configuration-crypto.1 \
|
|
${WRKSRC}/man/mono.1 \
|
|
${WRKSRC}/man/mozroots.1
|
|
|
|
post-patch-ACCEPTANCE_TESTS-on:
|
|
${REINPLACE_CMD} -E -e 's!(~/|/tmp/)!${WRKDIR}/!g' -e '/git clean/d' \
|
|
${WRKSRC}/acceptance-tests/external/roslyn/cibuild.sh
|
|
${TOUCH} ${WRKDIR}/nuget.31.zip
|
|
|
|
post-configure:
|
|
${REINPLACE_CMD} -e 's|share\/man|man|g' \
|
|
${WRKSRC}/mcs/jay/Makefile
|
|
|
|
do-test-ACCEPTANCE_TESTS-on:
|
|
@(cd ${WRKSRC}/acceptance-tests; \
|
|
${DO_MAKE_TEST} check-full IGNORE_BENCHMARKER_VERSION=1 IGNORE_CORECLR_VERSION=1 IGNORE_ROSLYN_VERSION=1)
|
|
|
|
.include <bsd.port.mk>
|