2018-03-20 00:26:35 +00:00
|
|
|
package=libiconv
|
|
|
|
$(package)_version=1.15
|
|
|
|
$(package)_download_path=https://ftp.gnu.org/gnu/libiconv
|
|
|
|
$(package)_file_name=libiconv-$($(package)_version).tar.gz
|
|
|
|
$(package)_sha256_hash=ccf536620a45458d26ba83887a983b96827001e92a13847b45e4925cc8913178
|
2018-10-08 13:53:22 +00:00
|
|
|
$(package)_patches=fix-whitespace.patch
|
|
|
|
|
|
|
|
define $(package)_set_vars
|
|
|
|
$(package)_config_opts=--disable-nls
|
|
|
|
$(package)_config_opts=--enable-static
|
|
|
|
$(package)_config_opts=--disable-shared
|
|
|
|
$(package)_config_opts_linux=--with-pic
|
2019-11-11 08:34:47 +00:00
|
|
|
$(package)_config_opts_freebsd=--with-pic
|
2018-10-08 13:53:22 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_preprocess_cmds
|
|
|
|
cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub build-aux/ &&\
|
|
|
|
patch -p1 < $($(package)_patch_dir)/fix-whitespace.patch
|
|
|
|
endef
|
2018-03-20 00:26:35 +00:00
|
|
|
|
|
|
|
define $(package)_config_cmds
|
2018-10-08 13:53:22 +00:00
|
|
|
$($(package)_autoconf)
|
2018-03-20 00:26:35 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
|
|
|
$(MAKE)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
|
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
|
|
|
endef
|
2019-06-17 09:25:10 +00:00
|
|
|
|
|
|
|
define $(package)_postprocess_cmds
|
|
|
|
rm lib/*.la
|
|
|
|
endef
|