view src/gettext.mk @ 6976:f0f5513c9782

* src/build-gettext.mk, src/gettext.mk: update to v0.22.4
author John Donoghue <john.donoghue@ieee.org>
date Mon, 20 Nov 2023 08:59:25 -0500
parents 923e1f378617
children bc4c7d2996f3
line wrap: on
line source

# This file is part of MXE.
# See index.html for further information.

PKG             := gettext
$(PKG)_IGNORE   :=
$(PKG)_VERSION  := 0.22.4
$(PKG)_CHECKSUM := 4581d6780e0d802a88c4ce4c5173791d3cf0df7e
$(PKG)_SUBDIR   := gettext-$($(PKG)_VERSION)
$(PKG)_FILE     := gettext-$($(PKG)_VERSION).tar.gz
$(PKG)_URL      := ftp://ftp.gnu.org/pub/gnu/gettext/$($(PKG)_FILE)
$(PKG)_DEPS     := libiconv

define $(PKG)_UPDATE
    $(WGET) -q -O- 'http://ftp.gnu.org/gnu/gettext/' | \
    grep 'gettext-' | \
    $(SED) -n 's,.*gettext-\([0-9][^>]*\)\.tar.*,\1,p' | \
    $(SORT) -Vr | \
    head -1
endef

define $(PKG)_BUILD
    # while we are patching stuff, we may need to run reconf
    cd '$(1)' && aclocal && libtoolize --automake --copy --force
    cd '$(1)' && WANT_AUTOMAKE=latest ./autogen.sh --skip-gnulib
    cd '$(1)/gettext-runtime' && ./configure \
        $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
        $(ENABLE_SHARED_OR_STATIC) \
        --prefix='$(HOST_PREFIX)' \
        --enable-threads=win32 \
        --without-libexpat-prefix \
        --without-libxml2-prefix \
        CONFIG_SHELL=$(SHELL) && $(CONFIGURE_POST_HOOK)
    $(MAKE) -C '$(1)/gettext-runtime/intl' -j '$(JOBS)' 
    $(MAKE) -C '$(1)/gettext-runtime/intl' -j 1 $(MXE_DISABLE_DOCS) install DESTDIR='$(3)'
endef