blob: 724c39b61d845607bc1d92dc5f65385f6821b803 (
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
38
39
40
|
# This file is part of MXE.
# See index.html for further information.
PKG := libiconv
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.14
$(PKG)_CHECKSUM := 72b24ded17d687193c3366d0ebe7cde1e6b18f0df8c55438ac95be39e8a30613
$(PKG)_SUBDIR := libiconv-$($(PKG)_VERSION)
$(PKG)_FILE := libiconv-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := http://ftp.gnu.org/pub/gnu/libiconv/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://www.gnu.org/software/libiconv/' | \
grep 'libiconv-' | \
$(SED) -n 's,.*libiconv-\([0-9][^>]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
$(SED) -i 's, sed , $(SED) ,g' '$(1)/windows/windres-options'
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
--disable-nls
$(MAKE) -C '$(1)/libcharset' -j '$(JOBS)' install
$(MAKE) -C '$(1)/lib' -j '$(JOBS)' install
$(INSTALL) -d '$(PREFIX)/$(TARGET)/include'
$(INSTALL) -m644 '$(1)/include/iconv.h.inst' '$(PREFIX)/$(TARGET)/include/iconv.h'
# charset.alias is redundant on mingw and modern glibc systems
rm -f '$(PREFIX)/$(TARGET)/lib/charset.alias'
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
|