aboutsummaryrefslogtreecommitdiff
path: root/lang/mono/Makefile
blob: 7d7dccfb4f33ef7acfbf2fc01ae21d3b2b093b14 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# New ports collection makefile for:   mono
# Date created:        22 July 2002
# Whom:                Yukihiro Nakai <nakai@FreeBSD.org>
#
# $Id: Makefile,v 1.20 2005/02/23 23:26:44 tmclau02 Exp $
# $FreeBSD$
#

PORTNAME=	mono
PORTVERSION=	1.0.6
CATEGORIES=	lang
MASTER_SITES=	http://www.go-mono.com/archive/${PORTVERSION}/

MAINTAINER=	bsd-sharp-list@forge.novell.com
COMMENT=	An open source implementation of .NET Development Framework

CONFLICTS=	mono-devel-*

USE_REINPLACE=	yes
USE_BISON=	yes
USE_GNOME=	gnomehack glib20
USE_GMAKE=	yes
LIBTOOLFILES=	configure libgc/configure
USE_LIBTOOL_VER=15
INSTALLS_SHLIB=	yes
CONFIGURE_ENV=	PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
		PTHREAD_LIBS="${PTHREAD_LIBS}"
CONFIGURE_ARGS=	--program-transform-name=\'\' \
		--with-gc=included \
		--with-tls=pthread

MAN1=		cert2spc.1 certmgr.1 chktrust.1 cilc.1 disco.1 gacutil.1 \
		genxs.1 ilasm.1 makecert.1 mcs.1 mint.1 mono.1 \
		monoburg.1 monodis.1 monop.1 monostyle.1 oldmono.1 secutil.1 \
		setreg.1 signcode.1 sn.1 soapsuds.1 sqlsharp.1 wsdl.1 xsd.1
MAN5=		mono-config.5

ONLY_FOR_ARCHS=	i386

MAKE_ENV=MONO_SHARED_DIR=${WRKDIR}

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
EXTRA_PATCHES=	${FILESDIR}/extra-patch-signbit
.elif ${OSVERSION} < 503000
IGNORE=	"Does not work on 5.X before 503000"
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|%%X11BASE%%|${X11BASE}|g' \
		${WRKSRC}/mono/metadata/assembly.c

pre-su-install:
	${MKDIR} ${X11BASE}/lib/mono/gac

.include <bsd.port.post.mk>