Hi Nagaev,
this is my updated script:
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)_DEPS := gcc glib zlib libpng tiff jpeg giflib freetype fontconfig expat gettext
define $(PKG)_UPDATE
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)' && ./build-mingw32.sh -d '$(PREFIX)/$(TARGET)' -m $(TARGET) -p '$(PREFIX)/$(TARGET)'
endef
It shows weird errors.
mark.c:428:18: error: 'struct _CONTEXT' has no member named 'Esp'
I fixed it by change all Esp, Ebp and Eip to Rsp, Rbp and Rip in mark.c.
And then it shows another error:
/var/folders/z7/dhdlqhb550s7ppqbb4mfxl1h0000gn/T//cczrXYqZ.s:1004: Error: incorrect register `%rax' used with `l' suffix
/var/folders/z7/dhdlqhb550s7ppqbb4mfxl1h0000gn/T//cczrXYqZ.s:1012: Error: incorrect register `%rax' used with `l' suffix
Now I really don't have a clue now. I have done some searching about it, they all saying that its because of different bits of the OS (32bit 64bit).
If anyone has a way to fix it, please inform me, :)
Thanks
Weber