annotate src/libiconv.mk @ 641:dab071eac9c0

simplified file markers
author Volker Grabsch <vog@notjusthosting.com>
date Sat, 16 Jan 2010 23:02:02 +0100
parents ff4f63767809
children 29f1ba4559ae
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
641
dab071eac9c0 simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents: 522
diff changeset
1 # This file is part of mingw-cross-env.
dab071eac9c0 simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents: 522
diff changeset
2 # See doc/index.html or doc/README for further information.
414
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 409
diff changeset
3
132
44c3bd0085e8 translated package: libiconv
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 # libiconv
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
5 PKG := libiconv
448
e9afec55fd6b improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents: 424
diff changeset
6 $(PKG)_IGNORE :=
409
35d26f6b0855 update version of packages fontconfig, glib, gtk, libevent, libiconv, libpng, libusb, ogg, pixman, sqlite and vorbis
Volker Grabsch <vog@notjusthosting.com>
parents: 341
diff changeset
7 $(PKG)_VERSION := 1.13.1
35d26f6b0855 update version of packages fontconfig, glib, gtk, libevent, libiconv, libpng, libusb, ogg, pixman, sqlite and vorbis
Volker Grabsch <vog@notjusthosting.com>
parents: 341
diff changeset
8 $(PKG)_CHECKSUM := 5b0524131cf0d7abd50734077f13aaa5508f6bbe
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
9 $(PKG)_SUBDIR := libiconv-$($(PKG)_VERSION)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
10 $(PKG)_FILE := libiconv-$($(PKG)_VERSION).tar.gz
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
11 $(PKG)_WEBSITE := http://www.gnu.org/software/libiconv/
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
12 $(PKG)_URL := http://ftp.gnu.org/pub/gnu/libiconv/$($(PKG)_FILE)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
13 $(PKG)_DEPS := gcc
132
44c3bd0085e8 translated package: libiconv
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14
44c3bd0085e8 translated package: libiconv
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 define $(PKG)_UPDATE
175
bd03fe11ee3d bugfix: fixed version recognition of package 'libiconv'
Volker Grabsch <vog@notjusthosting.com>
parents: 132
diff changeset
16 wget -q -O- 'http://www.gnu.org/software/libiconv/' | \
bd03fe11ee3d bugfix: fixed version recognition of package 'libiconv'
Volker Grabsch <vog@notjusthosting.com>
parents: 132
diff changeset
17 grep 'libiconv-' | \
bd03fe11ee3d bugfix: fixed version recognition of package 'libiconv'
Volker Grabsch <vog@notjusthosting.com>
parents: 132
diff changeset
18 $(SED) -n 's,.*libiconv-\([0-9][^>]*\)\.tar.*,\1,p' | \
bd03fe11ee3d bugfix: fixed version recognition of package 'libiconv'
Volker Grabsch <vog@notjusthosting.com>
parents: 132
diff changeset
19 head -1
132
44c3bd0085e8 translated package: libiconv
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 endef
44c3bd0085e8 translated package: libiconv
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21
44c3bd0085e8 translated package: libiconv
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 define $(PKG)_BUILD
221
b588e9bb1dcc portability fix for MacOS X
Volker Grabsch <vog@notjusthosting.com>
parents: 178
diff changeset
23 $(SED) 's, sed , $(SED) ,g' -i '$(1)/windows/windres-options'
132
44c3bd0085e8 translated package: libiconv
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 cd '$(1)' && ./configure \
44c3bd0085e8 translated package: libiconv
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 --host='$(TARGET)' \
44c3bd0085e8 translated package: libiconv
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 --prefix='$(PREFIX)/$(TARGET)' \
44c3bd0085e8 translated package: libiconv
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 --disable-shared \
44c3bd0085e8 translated package: libiconv
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 --disable-nls
424
0a2c1e2142b8 build only the necessary parts of package libiconv
Volker Grabsch <vog@notjusthosting.com>
parents: 417
diff changeset
29 $(MAKE) -C '$(1)/libcharset' -j '$(JOBS)' install
0a2c1e2142b8 build only the necessary parts of package libiconv
Volker Grabsch <vog@notjusthosting.com>
parents: 417
diff changeset
30 $(MAKE) -C '$(1)/lib' -j '$(JOBS)' install
0a2c1e2142b8 build only the necessary parts of package libiconv
Volker Grabsch <vog@notjusthosting.com>
parents: 417
diff changeset
31 $(INSTALL) -d '$(PREFIX)/$(TARGET)/include'
0a2c1e2142b8 build only the necessary parts of package libiconv
Volker Grabsch <vog@notjusthosting.com>
parents: 417
diff changeset
32 $(INSTALL) -m644 '$(1)/include/iconv.h.inst' '$(PREFIX)/$(TARGET)/include/iconv.h'
132
44c3bd0085e8 translated package: libiconv
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 endef