python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / mono / mono.mk
blob866bff23fb1aaac2a75b5f5ed44cc1f166044f97
1 ################################################################################
3 # mono
5 ################################################################################
7 MONO_VERSION = 4.6.2.16
8 MONO_SITE = http://download.mono-project.com/sources/mono
9 MONO_SOURCE = mono-$(MONO_VERSION).tar.bz2
10 MONO_LICENSE = GPLv2 or MIT (compiler, tools), MIT (libs) or commercial
11 MONO_LICENSE_FILES = LICENSE mcs/COPYING eglib/COPYING \
12 external/Newtonsoft.Json/Tools/7-zip/copying.txt
13 MONO_INSTALL_STAGING = YES
15 ## Mono native
17 # patching configure.ac
18 MONO_AUTORECONF = YES
20 # Disable managed code (mcs folder) from building
21 MONO_CONF_OPTS = --with-mcs-docs=no \
22 --with-ikvm-native=no \
23 --enable-minimal=profiler,debug \
24 --disable-mcs-build \
25 --enable-static
27 # The libraries have been built by the host-mono build. Since they are
28 # architecture-independent, we simply copy them to the target.
29 define MONO_INSTALL_LIBS
30 rsync -av --exclude=*.so --exclude=*.mdb \
31 $(HOST_DIR)/usr/lib/mono $(TARGET_DIR)/usr/lib/
32 rsync -av $(HOST_DIR)/etc/mono $(TARGET_DIR)/etc
33 endef
35 MONO_POST_INSTALL_TARGET_HOOKS += MONO_INSTALL_LIBS
37 ifeq ($(BR2_PACKAGE_LIBICONV),y)
38 MONO_DEPENDENCIES += libiconv
39 endif
41 MONO_DEPENDENCIES += host-mono
43 ## Mono managed
45 HOST_MONO_CONF_OPTS = --with-mcs-docs=no \
46 --disable-libraries \
47 --with-ikvm-native=no \
48 --enable-minimal=profiler,debug \
49 --enable-static
51 # ensure monolite is used
52 HOST_MONO_MAKE_OPTS += EXTERNAL_MCS=false
54 HOST_MONO_DEPENDENCIES = host-monolite host-gettext
56 define HOST_MONO_SETUP_MONOLITE
57 rm -rf $(@D)/mcs/class/lib/monolite
58 (cd $(@D)/mcs/class/lib; ln -s $(HOST_DIR)/usr/lib/monolite monolite)
59 endef
61 HOST_MONO_POST_CONFIGURE_HOOKS += HOST_MONO_SETUP_MONOLITE
63 $(eval $(autotools-package))
64 $(eval $(host-autotools-package))