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
|
|
|
|
2017-11-03 15:43:31 +01:00
|
|
|
MONO_VERSION = 5.4.0.201
|
2015-03-09 23:14:51 +01:00
|
|
|
MONO_SITE = http://download.mono-project.com/sources/mono
|
2014-10-22 22:22:10 +02:00
|
|
|
MONO_SOURCE = mono-$(MONO_VERSION).tar.bz2
|
2017-03-30 15:43:32 +02:00
|
|
|
MONO_LICENSE = GPL-2.0 or MIT (compiler, tools), MIT (libs) or commercial
|
2016-10-13 18:04:18 +02:00
|
|
|
MONO_LICENSE_FILES = LICENSE mcs/COPYING eglib/COPYING \
|
|
|
|
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
|
|
|
|
|
|
|
|
# Disable managed code (mcs folder) from building
|
2017-03-15 02:55:07 +01:00
|
|
|
MONO_CONF_OPTS = --with-mcs-docs=no \
|
2014-10-22 22:22:10 +02:00
|
|
|
--with-ikvm-native=no \
|
2017-05-23 12:20:35 +02:00
|
|
|
--enable-minimal=profiler,debug,aot \
|
2014-12-13 23:00:52 +01:00
|
|
|
--disable-mcs-build \
|
2017-05-23 12:20:35 +02:00
|
|
|
--enable-static \
|
|
|
|
--disable-btls
|
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
|
|
|
|
|
2014-10-22 22:22:10 +02:00
|
|
|
MONO_DEPENDENCIES += host-mono
|
|
|
|
|
|
|
|
## Mono managed
|
|
|
|
|
2017-03-15 02:55:07 +01:00
|
|
|
HOST_MONO_CONF_OPTS = --with-mcs-docs=no \
|
2014-10-22 22:22:10 +02:00
|
|
|
--disable-libraries \
|
|
|
|
--with-ikvm-native=no \
|
2017-05-23 12:20:35 +02:00
|
|
|
--enable-minimal=profiler,debug,aot \
|
|
|
|
--enable-static \
|
|
|
|
--disable-btls
|
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))
|