View | Details | Raw Unified | Return to bug 251795 | Differences between
and this patch

Collapse All | Expand All

(-)lang/mono/Makefile (-85 / +4 lines)
Lines 1-95 Link Here
1
# Created by: Yukihiro Nakai <nakai@FreeBSD.org>
2
# $FreeBSD$
1
# $FreeBSD$
3
2
4
PORTNAME=	mono
3
PORTNAME=	mono
5
PORTVERSION=	5.10.1.57
4
PORTVERSION=	${MONO_DEFAULT}
6
PORTREVISION=	3
7
CATEGORIES=	lang
5
CATEGORIES=	lang
8
MASTER_SITES=	https://download.mono-project.com/sources/mono/
9
DISTFILES=	${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
10
6
11
MAINTAINER=	mono@FreeBSD.org
7
MAINTAINER=	mono@FreeBSD.org
12
COMMENT=	Open source implementation of .NET Development Framework
8
COMMENT=	Meta-port for the default version of the Mono language
13
9
14
LICENSE=	MIT
10
RUN_DEPENDS=	mono:lang/mono${MONO_DEFAULT}
15
LICENSE_FILE=	${WRKSRC}/LICENSE
16
11
17
ONLY_FOR_ARCHS=		amd64 armv6 armv7 i386 powerpc
12
USES=		metaport
18
13
19
BUILD_DEPENDS=	p5-XML-Parser>=0:textproc/p5-XML-Parser \
20
		bash:shells/bash \
21
		cmake>0:devel/cmake
22
LIB_DEPENDS=	libinotify.so:devel/libinotify
23
RUN_DEPENDS=	${PY_PILLOW} \
24
		ca_root_nss>=0:security/ca_root_nss
25
26
CONFLICTS_INSTALL=	czmq-3*
27
28
OPTIONS_DEFINE=		MONOLITE NLS X11
29
OPTIONS_DEFAULT=	MONOLITE X11
30
OPTIONS_SUB=	yes
31
32
MONOLITE_DESC=		Use monolite to bootstrap mcs (otherwise use installed mcs)
33
MONOLITE_DISTFILES=	monolite-linux-${MONOLITE_VERSION}-latest.tar.gz:monolite
34
MONOLITE_MASTER_SITES=	http://download.mono-project.com/monolite/:monolite
35
MONOLITE_VERSION=	1051000004
36
37
NLS_CONFIGURE_OFF=	--disable-nls
38
NLS_USES=	gettext
39
40
X11_USES=	display:test
41
42
USES=	autoreconf bison compiler:c11 cpe gmake iconv libtool \
43
	pathfix perl5 python shebangfix tar:bzip2
44
USE_PERL5=	build
45
GNU_CONFIGURE=	yes
46
USE_LDCONFIG=	yes
47
SHEBANG_FILES=	scripts/mono-heapviz mono/mini/genmdesc.py mono/tests/test_lldb.py
48
BINARY_ALIAS=	python=${PYTHON_CMD}
49
50
CONFIGURE_ARGS=	--disable-dtrace --enable-btls
51
CONFIGURE_ENV=	ac_cv_header_sys_inotify_h=no
52
53
MAKE_ENV=	MONO_SHARED_DIR="${WRKDIR}" \
54
		INSTALL_STRIP_FLAG="${STRIP}" \
55
		TZ=UTC
56
57
TEST_ARGS=	-k
58
TEST_TARGET=	check
59
60
PORTSCOUT=	limit:^\d+\.\d+\.[1-9]\d*
61
62
LOCALBASE?=	/usr/local
63
.if !exists(${LOCALBASE}/bin/mcs)
64
OPTIONS_SLAVE=	MONOLITE
65
.endif
66
67
post-extract-MONOLITE-on:
68
	${MKDIR} ${WRKSRC}/mcs/class/lib/monolite-linux
69
	${MV} ${WRKDIR}/monolite-linux-${MONOLITE_VERSION}-latest ${WRKSRC}/mcs/class/lib/monolite-linux/${MONOLITE_VERSION}
70
71
post-patch:
72
	${REINPLACE_CMD} -e 's|^#!/bin/bash|#!/usr/bin/env bash|g' \
73
		${WRKSRC}/scripts/mono-find-provides.in \
74
		${WRKSRC}/scripts/mono-find-requires.in \
75
		${WRKSRC}/scripts/mono-test-install
76
	${FIND} ${WRKSRC} -name '*.sh' | ${XARGS} ${REINPLACE_CMD} \
77
		-e 's|^#!/bin/bash|#!/bin/sh|g'
78
	${SED} 's/tarball/${PORTVERSION}/' ${WRKSRC}/mono/mini/Makefile.am.in \
79
		> ${WRKSRC}/mono/mini/Makefile.am
80
	${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}|g' \
81
		${WRKSRC}/mcs/class/corlib/System/Environment.cs \
82
		${WRKSRC}/external/corefx/src/System.Runtime.Extensions/src/System/Environment.Unix.cs
83
	${REINPLACE_CMD} -e 's|/usr/share/.mono|${PREFIX}/share/mono|g' \
84
		${WRKSRC}/man/mono-configuration-crypto.1 \
85
		${WRKSRC}/man/mono.1 \
86
		${WRKSRC}/man/mozroots.1
87
88
post-configure:
89
	${REINPLACE_CMD} -e 's|share\/man|man|g' \
90
		${WRKSRC}/mcs/jay/Makefile
91
92
post-install:
93
	${MKDIR} ${STAGEDIR}${PREFIX}/mono
94
95
.include <bsd.port.mk>
14
.include <bsd.port.mk>

Return to bug 251795