Update lang/seed7 to version 05.20160430
[dports.git] / lang / mono / Makefile
1 # Created by: Yukihiro Nakai <nakai@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       mono
5 PORTVERSION=    4.2.3.4
6 CATEGORIES=     lang
7 MASTER_SITES=   http://download.mono-project.com/sources/${PORTNAME}/
8
9 PATCHFILES=
10 PATCH_SITES=    https://github.com/mono/mono/commit/
11 PATCH_DIST_STRIP=-p1
12
13 MAINTAINER=     mono@FreeBSD.org
14 COMMENT=        Open source implementation of .NET Development Framework
15
16 BUILD_DEPENDS=  p5-XML-Parser>=0:textproc/p5-XML-Parser \
17                 bash:shells/bash
18
19 USES=           bison compiler:c11 cpe gettext gmake iconv libtool pathfix perl5 tar:bzip2
20 USE_GNOME=      glib20
21 USE_PERL5=      build
22 GNU_CONFIGURE=  yes
23 USE_LDCONFIG=   yes
24 WRKSRC=         ${WRKDIR}/mono-${PORTVERSION:R}
25
26 CONFIGURE_ARGS= --disable-dtrace
27
28 CONFIGURE_ENV=  ac_cv_header_sys_inotify_h=no
29
30 # Set location for .wapi creation.
31 MONO_SHARED_DIR=${WRKDIR}
32
33 # LC_ALL is set in order to work around issues people are having when using
34 # other languages.  This has shown itself in build fails and possibly other
35 # strange crashes.
36 MAKE_ENV=       MONO_SHARED_DIR="${MONO_SHARED_DIR}" \
37                 INSTALL_STRIP_FLAG="${STRIP}" \
38                 LC_ALL=C TZ=UTC
39
40 ONLY_FOR_ARCHS= i386 amd64 powerpc
41
42 post-patch:
43         @${REINPLACE_CMD} -e 's|^#!/bin/bash|#!/usr/bin/env bash|g' \
44                 ${WRKSRC}/scripts/mono-find-provides.in \
45                 ${WRKSRC}/scripts/mono-find-requires.in \
46                 ${WRKSRC}/scripts/mono-test-install
47         @${FIND} ${WRKSRC} -name '*.sh' | ${XARGS} ${REINPLACE_CMD} \
48                 -e 's|^#!/bin/bash|#!/bin/sh|g'
49         @${REINPLACE_CMD} 's/isinf (1)/isinf (1.0)/g' ${WRKSRC}/configure
50
51 tests: build
52         @${ECHO_MSG} "===> Running mono regression tests"
53         @(cd ${WRKSRC}/mono/tests && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \
54                 ${MAKE_FLAGS} Makefile ${MAKE_ARGS} check)
55
56 post-configure:
57         @${REINPLACE_CMD} -e 's|share\/man|man|g' \
58                 ${WRKSRC}/mcs/jay/Makefile
59
60 .include <bsd.port.mk>