2002-07-22 13:41:43 +00:00
|
|
|
# New ports collection makefile for: mono
|
|
|
|
# Date created: 22 July 2002
|
|
|
|
# Whom: Yukihiro Nakai <nakai@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2009-02-09 09:00:01 +00:00
|
|
|
# $Id: Makefile,v 1.98 2007/12/13 19:31:45 killfill Exp $
|
2002-07-22 13:41:43 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mono
|
2010-01-01 21:53:13 +00:00
|
|
|
PORTVERSION= 2.4.3.1
|
2010-02-01 17:21:01 +00:00
|
|
|
PORTREVISION= 1
|
2002-07-22 13:41:43 +00:00
|
|
|
CATEGORIES= lang
|
2009-06-22 07:55:50 +00:00
|
|
|
MASTER_SITES= http://ftp.novell.com/pub/mono/sources/${PORTNAME}/
|
2002-07-22 13:41:43 +00:00
|
|
|
|
2009-02-09 09:00:01 +00:00
|
|
|
MAINTAINER= mono@FreeBSD.org
|
2003-02-26 02:28:59 +00:00
|
|
|
COMMENT= An open source implementation of .NET Development Framework
|
2005-02-27 04:27:54 +00:00
|
|
|
|
2009-02-09 09:00:01 +00:00
|
|
|
BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser
|
2002-07-22 13:41:43 +00:00
|
|
|
|
2007-10-23 03:19:04 +00:00
|
|
|
USE_BZIP2= yes
|
2008-09-23 13:24:20 +00:00
|
|
|
USE_BISON= build
|
2004-11-26 05:44:10 +00:00
|
|
|
USE_GNOME= gnomehack glib20
|
2003-10-06 17:55:54 +00:00
|
|
|
USE_GMAKE= yes
|
2009-08-02 19:36:34 +00:00
|
|
|
USE_AUTOTOOLS= libtool:22
|
2009-02-09 09:00:01 +00:00
|
|
|
USE_PERL5_BUILD= yes
|
2004-11-26 05:44:10 +00:00
|
|
|
LIBTOOLFILES= configure libgc/configure
|
2006-02-23 10:40:44 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2007-02-04 22:31:15 +00:00
|
|
|
USE_LDCONFIG= yes
|
2004-07-14 16:40:17 +00:00
|
|
|
CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
|
|
|
PTHREAD_LIBS="${PTHREAD_LIBS}"
|
2007-02-19 04:41:07 +00:00
|
|
|
MAKE_ARGS= EXTERNAL_MCS=false
|
2009-07-17 10:32:22 +00:00
|
|
|
USE_GETTEXT= yes
|
2010-02-04 11:23:36 +00:00
|
|
|
MAKE_JOBS_UNSAFE=yes
|
2009-07-17 10:32:22 +00:00
|
|
|
|
|
|
|
OPTIONS= MOON "Enable Moonlight Profile (2.1 Alpha)" on
|
2002-07-22 13:41:43 +00:00
|
|
|
|
2007-02-25 02:12:20 +00:00
|
|
|
# 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.
|
2009-02-09 09:00:01 +00:00
|
|
|
MAKE_ENV= MONO_SHARED_DIR="${MONO_SHARED_DIR}" \
|
|
|
|
LC_ALL=C
|
2007-02-25 02:12:20 +00:00
|
|
|
|
2009-12-06 19:47:18 +00:00
|
|
|
ONLY_FOR_ARCHS= i386 amd64 powerpc
|
2009-07-11 16:53:16 +00:00
|
|
|
|
|
|
|
MAN1= al.1 cert2spc.1 certmgr.1 chktrust.1 cilc.1 csharp.1 disco.1 \
|
2009-12-24 09:34:40 +00:00
|
|
|
dtd2xsd.1 gacutil.1 genxs.1 httpcfg.1 ilasm.1 jay.1 lc.1 \
|
|
|
|
macpack.1 makecert.1 mconfig.1 mcs.1 mdassembler.1 \
|
|
|
|
mdoc-assemble.1 mdoc-export-html.1 mdoc-export-msxdoc.1 \
|
|
|
|
mdoc-update.1 mdoc-validate.1 mdoc.1 mdvalidater.1 mint.1 \
|
|
|
|
mkbundle.1 mono-cil-strip.1 mono-service.1 mono-shlib-cop.1 \
|
2009-07-11 16:53:16 +00:00
|
|
|
mono-xmltool.1 mono.1 monodis.1 monodocer.1 monodocs2html.1 \
|
|
|
|
monolinker.1 monop.1 monostyle.1 mozroots.1 oldmono.1 \
|
|
|
|
permview.1 prj2make.1 resgen.1 secutil.1 setreg.1 sgen.1 \
|
2009-12-24 09:34:40 +00:00
|
|
|
signcode.1 sn.1 soapsuds.1 sqlsharp.1 wsdl.1 xbuild.1 xsd.1
|
2009-07-11 16:53:16 +00:00
|
|
|
MAN5= mdoc.5 mono-config.5
|
2002-07-22 13:41:43 +00:00
|
|
|
|
2003-10-07 03:33:38 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-10-23 03:19:04 +00:00
|
|
|
.if ${ARCH} == "amd64"
|
2009-02-09 09:00:01 +00:00
|
|
|
MAKE_ARGS+= MONO_GENERIC_SHARING=none #https://bugzilla.novell.com/show_bug.cgi?id=434457
|
2007-10-23 03:19:04 +00:00
|
|
|
.endif
|
|
|
|
|
2009-07-17 10:32:22 +00:00
|
|
|
.if defined(WITH_MOON) && !defined(WITHOUT_MOON)
|
|
|
|
CONFIGURE_ARGS+= --with-moonlight
|
|
|
|
PLIST_SUB+= MOON=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-moonlight
|
|
|
|
PLIST_SUB+= MOON="@comment "
|
|
|
|
.endif
|
|
|
|
|
2005-11-10 04:17:26 +00:00
|
|
|
pre-everything::
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2004-11-26 05:44:10 +00:00
|
|
|
post-patch:
|
2007-10-23 03:19:04 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|libgamin-1.so.0|libgamin-1.so.1|g' \
|
|
|
|
${WRKSRC}/mcs/class/System/System.IO/FAMWatcher.cs
|
|
|
|
@${REINPLACE_CMD} -e 's|^#!/bin/bash|#!/bin/sh|g' \
|
|
|
|
${WRKSRC}/mcs/class/Managed.Windows.Forms/build-csproj \
|
2009-02-09 09:00:01 +00:00
|
|
|
${WRKSRC}/mcs/class/Managed.Windows.Forms/build-csproj2k5 \
|
|
|
|
${WRKSRC}/mcs/class/Mono.WebBrowser/build-csproj2k5 \
|
|
|
|
${WRKSRC}/mcs/class/Mono.Cairo/Samples/gtk/compile.sh \
|
|
|
|
${WRKSRC}/mcs/class/Mono.Cairo/Samples/png/compile.sh \
|
|
|
|
${WRKSRC}/mcs/class/Mono.Cairo/Samples/win32/compile.sh \
|
|
|
|
${WRKSRC}/mcs/class/Mono.Cairo/Samples/x11/compile.sh
|
2004-11-26 05:44:10 +00:00
|
|
|
|
2005-07-10 21:37:13 +00:00
|
|
|
tests: build
|
|
|
|
@${ECHO_MSG} "===> Running mono regression tests"
|
|
|
|
@(cd ${WRKSRC}/mono/tests && ${SETENV} ${MAKE_ENV} ${GMAKE} \
|
|
|
|
${MAKE_FLAGS} Makefile ${MAKE_ARGS} test)
|
|
|
|
|
2006-02-19 06:14:39 +00:00
|
|
|
post-configure:
|
2007-10-23 03:19:04 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|share\/man|man|g' \
|
2006-02-19 06:14:39 +00:00
|
|
|
${WRKSRC}/mcs/jay/Makefile
|
|
|
|
|
2007-10-23 03:19:04 +00:00
|
|
|
.include "${.CURDIR}/../../lang/mono/bsd.mono.mk"
|
2003-10-07 03:33:38 +00:00
|
|
|
.include <bsd.port.post.mk>
|