diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2009-03-06 16:05:27 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2009-03-06 16:05:27 (GMT) |
commit | 2957ca6552c251b5c009ed8941edb3bd47cbf510 (patch) | |
tree | 3a92ec23c0a1d0e8b17097abd6264ff79cf50e02 /src/gettext.mk | |
parent | af87aaf9c5f187cb773c7c37d6d7d379954ee816 (diff) | |
download | mxe-2957ca6552c251b5c009ed8941edb3bd47cbf510.zip mxe-2957ca6552c251b5c009ed8941edb3bd47cbf510.tar.gz mxe-2957ca6552c251b5c009ed8941edb3bd47cbf510.tar.bz2 |
portability fix for FreeBSD: don't expect the build system to have iconv installed
Diffstat (limited to 'src/gettext.mk')
-rw-r--r-- | src/gettext.mk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gettext.mk b/src/gettext.mk index 0ad842d..9ceef7f 100644 --- a/src/gettext.mk +++ b/src/gettext.mk @@ -16,11 +16,20 @@ define $(PKG)_UPDATE endef define $(PKG)_BUILD + # native build of libiconv (used by gettext-tools) + cd '$(1)' && $(call UNPACK_PKG_ARCHIVE,libiconv) + cd '$(1)/$(libiconv_SUBDIR)' && ./configure \ + --prefix='$(1)/libiconv' \ + --disable-shared \ + --disable-nls + $(MAKE) -C '$(1)/$(libiconv_SUBDIR)' -j '$(JOBS)' install + # native build for gettext-tools cd '$(1)/gettext-tools' && ./configure \ --disable-shared \ --prefix='$(PREFIX)' \ --disable-threads \ + --with-libiconv-prefix='$(1)/libiconv' \ --with-included-gettext \ --with-included-glib \ --with-included-libcroco \ @@ -35,6 +44,7 @@ define $(PKG)_BUILD --without-emacs $(MAKE) -C '$(1)/gettext-tools' -j '$(JOBS)' SHELL=bash $(MAKE) -C '$(1)/gettext-tools/src' -j 1 SHELL=bash lib_LTLIBRARIES= install-binPROGRAMS + # cross build for gettext-runtime cd '$(1)/gettext-runtime' && ./configure \ --host='$(TARGET)' \ |