2015-03-20 13:35:19 +01:00
|
|
|
################################################################################
|
2014-10-22 22:22:10 +02:00
|
|
|
#
|
|
|
|
# mono
|
|
|
|
#
|
2015-03-20 13:35:19 +01:00
|
|
|
################################################################################
|
2014-10-22 22:22:10 +02:00
|
|
|
|
2019-07-28 17:18:29 +02:00
|
|
|
MONO_VERSION = 6.0.0.313
|
2015-03-09 23:14:51 +01:00
|
|
|
MONO_SITE = http://download.mono-project.com/sources/mono
|
2019-07-28 17:18:29 +02:00
|
|
|
MONO_SOURCE = mono-$(MONO_VERSION).tar.xz
|
2017-03-30 15:43:32 +02:00
|
|
|
MONO_LICENSE = GPL-2.0 or MIT (compiler, tools), MIT (libs) or commercial
|
2018-06-05 18:30:59 +02:00
|
|
|
MONO_LICENSE_FILES = LICENSE mcs/COPYING \
|
2016-10-13 18:04:18 +02:00
|
|
|
external/Newtonsoft.Json/Tools/7-zip/copying.txt
|
2014-10-22 22:22:10 +02:00
|
|
|
MONO_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
## Mono native
|
|
|
|
|
|
|
|
# patching configure.ac
|
|
|
|
MONO_AUTORECONF = YES
|
|
|
|
|
2018-05-29 22:50:03 +02:00
|
|
|
MONO_COMMON_CONF_OPTS = --with-mcs-docs=no \
|
2014-10-22 22:22:10 +02:00
|
|
|
--with-ikvm-native=no \
|
2018-05-29 22:50:03 +02:00
|
|
|
--enable-minimal=profiler,debug \
|
2017-05-23 12:20:35 +02:00
|
|
|
--enable-static \
|
2018-05-29 22:50:03 +02:00
|
|
|
--disable-btls \
|
|
|
|
--disable-system-aot
|
|
|
|
|
|
|
|
# Disable managed code (mcs folder) from building
|
|
|
|
MONO_CONF_OPTS = $(MONO_COMMON_CONF_OPTS) --disable-mcs-build
|
2014-10-22 22:22:10 +02:00
|
|
|
|
|
|
|
# The libraries have been built by the host-mono build. Since they are
|
|
|
|
# architecture-independent, we simply copy them to the target.
|
|
|
|
define MONO_INSTALL_LIBS
|
|
|
|
rsync -av --exclude=*.so --exclude=*.mdb \
|
2017-07-05 13:14:21 +02:00
|
|
|
$(HOST_DIR)/lib/mono $(TARGET_DIR)/usr/lib/
|
2014-10-22 22:22:10 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
MONO_POST_INSTALL_TARGET_HOOKS += MONO_INSTALL_LIBS
|
|
|
|
|
2015-07-27 12:06:24 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
|
|
|
MONO_DEPENDENCIES += libiconv
|
|
|
|
endif
|
|
|
|
|
2019-05-15 22:47:21 +02:00
|
|
|
MONO_DEPENDENCIES += \
|
|
|
|
host-mono \
|
|
|
|
$(if $(BR2_PACKAGE_LIBUNWIND),libunwind)
|
2014-10-22 22:22:10 +02:00
|
|
|
|
|
|
|
## Mono managed
|
|
|
|
|
2018-05-29 22:50:03 +02:00
|
|
|
HOST_MONO_CONF_OPTS = $(MONO_COMMON_CONF_OPTS) --disable-libraries
|
2014-10-22 22:22:10 +02:00
|
|
|
|
2014-11-30 22:41:06 +01:00
|
|
|
# ensure monolite is used
|
|
|
|
HOST_MONO_MAKE_OPTS += EXTERNAL_MCS=false
|
2014-11-29 00:19:18 +01:00
|
|
|
|
2014-10-22 22:22:10 +02:00
|
|
|
HOST_MONO_DEPENDENCIES = host-monolite host-gettext
|
|
|
|
|
|
|
|
define HOST_MONO_SETUP_MONOLITE
|
|
|
|
rm -rf $(@D)/mcs/class/lib/monolite
|
2017-07-05 13:14:21 +02:00
|
|
|
(cd $(@D)/mcs/class/lib; ln -s $(HOST_DIR)/lib/monolite monolite)
|
2014-10-22 22:22:10 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
HOST_MONO_POST_CONFIGURE_HOOKS += HOST_MONO_SETUP_MONOLITE
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|
|
|
|
$(eval $(host-autotools-package))
|