blob: c13c05c75a4b5356c04c3ca49faed37785cca135 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# This file is part of MXE.
# See index.html for further information.
PKG := gettext
$(PKG)_IGNORE :=
$(PKG)_VERSION := 0.19.2
$(PKG)_CHECKSUM := 3a8e0627290216d695661a748261eacda5cec8aa
$(PKG)_SUBDIR := gettext-$($(PKG)_VERSION)
$(PKG)_FILE := gettext-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := http://ftp.gnu.org/pub/gnu/gettext/$($(PKG)_FILE)
$(PKG)_URL_2 := ftp://ftp.gnu.org/pub/gnu/gettext/$($(PKG)_FILE)
$(PKG)_DEPS := gcc libiconv
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://www.gnu.org/software/gettext/' | \
grep 'gettext-' | \
$(SED) -n 's,.*gettext-\([0-9][^>]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)/gettext-runtime' && ./configure \
$(MXE_CONFIGURE_OPTS) \
--enable-threads=win32 \
--without-libexpat-prefix \
--without-libxml2-prefix \
CONFIG_SHELL=$(SHELL)
$(MAKE) -C '$(1)/gettext-runtime/intl' -j '$(JOBS)' install
endef
define $(PKG)_BUILD_$(BUILD)
mkdir '$(1).build'
cd '$(1).build' && '$(1)/configure' \
--prefix='$(PREFIX)/$(TARGET)'
$(MAKE) -C '$(1).build' -j '$(JOBS)' man1_MANS=
$(MAKE) -C '$(1).build' -j 1 install man1_MANS=
endef
|