2018-03-19 18:26:35 -06:00
|
|
|
package=readline
|
2019-01-29 08:18:47 -07:00
|
|
|
$(package)_version=8.0
|
|
|
|
$(package)_download_path=https://ftp.gnu.org/gnu/readline
|
2018-03-19 18:26:35 -06:00
|
|
|
$(package)_file_name=$(package)-$($(package)_version).tar.gz
|
2019-01-29 08:18:47 -07:00
|
|
|
$(package)_sha256_hash=e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461
|
2019-06-17 03:26:04 -06:00
|
|
|
$(package)_dependencies=ncurses
|
2018-03-19 18:26:35 -06:00
|
|
|
|
|
|
|
define $(package)_set_vars
|
2019-09-07 14:02:11 -06:00
|
|
|
$(package)_build_opts=CC="$($(package)_cc)"
|
2019-11-13 06:50:17 -07:00
|
|
|
$(package)_config_env=AR="$($(package)_ar)" RANLIB="$($(package)_ranlib)" CC="$($(package)_cc)" LDFLAGS="-L$(host_prefix)/lib" ARFLAGS=$($(package)_arflags)
|
2019-09-07 14:02:11 -06:00
|
|
|
$(package)_config_env_darwin=RANLIB="$(host_prefix)/native/bin/x86_64-apple-darwin11-ranlib" AR="$(host_prefix)/native/bin/x86_64-apple-darwin11-ar" CC="$(host_prefix)/native/bin/$($(package)_cc)"
|
|
|
|
$(package)_config_opts+=--prefix=$(host_prefix)
|
2019-06-17 03:26:04 -06:00
|
|
|
$(package)_config_opts+=--exec-prefix=$(host_prefix)
|
|
|
|
$(package)_config_opts+=--host=$(HOST)
|
|
|
|
$(package)_config_opts+=--disable-shared --with-curses
|
2018-03-19 18:26:35 -06:00
|
|
|
$(package)_config_opts_release=--disable-debug-mode
|
2019-06-17 03:26:04 -06:00
|
|
|
$(package)_config_opts_darwin+=RANLIB="$(host_prefix)/native/bin/x86_64-apple-darwin11-ranlib" AR="$(host_prefix)/native/bin/x86_64-apple-darwin11-ar" CC="$(host_prefix)/native/bin/$($(package)_cc)"
|
2018-03-19 18:26:35 -06:00
|
|
|
$(package)_build_opts=CFLAGS="$($(package)_cflags) $($(package)_cppflags) -fPIC"
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_config_cmds
|
|
|
|
./configure $($(package)_config_opts)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
|
|
|
$(MAKE) $($(package)_build_opts)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
2019-06-17 03:26:04 -06:00
|
|
|
$(MAKE) install DESTDIR=$($(package)_staging_dir) prefix=$(host_prefix) exec-prefix=$(host_prefix)
|
2018-03-19 18:26:35 -06:00
|
|
|
endef
|
|
|
|
|