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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
|
# $NetBSD: Makefile,v 1.178 2018/07/20 03:33:51 ryoon Exp $
DISTNAME= mono-4.0.4.1
PKGREVISION= 11
CATEGORIES= lang
MASTER_SITES= http://download.mono-project.com/sources/mono/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.mono-project.com/
COMMENT= Open source implementation of the .NET Development Framework
LICENSE= mit AND gnu-gpl-v2 AND gnu-lgpl-v2 AND apache-2.0
BUILD_DEPENDS+= p5-XML-Parser-[0-9]*:../../textproc/p5-XML-Parser
CONFLICTS= pnet-[0-9]* mcsim-[0-9]* lc-[0-9]*
ALL_ENV+= MONO_SHARED_DIR=${WRKDIR:Q} PLATFORM=
WRKSRC= ${WRKDIR}/mono-4.0.4
USE_TOOLS+= bash:run bison gmake gtar msgfmt perl:run pkg-config
USE_LIBTOOL= yes
USE_LANGUAGES+= c c99 c++
EXTRACT_USING= gtar
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} --with-icu=yes
CONFIGURE_ARGS+= --with-preview=yes --with-libgdiplus=installed
CONFIGURE_ARGS+= --disable-dtrace --with-gc=none
.include "options.mk"
MAKE_FLAGS+= PERL=${PERL5:Q} mandir=${PREFIX}/${PKGMANDIR}
UNLIMIT_RESOURCES= datasize stacksize memorysize
PKGCONFIG_OVERRIDE+= mono-uninstalled.pc.in data/cecil.pc.in
PKGCONFIG_OVERRIDE+= data/dotnet.pc.in data/dotnet35.pc.in data/mint.pc.in
PKGCONFIG_OVERRIDE+= data/monodoc.pc.in
PKGCONFIG_OVERRIDE+= data/mono-cairo.pc.in data/mono-lineeditor.pc.in
PKGCONFIG_OVERRIDE+= data/mono-nunit.pc.in data/mono-options.pc.in
PKGCONFIG_OVERRIDE+= data/mono.pc.in
PKGCONFIG_OVERRIDE+= data/reactive.pc.in
PKGCONFIG_OVERRIDE+= data/system.web.extensions_1.0.pc.in
PKGCONFIG_OVERRIDE+= data/system.web.extensions.design_1.0.pc.in
PKGCONFIG_OVERRIDE+= data/system.web.mvc.pc.in data/wcf.pc.in
REPLACE_PERL+= mcs/errors/do-tests.pl mcs/tools/scan-tests.pl
REPLACE_PERL+= msvc/create-windef.pl mono/benchmark/test-driver
REPLACE_PERL+= mono/cil/make-opcodes-def.pl mono/metadata/make-bundle.pl
REPLACE_PERL+= mono/mini/genmdesc.pl mono/tests/stress-runner.pl
REPLACE_PYTHON+= scripts/mono-heapviz
REPLACE_BASH+= build-mingw32.sh mono/arch/arm/dpiops.sh mono/arch/arm/fpaops.sh
REPLACE_BASH+= mono/arch/arm/vfpops.sh mono/tests/make_imt_test.sh
REPLACE_BASH+= scripts/mono-find-provides.in scripts/mono-find-requires.in
REPLACE_BASH+= scripts/mono-test-install web/mono-build-w32.sh
REPLACE_BASH+= mcs/class/Mono.WebBrowser/build-csproj2k5
REPLACE_BASH+= mcs/class/Managed.Windows.Forms/build-csproj
REPLACE_BASH+= mcs/class/Managed.Windows.Forms/build-csproj2k5
REPLACE_BASH+= mcs/class/Mono.Cairo/Samples/gtk/compile.sh
REPLACE_BASH+= mcs/class/Mono.Cairo/Samples/png/compile.sh
REPLACE_BASH+= mcs/class/Mono.Cairo/Samples/win32/compile.sh
REPLACE_BASH+= mcs/class/Mono.Cairo/Samples/x11/compile.sh
REPLACE_BASH+= mcs/tools/tinderbox/tinderbox.sh libgc/mkinstalldirs
REPLACE_BASH+= mcs/mkinstalldirs mkinstalldirs
EGDIR= ${PREFIX}/share/examples/mono
CONF_FILES= ${EGDIR}/config ${PKG_SYSCONFDIR}/mono/config
CONF_FILES+= ${EGDIR}/browscap.ini ${PKG_SYSCONFDIR}/mono/browscap.ini
CONF_FILES+= ${EGDIR}/2.0/DefaultWsdlHelpGenerator.aspx \
${PKG_SYSCONFDIR}/mono/2.0/DefaultWsdlHelpGenerator.aspx
CONF_FILES+= ${EGDIR}/2.0/machine.config \
${PKG_SYSCONFDIR}/mono/2.0/machine.config
CONF_FILES+= ${EGDIR}/mconfig/config.xml \
${PKG_SYSCONFDIR}/mono/mconfig/config.xml
CONF_FILES+= ${EGDIR}/2.0/settings.map \
${PKG_SYSCONFDIR}/mono/2.0/settings.map
CONF_FILES+= ${EGDIR}/2.0/web.config \
${PKG_SYSCONFDIR}/mono/2.0/web.config
CONF_FILES+= ${EGDIR}/2.0/Browsers/Compat.browser \
${PKG_SYSCONFDIR}/mono/2.0/Browsers/Compat.browser
CONF_FILES+= ${EGDIR}/4.0/DefaultWsdlHelpGenerator.aspx \
${PKG_SYSCONFDIR}/mono/4.0/DefaultWsdlHelpGenerator.aspx
CONF_FILES+= ${EGDIR}/4.0/machine.config \
${PKG_SYSCONFDIR}/mono/4.0/machine.config
CONF_FILES+= ${EGDIR}/4.0/settings.map \
${PKG_SYSCONFDIR}/mono/4.0/settings.map
CONF_FILES+= ${EGDIR}/4.0/web.config \
${PKG_SYSCONFDIR}/mono/4.0/web.config
CONF_FILES+= ${EGDIR}/4.0/Browsers/Compat.browser \
${PKG_SYSCONFDIR}/mono/4.0/Browsers/Compat.browser
CONF_FILES+= ${EGDIR}/4.5/DefaultWsdlHelpGenerator.aspx \
${PKG_SYSCONFDIR}/mono/4.5/DefaultWsdlHelpGenerator.aspx
CONF_FILES+= ${EGDIR}/4.5/machine.config \
${PKG_SYSCONFDIR}/mono/4.5/machine.config
CONF_FILES+= ${EGDIR}/4.5/settings.map \
${PKG_SYSCONFDIR}/mono/4.5/settings.map
CONF_FILES+= ${EGDIR}/4.5/web.config ${PKG_SYSCONFDIR}/mono/4.5/web.config
CONF_FILES+= ${EGDIR}/4.5/Browsers/Compat.browser \
${PKG_SYSCONFDIR}/mono/4.5/Browsers/Compat.browser
MAKE_DIRS+= ${PKG_SYSCONFDIR}/mono/2.0
MAKE_DIRS+= ${PKG_SYSCONFDIR}/mono/2.0/Browsers
MAKE_DIRS+= ${PKG_SYSCONFDIR}/mono/4.0
MAKE_DIRS+= ${PKG_SYSCONFDIR}/mono/4.0/Browsers
MAKE_DIRS+= ${PKG_SYSCONFDIR}/mono/4.5
MAKE_DIRS+= ${PKG_SYSCONFDIR}/mono/4.5/Browsers
MAKE_DIRS+= ${PKG_SYSCONFDIR}/mono/mconfig
INSTALLATION_DIRS+= share/examples/mono/4.5
TEST_TARGET= check
SUBST_CLASSES+= fix-prefix
SUBST_STAGE.fix-prefix= pre-configure
SUBST_MESSAGE.fix-prefix= Fixing relative prefix
SUBST_FILES.fix-prefix= ${PKGCONFIG_OVERRIDE}
SUBST_SED.fix-prefix= -e 's,$${pcfiledir}/../..,\@prefix\@,g'
SUBST_CLASSES+= fix-mcs
SUBST_STAGE.fix-mcs= pre-configure
SUBST_MESSAGE.fix-mcs= Fixing mcs default prefix
SUBST_FILES.fix-mcs= mcs/build/config-default.make
SUBST_VARS.fix-mcs= PREFIX PKGMANDIR
SUBST_CLASSES+= fix-cfgdir
SUBST_STAGE.fix-cfgdir= pre-configure
SUBST_MESSAGE.fix-cfgdir= Fixing configuration files install dir
SUBST_FILES.fix-cfgdir= mcs/tools/mconfig/Makefile
SUBST_SED.fix-cfgdir= -e 's,$$(sysconfdir)/mono,${EGDIR},g'
SUBST_CLASSES+= fix-libx11
SUBST_STAGE.fix-libx11= pre-configure
SUBST_MESSAGE.fix-libx11= Fixing libX11 search path configuration
SUBST_FILES.fix-libx11= configure
SUBST_SED.fix-libx11= -e 's,@X11BASE@,${X11BASE},g'
PLIST_VARS= monodoc
.include "../../mk/bsd.prefs.mk"
SUBST_CLASSES+= fix-domlib
SUBST_STAGE.fix-domlib= pre-configure
SUBST_FILES.fix-domlib= mcs/class/System/System.Net.NetworkInformation/IPGlobalProperties.cs
.if ${OPSYS} == "SunOS"
SUBST_SED.fix-domlib= -e 's,@DOMAINLIB@,libnsl,g'
.else
SUBST_SED.fix-domlib= -e 's,@DOMAINLIB@,libc,g'
.endif
.if ${OPSYS} == "SunOS"
CFLAGS+= -D_XOPEN_SOURCE=600
CONFIGURE_ARGS+= --with-mcs-docs=no
CONFIGURE_ARGS+= --with-sgen=no
CONFIGURE_ARGS+= --with-sigaltstack=no
ULIMIT_CMD_datasize= ulimit -d 524288
ULIMIT_CMD_stacksize= ulimit -s 10240
.elif ${OPSYS} == "NetBSD" && ${MACHINE_ARCH:M*arm*}
CONFIGURE_ARGS+= --with-mcs-docs=no
CONFIGURE_ARGS+= --disable-parallel-mark
.else
PLIST.monodoc= yes
.endif
.if ${MACHINE_ARCH:M*i[34]86*}
# for gcc byte atomic builtins
GNU_ARCH.i386= i586
CFLAGS+= -march=i586
.endif
post-install:
${INSTALL_DATA} ${WRKSRC}/data/net_4_5/DefaultWsdlHelpGenerator.aspx \
${DESTDIR}${EGDIR}/4.5/DefaultWsdlHelpGenerator.aspx
${INSTALL_DATA} ${WRKSRC}/data/net_4_5/machine.config \
${DESTDIR}${EGDIR}/4.5/machine.config
${INSTALL_DATA} ${WRKSRC}/data/net_4_5/settings.map \
${DESTDIR}${EGDIR}/4.5/settings.map
${INSTALL_DATA} ${WRKSRC}/data/net_4_5/web.config \
${DESTDIR}${EGDIR}/4.5/web.config
.if ${OPSYS} == "Darwin"
for lib in mcs.exe.dylib mscorlib.dll.dylib; do \
install_name_tool -id ${PREFIX}/lib/mono/4.5/$$lib \
${DESTDIR}${PREFIX}/lib/mono/4.5/$$lib; \
done
.endif
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../textproc/icu/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../textproc/libxslt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|