1 # Created by: Yukihiro Nakai <nakai@FreeBSD.org>
7 MASTER_SITES= http://download.mono-project.com/sources/${PORTNAME}/
10 PATCH_SITES= https://github.com/mono/mono/commit/
13 MAINTAINER= mono@FreeBSD.org
14 COMMENT= Open source implementation of .NET Development Framework
16 BUILD_DEPENDS= p5-XML-Parser>=0:textproc/p5-XML-Parser \
19 USES= bison compiler:c11 cpe gettext gmake iconv libtool pathfix perl5 tar:bzip2
24 WRKSRC= ${WRKDIR}/mono-${PORTVERSION:R}
26 CONFIGURE_ARGS= --disable-dtrace
28 CONFIGURE_ENV= ac_cv_header_sys_inotify_h=no
30 # Set location for .wapi creation.
31 MONO_SHARED_DIR=${WRKDIR}
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
36 MAKE_ENV= MONO_SHARED_DIR="${MONO_SHARED_DIR}" \
37 INSTALL_STRIP_FLAG="${STRIP}" \
40 ONLY_FOR_ARCHS= i386 amd64 powerpc
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
52 @${ECHO_MSG} "===> Running mono regression tests"
53 @(cd ${WRKSRC}/mono/tests && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \
54 ${MAKE_FLAGS} Makefile ${MAKE_ARGS} check)
57 @${REINPLACE_CMD} -e 's|share\/man|man|g' \
58 ${WRKSRC}/mcs/jay/Makefile
60 .include <bsd.port.mk>