summaryrefslogtreecommitdiffstats
path: root/plugins/native/gettext.mk
blob: ea6edcb0fdd227b3109465b61ce4e8264f9894f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# This file is part of MXE. See LICENSE.md for licensing information.

PKG                  := gettext
$(PKG)_TARGETS       := $(BUILD) $(MXE_TARGETS)
$(PKG)_DEPS_$(BUILD) := libiconv

define $(PKG)_BUILD_$(BUILD)
    mkdir '$(1).build'
    cd    '$(1).build' && '$(1)/configure' \
        --prefix='$(PREFIX)/$(TARGET)' \
        --disable-shared \
        --with-included-libxml
    $(MAKE) -C '$(1).build' -j '$(JOBS)' man1_MANS=
    $(MAKE) -C '$(1).build' -j 1 install man1_MANS=
endef