annotate src/libiconv.mk @ 3293:cf6f40cededb

Support file list generation in packages. For the following modules: - arpack - blas - build-autoconf - build-automake - build-cmake - build-gperf - build-libtool - build-msvctools - build-pkg-config - build-texinfo - bzip2 - curl - dbus - expat - fftw - fltk - fontconfig - freetype - gettext - glpk - gmp - gnuplot - gnutls - graphicsmagick - hdf5 - jasper - jpeg - lapack - lcms - libgcrypt - libgpg_error - libiconv - libidn - libpng - libssh2 - libxml2 - ncurses - nettle - openssl - pcre - pstoedit - zlib - qhull - qrupdate - qscintilla - qt - readline - suitesparse - texinfo - tiff
author Michael Goffioul <michael.goffioul@gmail.com>
date Sat, 09 Nov 2013 23:28:04 -0500
parents 7e6673cf2255
children 13be64f9f16d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2333
f653602a0500 Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents: 1944
diff changeset
1 # This file is part of MXE.
2353
99516e73b368 Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents: 2349
diff changeset
2 # See index.html 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
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
4 PKG := libiconv
448
e9afec55fd6b improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents: 424
diff changeset
5 $(PKG)_IGNORE :=
1944
955f7bfeb3fc update packages: imagemagick libiconv libvpx ogg pango x264
Mark Brand <mabrand@mabrand.nl>
parents: 759
diff changeset
6 $(PKG)_CHECKSUM := be7d67e50d72ff067b2c0291311bc283add36965
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
7 $(PKG)_SUBDIR := libiconv-$($(PKG)_VERSION)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
8 $(PKG)_FILE := libiconv-$($(PKG)_VERSION).tar.gz
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
9 $(PKG)_URL := http://ftp.gnu.org/pub/gnu/libiconv/$($(PKG)_FILE)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
10 $(PKG)_DEPS :=
132
44c3bd0085e8 translated package: libiconv
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11
44c3bd0085e8 translated package: libiconv
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
13 $(WGET) -q -O- 'http://www.gnu.org/software/libiconv/' | \
175
bd03fe11ee3d bugfix: fixed version recognition of package 'libiconv'
Volker Grabsch <vog@notjusthosting.com>
parents: 132
diff changeset
14 grep 'libiconv-' | \
bd03fe11ee3d bugfix: fixed version recognition of package 'libiconv'
Volker Grabsch <vog@notjusthosting.com>
parents: 132
diff changeset
15 $(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
16 head -1
132
44c3bd0085e8 translated package: libiconv
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 endef
44c3bd0085e8 translated package: libiconv
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18
44c3bd0085e8 translated package: libiconv
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 define $(PKG)_BUILD
759
bf4bcb3370fa changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 714
diff changeset
20 $(SED) -i 's, sed , $(SED) ,g' '$(1)/windows/windres-options'
132
44c3bd0085e8 translated package: libiconv
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 cd '$(1)' && ./configure \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
22 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
23 --prefix='$(HOST_PREFIX)' \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2525
diff changeset
24 $(ENABLE_SHARED_OR_STATIC) \
3061
f8299bb6c872 Initial support for native MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
25 CC='$(MXE_CC)' \
3225
7e6673cf2255 libiconv.mk: use CONFIGURE_CPPFLAGS and CONFIGURE_LDFLAGS instead of CPPFLAGS=...
John W. Eaton <jwe@octave.org>
parents: 3061
diff changeset
26 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
3061
f8299bb6c872 Initial support for native MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
27 --disable-nls && $(CONFIGURE_POST_HOOK)
3293
cf6f40cededb Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3225
diff changeset
28 $(MAKE) -C '$(1)' -j '$(JOBS)' install DESTDIR='$(3)'
132
44c3bd0085e8 translated package: libiconv
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 endef