1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/lang/mono/Makefile
Baptiste Daroussin 28ec87158b Convert to USES=libtool
Use USES=compiler:c11 to enforce modern compiler (and clang version > 3.3)
Drop printing pkg-message it is done automatically by stage
Sharpen the sed on configure to fix in case of isinf it was making __thread testing hanging
Remove useless include of bsd.mono.mk
2014-05-26 12:55:44 +00:00

62 lines
1.9 KiB
Makefile

# Created by: Yukihiro Nakai <nakai@FreeBSD.org>
# $FreeBSD$
PORTNAME= mono
PORTVERSION= 3.4.0
PORTREVISION= 1
CATEGORIES= lang
MASTER_SITES= http://download.mono-project.com/sources/${PORTNAME}/
MAINTAINER= mono@FreeBSD.org
COMMENT= Open source implementation of .NET Development Framework
BUILD_DEPENDS= p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser \
bash:${PORTSDIR}/shells/bash
USES= bison compiler:c11 gettext gmake iconv libtool pathfix perl5 tar:bzip2
USE_GNOME= glib20
USE_PERL5= build
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
# Moonlight is installed as part of www/moonlight
CONFIGURE_ARGS= --with-moonlight=no --disable-dtrace
CONFIGURE_ENV= ac_cv_header_sys_inotify_h=no
# Set location for .wapi creation.
MONO_SHARED_DIR=${WRKDIR}
# LC_ALL is set in order to work around issues people are having when using
# other languages. This has shown itself in build fails and possibly other
# strange crashes.
MAKE_ENV= MONO_SHARED_DIR="${MONO_SHARED_DIR}" \
INSTALL_STRIP_FLAG="${STRIP}" \
LC_ALL=C
ONLY_FOR_ARCHS= i386 amd64 powerpc
post-patch:
@${REINPLACE_CMD} -e 's|^#!/bin/bash|#!/bin/sh|g' \
${WRKSRC}/mcs/class/Managed.Windows.Forms/build-csproj \
${WRKSRC}/mcs/class/Managed.Windows.Forms/build-csproj2k5 \
${WRKSRC}/mcs/class/Mono.WebBrowser/build-csproj2k5
@${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'
@${REINPLACE_CMD} 's/isinf (1)/isinf (1.0)/g' ${WRKSRC}/configure
tests: build
@${ECHO_MSG} "===> Running mono regression tests"
@(cd ${WRKSRC}/mono/tests && ${SETENV} ${MAKE_ENV} ${GMAKE} \
${MAKE_FLAGS} Makefile ${MAKE_ARGS} test)
post-configure:
@${REINPLACE_CMD} -e 's|share\/man|man|g' \
${WRKSRC}/mcs/jay/Makefile
.include <bsd.port.mk>