]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
gettext: Fix toolchain build
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 15 Apr 2021 10:23:46 +0000 (10:23 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 5 Jul 2021 05:42:39 +0000 (07:42 +0200)
Instead of attempting to build the parts we need, we will build the
whole package and only install the files we want.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/gettext

index b9eb24a85272ffa01760dfa3acb14f632610a673..5e00e74485c4fee73e9310bcfd531fb05cb9de44 100644 (file)
@@ -80,16 +80,19 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
        $(UPDATE_AUTOMAKE)
-ifeq "$(ROOT)" ""
+
        cd $(DIR_APP) && ./configure $(EXTRA_CONFIG)
        cd $(DIR_APP) && make $(MAKETUNING)
-       cd $(DIR_APP) && make install
+
+ifeq "$(TOOLCHAIN)" "1"
+       install -v -m 755 \
+               $(DIR_APP)/gettext-tools/src/msgfmt \
+               $(DIR_APP)/gettext-tools/src/msgmerge \
+               $(DIR_APP)/gettext-tools/src/xgettext \
+               $(TOOLS_DIR)/bin
 else
-       cd $(DIR_APP)/gettext-tools && ./configure $(EXTRA_CONFIG)
-       cd $(DIR_APP)/gettext-tools && make $(MAKETUNING) -C gnulib-lib
-       cd $(DIR_APP)/gettext-tools && make $(MAKETUNING) -C intl pluralx.c
-       cd $(DIR_APP)/gettext-tools && make $(MAKETUNING) -C src msgfmt
-       cd $(DIR_APP)/gettext-tools && cp -v src/msgfmt $(TOOLS_DIR)/bin
+       cd $(DIR_APP) && make install
 endif
+
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)