view src/build-gettext.mk @ 6445:72648e3263e4

* src/build-gettext.mk, src/gettext.mk: update to v0.21.1
author John Donoghue <john.donoghue@ieee.org>
date Mon, 10 Oct 2022 14:22:37 -0400
parents d18a5545df0d
children 923e1f378617
line wrap: on
line source

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

PKG             := build-gettext
$(PKG)_IGNORE   :=
$(PKG)_VERSION  := 0.21.1
$(PKG)_CHECKSUM := 8458f2b0d4a84b27a41cce92cacc09b3e833cedc
$(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     := 

define $(PKG)_UPDATE
    $(WGET) -q -O- 'http://ftp.gnu.org/gnu/gettext/?C=M;O=D' | \
    $(SED) -n 's,.*<a href="gettext-\([0-9\.]*\)\.tar.*,\1,p' | \
    $(SORT) -V | \
    tail -1
endef

## See
##
## https://octave.discourse.group/t/octave-space-fails-to-build-gnutls/1573/19
##
## for a discussion about the CCACHE_NODIRECT setting below.

define $(PKG)_BUILD
  mkdir '$(1)/.build'
  cd '$(1)/.build' && \
    '$(1)/configure' \
      --prefix='$(BUILD_TOOLS_PREFIX)' \
      --without-libexpat-prefix \
      --without-libxml2-prefix \
      --without-emacs \
      $($(PKG)_CONFIGURE_OPTIONS)
  CCACHE_NODIRECT=1 $(MAKE) -C '$(1)/.build' -j '$(JOBS)'
  $(MAKE) -C '$(1)/.build' -j 1 $(MXE_DISABLE_DOCS) install DESTDIR='$(3)'
endef