# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python class Recipe(recipe.Recipe): name = 'libiconv' version = '1.14' # only libraries are LGPLv2+, tools are GPLv3+ and defined below licenses = [License.LGPLv2Plus] stype = SourceType.TARBALL url = 'http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz' patches = ['libiconv/0001-Use-correct-autotools-versions.patch', 'libiconv/0002-Add-support-for-Android.patch', 'libiconv/0003-stdint-fix-build-with-Android-s-Bionic-fox-x86.patch',] configure_options = '--disable-nls --enable-static' platform_deps = {Platform.WINDOWS: ['gettext']} autoreconf_sh = './autogen.sh --skip-gnulib && autoreconf -fiv' files_bins = ['iconv', ] licenses_bins = [License.GPLv3Plus] files_libs = ['libiconv', 'libcharset', ] files_devel = ['include/iconv.h', 'include/libcharset.h', 'include/localcharset.h' ] files_lang = ['libiconv'] def prepare(self): if self.config.target_platform != Platform.LINUX: self.runtime_dep = True if self.config.target_platform == Platform.IOS: self.append_env['CFLAGS'] = '-Dlocale_charset=iconv_locale_charset'