[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Mingw-cross-env-list] Add mono package
From: |
Nagaev Boris |
Subject: |
Re: [Mingw-cross-env-list] Add mono package |
Date: |
Thu, 26 Mar 2015 18:29:57 +0000 |
On Fri, Mar 20, 2015 at 4:46 AM, Weber Li
<address@hidden> wrote:
> Hi guys,
>
> I want to add mono package into mxe, but I failed. Please have a look at
> my make file and tell me where did I do wrong.
>
> # This file is part of MXE.
> # See index.html for further information.
> https://github.com/mono/gtk-sharp/archive/2.12.25.tar.gz
>
> PKG := mono
> $(PKG)_IGNORE :=
> $(PKG)_VERSION := 3.12.0
> $(PKG)_CHECKSUM := cec83efd13ffc1e212c632395a5aac75772a09e7
> $(PKG)_SUBDIR := mono-$($(PKG)_VERSION)
> $(PKG)_FILE := mono-$($(PKG)_VERSION).tar.bz2
> $(PKG)_URL :=
> https://download.mono-project.com/sources/mono/$($(PKG)_FILE)
> $(PKG)_DEPS := gcc gettext sqlite lapack glib libiconv
>
> define $(PKG)_UPDATE
> $(WGET) -q -O- 'http://git.gnome.org/browse/gtk+/refs/tags' | \
> grep '<a href=' | \
> $(SED) -n 's,.*<a[^>]*>\([0-9]*\.[0-9]*[02468]\.[^<]*\)<.*,\1,p' | \
> grep -v '^2\.9' | \
> grep '^2\.' | \
> head -1
> endef
>
> define $(PKG)_BUILD
> cd '$(1)' && ./configure \
> --host='$(TARGET)' \
> --build="`config.guess`" \
> --disable-shared \
> --prefix='$(PREFIX)/$(TARGET)' \
> --enable-explicit-deps \
> --disable-glibtest \
> --disable-modules \
> --disable-cups \
> --disable-test-print-backend \
> --disable-gtk-doc \
> --disable-man \
> --with-included-immodules \
> --without-x
> export PATH=$PATH:$(1)/bin
> make
> make install
> endef
>
Hello,
1. I tried your .mk file and it looks like make command is applied to
mxe directory recursively instead of being applied to mono directory
[1].
2. I've looked through [2] and changed dependencies to the following:
$(PKG)_DEPS := gcc glib zlib libpng tiff jpeg giflib \
freetype fontconfig expat gettext
Have you tried running script build-mingw32.sh ?
---
[1] https://gist.github.com/starius/e7285f166290d4a7d5ab#file-log
[2]
http://www.mono-project.com/docs/compiling-mono/windows/cross-compiling-mono-for-windows/#list-of-packages-needed-for-cross-compiling
Best regards,
Boris Nagaev