mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] [PATCH cleanup] upgrade packages glib gtk


From: Tony Theodore
Subject: Re: [Mingw-cross-env-list] [PATCH cleanup] upgrade packages glib gtk
Date: Wed, 28 Apr 2010 02:45:45 +1000

On 28 April 2010 01:42, Mark Brand <address@hidden> wrote:
>
> The install step is need to create libintl.h. There are also some other
> changes here. I borrowed a lot from gettext.mk.  Would you like to try this
> one?

Thanks, I tried that and made a few changes - install iconv to
.native/usr, remove SHELL=bash and change *FLAGS. Joy, it builds and
the test exe works!

On OSX at least; unfortunately, Ubuntu (and Debian Squeeze) are
failing as attached.

Tony


diff -r 1e8d005f35ee src/glib.mk
--- a/src/glib.mk       Tue Apr 27 12:21:08 2010 +0200
+++ b/src/glib.mk       Wed Apr 28 02:29:32 2010 +1000
@@ -28,9 +28,19 @@
     # native build of libiconv (used by glib-genmarshal)
     cd '$(1).native' && $(call UNPACK_PKG_ARCHIVE,libiconv)
     cd '$(1).native/$(libiconv_SUBDIR)' && ./configure \
+        --prefix='$(1).native/usr' \
         --disable-shared \
         --disable-nls
-    $(MAKE) -C '$(1).native/$(libiconv_SUBDIR)' -j '$(JOBS)'
+    $(MAKE) -C '$(1).native/$(libiconv_SUBDIR)' -j '$(JOBS)' install
+
+    # native build of gettext (used by glib-compile-schemas)
+    # darwin and freebsd might lack libintl.h otherwise
+    cd '$(1).native' && $(call UNPACK_PKG_ARCHIVE,gettext)
+    cd '$(1).native/$(gettext_SUBDIR)/gettext-runtime' && ./configure \
+        --prefix='$(1).native/usr' \
+        --disable-shared \
+        --with-included-gettext
+    $(MAKE) -C '$(1).native/$(gettext_SUBDIR)/gettext-runtime/intl'
-j '$(JOBS)' install

     # native build for glib-genmarshal, without pkg-config, gettext and zlib
     cd '$(1).native' && ./configure \
@@ -42,8 +52,8 @@
         --disable-fam \
         --disable-xattr \
         --with-libiconv=gnu \
-        CPPFLAGS='-I$(1).native/$(libiconv_SUBDIR)/include' \
-        LDFLAGS='-L$(1).native/$(libiconv_SUBDIR)/lib/.libs'
+        CPPFLAGS='-I$(1).native/usr/include' \
+        LDFLAGS='-L$(1).native/usr/lib'
     $(SED) -i 's,#define G_ATOMIC.*,,' '$(1).native/config.h'
     $(MAKE) -C '$(1).native/glib'    -j '$(JOBS)'
     $(MAKE) -C '$(1).native/gthread' -j '$(JOBS)'

Attachment: glib.tar.gz
Description: GNU Zip compressed data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]