void-packages/srcpkgs/mono/template
Đoàn Trần Công Danh 3891482ce8 mono: disable Boehm gc on arm*
Support for Boehm GC is deprecated,
and the build system is badly broken:
* Mono expects internal Boehm GC using internal libatomic_ops; but
* Internal Boehm GC configure script somehow decided to use system one.

Even on the system that built with both sgen and Boehm,
Mono will prefer to use sgen.
2020-07-11 11:34:50 +07:00

40 lines
1.3 KiB
Bash

# Template file for 'mono'
pkgname=mono
version=6.10.0.104
revision=1
build_style=gnu-configure
configure_args="--disable-system-aot"
# XXX: figure out how to split this up into subpkgs.
hostmakedepends="perl python3 cmake which"
makedepends="zlib-devel libX11-devel libgdiplus-devel"
depends="ca-certificates python3-Pillow"
short_desc="Free implementation of the .NET platform including runtime and compiler"
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
license="MIT, BSD-3-Clause, GPL-2.0-or-later, LGPL-2.0-or-later, MPL-1.1"
homepage="https://www.mono-project.com"
distfiles="https://download.mono-project.com/sources/mono/${pkgname}-${version}.tar.xz"
checksum=b8d6eb70a252d2efad8384d66b529883dc59e581565d617fa57f8e79317e332c
lib32disabled=yes
python_version="3"
case "$XBPS_TARGET_MACHINE" in
*-musl) configure_args+=" --disable-boehm --without-sigaltstack" ;;
arm*) configure_args+=" --disable-boehm" ;;
esac
post_install() {
# Avoid conflict with chicken's csc and csi compiler
mv ${DESTDIR}/usr/bin/csc ${DESTDIR}/usr/bin/mono-csc
mv ${DESTDIR}/usr/bin/csi ${DESTDIR}/usr/bin/mono-csi
vlicense LICENSE
}
mono-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove usr/lib/pkgconfig
}
}