Mercurial > mxe-octave
comparison src/glib.mk @ 722:dc0a01dbbcd6
ensure that the native glib-genmarshal build with libiconv always succeeds
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Thu, 11 Feb 2010 23:55:39 +0100 |
parents | a22a99b45c2e |
children | 9f46c7b491c9 |
comparison
equal
deleted
inserted
replaced
721:bc69ccf2503c | 722:dc0a01dbbcd6 |
---|---|
19 grep -v '2\.22\.' | \ | 19 grep -v '2\.22\.' | \ |
20 head -1 | 20 head -1 |
21 endef | 21 endef |
22 | 22 |
23 define $(PKG)_BUILD | 23 define $(PKG)_BUILD |
24 # native build for glib-genmarshal, without pkg-config, gettext and zlib | |
25 cd '$(1)' && $(call UNPACK_PKG_ARCHIVE,glib) | 24 cd '$(1)' && $(call UNPACK_PKG_ARCHIVE,glib) |
26 mv '$(1)/$(glib_SUBDIR)' '$(1).native' | 25 mv '$(1)/$(glib_SUBDIR)' '$(1).native' |
26 | |
27 # native build of libiconv (used by glib-genmarshal) | |
28 cd '$(1).native' && $(call UNPACK_PKG_ARCHIVE,libiconv) | |
29 cd '$(1).native/$(libiconv_SUBDIR)' && ./configure \ | |
30 --disable-shared \ | |
31 --disable-nls | |
32 $(MAKE) -C '$(1).native/$(libiconv_SUBDIR)' -j '$(JOBS)' | |
33 | |
34 # native build for glib-genmarshal, without pkg-config, gettext and zlib | |
27 $(SED) 's,gt_cv_have_gettext=yes,gt_cv_have_gettext=no,' -i '$(1).native/configure' | 35 $(SED) 's,gt_cv_have_gettext=yes,gt_cv_have_gettext=no,' -i '$(1).native/configure' |
28 $(SED) '/You must.*have gettext/,/exit 1;/ s,.*exit 1;.*,},' -i '$(1).native/configure' | 36 $(SED) '/You must.*have gettext/,/exit 1;/ s,.*exit 1;.*,},' -i '$(1).native/configure' |
29 $(SED) 's,found_zlib=no,found_zlib=yes,' -i '$(1).native/configure' | 37 $(SED) 's,found_zlib=no,found_zlib=yes,' -i '$(1).native/configure' |
30 cd '$(1).native' && ./configure \ | 38 cd '$(1).native' && ./configure \ |
31 --disable-shared \ | 39 --disable-shared \ |
32 --prefix='$(PREFIX)/$(TARGET)' \ | 40 --prefix='$(PREFIX)/$(TARGET)' \ |
33 --enable-regex \ | 41 --enable-regex \ |
34 --disable-threads \ | 42 --disable-threads \ |
35 --disable-selinux \ | 43 --disable-selinux \ |
36 --disable-fam \ | 44 --disable-fam \ |
37 --disable-xattr | 45 --disable-xattr \ |
46 --with-libiconv=gnu \ | |
47 CPPFLAGS='-I$(1).native/$(libiconv_SUBDIR)/include' \ | |
48 LDFLAGS='-L$(1).native/$(libiconv_SUBDIR)/lib/.libs' | |
38 $(SED) 's,#define G_ATOMIC.*,,' -i '$(1).native/config.h' | 49 $(SED) 's,#define G_ATOMIC.*,,' -i '$(1).native/config.h' |
39 $(MAKE) -C '$(1).native/glib' -j '$(JOBS)' | 50 $(MAKE) -C '$(1).native/glib' -j '$(JOBS)' |
40 $(MAKE) -C '$(1).native/gthread' -j '$(JOBS)' | 51 $(MAKE) -C '$(1).native/gthread' -j '$(JOBS)' |
41 $(MAKE) -C '$(1).native/gobject' -j '$(JOBS)' lib_LTLIBRARIES= install-exec | 52 $(MAKE) -C '$(1).native/gobject' -j '$(JOBS)' lib_LTLIBRARIES= install-exec |
42 | 53 |