| @@ -1,40 +1,41 @@ | | | @@ -1,40 +1,41 @@ |
1 | # $NetBSD: Makefile,v 1.16 2020/05/09 16:52:51 rillig Exp $ | | 1 | # $NetBSD: Makefile,v 1.17 2020/05/10 18:24:56 rillig Exp $ |
2 | | | 2 | |
3 | DISTNAME= mono-6.8.0.105 | | 3 | DISTNAME= mono-6.8.0.105 |
4 | PKGREVISION= 3 | | 4 | PKGREVISION= 3 |
5 | CATEGORIES= lang | | 5 | CATEGORIES= lang |
6 | MASTER_SITES= https://download.mono-project.com/sources/mono/ | | 6 | MASTER_SITES= https://download.mono-project.com/sources/mono/ |
7 | EXTRACT_SUFX= .tar.xz | | 7 | EXTRACT_SUFX= .tar.xz |
8 | | | 8 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
10 | HOMEPAGE= https://www.mono-project.com/ | | 10 | HOMEPAGE= https://www.mono-project.com/ |
11 | COMMENT= Open source implementation of the .NET Development Framework | | 11 | COMMENT= Open source implementation of the .NET Development Framework |
12 | LICENSE= mit AND gnu-gpl-v2 AND gnu-lgpl-v2 AND apache-2.0 | | 12 | LICENSE= mit AND gnu-gpl-v2 AND gnu-lgpl-v2 AND apache-2.0 |
13 | | | 13 | |
14 | WRKSRC= ${WRKDIR}/${DISTNAME} | | 14 | WRKSRC= ${WRKDIR}/${DISTNAME} |
15 | | | 15 | |
16 | TOOL_DEPENDS+= p5-XML-Parser-[0-9]*:../../textproc/p5-XML-Parser | | 16 | TOOL_DEPENDS+= p5-XML-Parser-[0-9]*:../../textproc/p5-XML-Parser |
17 | CONFLICTS= pnet-[0-9]* mcsim-[0-9]* lc-[0-9]* | | 17 | CONFLICTS= pnet-[0-9]* mcsim-[0-9]* lc-[0-9]* |
18 | ALL_ENV+= MONO_SHARED_DIR=${WRKDIR} PLATFORM= | | 18 | ALL_ENV+= MONO_SHARED_DIR=${WRKDIR} PLATFORM= |
19 | ALL_ENV+= PAXCTL=${PAXCTL} | | 19 | ALL_ENV+= PAXCTL=${PAXCTL} |
20 | | | 20 | |
21 | USE_TOOLS+= bash:run cmake gmake gtar msgfmt perl:run pkg-config | | 21 | USE_TOOLS+= bash:run cmake gmake gtar msgfmt perl:run pkg-config |
22 | USE_TOOLS+= bison autoconf automake | | 22 | USE_TOOLS+= bison autoconf automake |
23 | USE_LIBTOOL= yes | | 23 | USE_LIBTOOL= yes |
24 | USE_LANGUAGES+= c c99 c++ | | 24 | USE_LANGUAGES+= c c99 c++ |
25 | EXTRACT_USING= gtar | | 25 | EXTRACT_USING= gtar |
26 | | | 26 | |
27 | GNU_CONFIGURE= yes | | 27 | GNU_CONFIGURE= yes |
| | | 28 | GNU_CONFIGURE_STRICT= no # has sub-configures |
28 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} | | 29 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} |
29 | CONFIGURE_ARGS+= --disable-btls | | 30 | CONFIGURE_ARGS+= --disable-btls |
30 | CONFIGURE_ARGS+= --disable-btls-lib | | 31 | CONFIGURE_ARGS+= --disable-btls-lib |
31 | | | 32 | |
32 | # Requires a cwrappers change: http://mail-index.netbsd.org/tech-pkg/2019/08/16/msg021791.html | | 33 | # Requires a cwrappers change: http://mail-index.netbsd.org/tech-pkg/2019/08/16/msg021791.html |
33 | USE_CWRAPPERS= no | | 34 | USE_CWRAPPERS= no |
34 | | | 35 | |
35 | MAKE_FLAGS+= PERL=${PERL5:Q} mandir=${PREFIX}/${PKGMANDIR} | | 36 | MAKE_FLAGS+= PERL=${PERL5:Q} mandir=${PREFIX}/${PKGMANDIR} |
36 | UNLIMIT_RESOURCES= datasize stacksize memorysize | | 37 | UNLIMIT_RESOURCES= datasize stacksize memorysize |
37 | | | 38 | |
38 | PKGCONFIG_OVERRIDE+= mono-uninstalled.pc.in data/cecil.pc.in | | 39 | PKGCONFIG_OVERRIDE+= mono-uninstalled.pc.in data/cecil.pc.in |
39 | PKGCONFIG_OVERRIDE+= data/dotnet.pc.in data/dotnet35.pc.in data/mint.pc.in | | 40 | PKGCONFIG_OVERRIDE+= data/dotnet.pc.in data/dotnet35.pc.in data/mint.pc.in |
40 | PKGCONFIG_OVERRIDE+= data/monodoc.pc.in | | 41 | PKGCONFIG_OVERRIDE+= data/monodoc.pc.in |
| @@ -46,27 +47,27 @@ PKGCONFIG_OVERRIDE+= data/system.web.ext | | | @@ -46,27 +47,27 @@ PKGCONFIG_OVERRIDE+= data/system.web.ext |
46 | PKGCONFIG_OVERRIDE+= data/system.web.extensions.design_1.0.pc.in | | 47 | PKGCONFIG_OVERRIDE+= data/system.web.extensions.design_1.0.pc.in |
47 | PKGCONFIG_OVERRIDE+= data/system.web.mvc.pc.in data/wcf.pc.in | | 48 | PKGCONFIG_OVERRIDE+= data/system.web.mvc.pc.in data/wcf.pc.in |
48 | | | 49 | |
49 | REPLACE_PERL+= mono/benchmark/test-driver | | 50 | REPLACE_PERL+= mono/benchmark/test-driver |
50 | REPLACE_PERL+= mono/cil/make-opcodes-def.pl | | 51 | REPLACE_PERL+= mono/cil/make-opcodes-def.pl |
51 | REPLACE_PERL+= mono/tests/stress-runner.pl | | 52 | REPLACE_PERL+= mono/tests/stress-runner.pl |
52 | | | 53 | |
53 | REPLACE_PYTHON+= scripts/mono-heapviz | | 54 | REPLACE_PYTHON+= scripts/mono-heapviz |
54 | | | 55 | |
55 | REPLACE_BASH+= mono/arch/arm/dpiops.sh | | 56 | REPLACE_BASH+= mono/arch/arm/dpiops.sh |
56 | REPLACE_BASH+= mono/arch/arm/vfpops.sh | | 57 | REPLACE_BASH+= mono/arch/arm/vfpops.sh |
57 | REPLACE_BASH+= scripts/mono-package-runtime | | 58 | REPLACE_BASH+= scripts/mono-package-runtime |
58 | REPLACE_BASH+= scripts/mono-find-provides.in scripts/mono-find-requires.in | | 59 | REPLACE_BASH+= scripts/mono-find-provides.in scripts/mono-find-requires.in |
59 | REPLACE_BASH+= scripts/mono-test-install web/mono-build-w32.sh | | 60 | REPLACE_BASH+= scripts/mono-test-install |
60 | REPLACE_BASH+= mcs/class/Mono.Cairo/Samples/gtk/compile.sh | | 61 | REPLACE_BASH+= mcs/class/Mono.Cairo/Samples/gtk/compile.sh |
61 | REPLACE_BASH+= mcs/class/Mono.Cairo/Samples/png/compile.sh | | 62 | REPLACE_BASH+= mcs/class/Mono.Cairo/Samples/png/compile.sh |
62 | REPLACE_BASH+= mcs/class/Mono.Cairo/Samples/win32/compile.sh | | 63 | REPLACE_BASH+= mcs/class/Mono.Cairo/Samples/win32/compile.sh |
63 | REPLACE_BASH+= mcs/class/Mono.Cairo/Samples/x11/compile.sh | | 64 | REPLACE_BASH+= mcs/class/Mono.Cairo/Samples/x11/compile.sh |
64 | REPLACE_BASH+= libgc/mkinstalldirs | | 65 | REPLACE_BASH+= libgc/mkinstalldirs |
65 | REPLACE_BASH+= mcs/mkinstalldirs mkinstalldirs | | 66 | REPLACE_BASH+= mcs/mkinstalldirs mkinstalldirs |
66 | | | 67 | |
67 | EGDIR= ${PREFIX}/share/examples/mono | | 68 | EGDIR= ${PREFIX}/share/examples/mono |
68 | | | 69 | |
69 | EGDIR_CONF_FILES= \ | | 70 | EGDIR_CONF_FILES= \ |
70 | | | 71 | |
71 | .for conf in \ | | 72 | .for conf in \ |
72 | 2.0/Browsers/Compat.browser \ | | 73 | 2.0/Browsers/Compat.browser \ |
| @@ -113,26 +114,29 @@ SUBST_NOOP_OK.fix-prefix= yes | | | @@ -113,26 +114,29 @@ SUBST_NOOP_OK.fix-prefix= yes |
113 | SUBST_CLASSES+= fix-cfgdir | | 114 | SUBST_CLASSES+= fix-cfgdir |
114 | SUBST_STAGE.fix-cfgdir= pre-configure | | 115 | SUBST_STAGE.fix-cfgdir= pre-configure |
115 | SUBST_MESSAGE.fix-cfgdir= Fixing configuration files install dir | | 116 | SUBST_MESSAGE.fix-cfgdir= Fixing configuration files install dir |
116 | SUBST_FILES.fix-cfgdir= mcs/tools/mconfig/Makefile | | 117 | SUBST_FILES.fix-cfgdir= mcs/tools/mconfig/Makefile |
117 | SUBST_SED.fix-cfgdir= -e 's,$$(sysconfdir)/mono,${EGDIR},g' | | 118 | SUBST_SED.fix-cfgdir= -e 's,$$(sysconfdir)/mono,${EGDIR},g' |
118 | | | 119 | |
119 | SUBST_CLASSES+= fix-python | | 120 | SUBST_CLASSES+= fix-python |
120 | SUBST_STAGE.fix-python= pre-configure | | 121 | SUBST_STAGE.fix-python= pre-configure |
121 | SUBST_MESSAGE.fix-python= Fixing python binary name | | 122 | SUBST_MESSAGE.fix-python= Fixing python binary name |
122 | SUBST_FILES.fix-python+= mono/mini/Makefile.am.in | | 123 | SUBST_FILES.fix-python+= mono/mini/Makefile.am.in |
123 | SUBST_FILES.fix-python+= mono/tests/Makefile.am | | 124 | SUBST_FILES.fix-python+= mono/tests/Makefile.am |
124 | SUBST_SED.fix-python= -e 's,python,${PYTHONBIN},' | | 125 | SUBST_SED.fix-python= -e 's,python,${PYTHONBIN},' |
125 | | | 126 | |
| | | 127 | # Uses [[ ... ]], not needed during the build. |
| | | 128 | CHECK_PORTABILITY_SKIP+= acceptance-tests/microbench-perf.sh.in |
| | | 129 | |
126 | .include "../../mk/bsd.prefs.mk" | | 130 | .include "../../mk/bsd.prefs.mk" |
127 | | | 131 | |
128 | # XXX remove | | 132 | # XXX remove |
129 | MAKE_ENV+= V=1 | | 133 | MAKE_ENV+= V=1 |
130 | | | 134 | |
131 | # We patched makefiles, regen | | 135 | # We patched makefiles, regen |
132 | pre-configure: | | 136 | pre-configure: |
133 | ${RUN} cd ${WRKSRC} && ${SH} ./autogen.sh | | 137 | ${RUN} cd ${WRKSRC} && ${SH} ./autogen.sh |
134 | | | 138 | |
135 | .if ${OPSYS} == "SunOS" | | 139 | .if ${OPSYS} == "SunOS" |
136 | CFLAGS+= -D_XOPEN_SOURCE=600 | | 140 | CFLAGS+= -D_XOPEN_SOURCE=600 |
137 | # Conflicts with the above settings | | 141 | # Conflicts with the above settings |
138 | CONFIGURE_ENV+= ac_cv_func_madvise=no | | 142 | CONFIGURE_ENV+= ac_cv_func_madvise=no |