mirror of
https://github.com/monero-project/monero.git
synced 2024-12-13 07:34:21 -05:00
5c27fd853f
All patching should be in _preprocess_cmd. config_cmd should just run configure and nothing else before it, otherwise $PATH is broken when it runs. Also remove redundant settings to configure, _autoconf already sets them. We leave explicit AR_FLAGS settings because the builtin rule uses ARFLAGS, and so would leave AR_FLAGS unset otherwise.
30 lines
970 B
Makefile
30 lines
970 B
Makefile
package=readline
|
|
$(package)_version=8.0
|
|
$(package)_download_path=https://ftp.gnu.org/gnu/readline
|
|
$(package)_file_name=$(package)-$($(package)_version).tar.gz
|
|
$(package)_sha256_hash=e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461
|
|
$(package)_dependencies=ncurses
|
|
|
|
define $(package)_set_vars
|
|
$(package)_build_opts=CC="$($(package)_cc)"
|
|
$(package)_config_opts+=--prefix=$(host_prefix)
|
|
$(package)_config_opts+=--exec-prefix=$(host_prefix)
|
|
$(package)_config_opts+=--host=$(HOST)
|
|
$(package)_config_opts+=--disable-shared --with-curses
|
|
$(package)_config_opts_release=--disable-debug-mode
|
|
$(package)_build_opts=CFLAGS="$($(package)_cflags) $($(package)_cppflags) -fPIC"
|
|
endef
|
|
|
|
define $(package)_config_cmds
|
|
$($(package)_autoconf)
|
|
endef
|
|
|
|
define $(package)_build_cmds
|
|
$(MAKE) $($(package)_build_opts)
|
|
endef
|
|
|
|
define $(package)_stage_cmds
|
|
$(MAKE) install DESTDIR=$($(package)_staging_dir) prefix=$(host_prefix) exec-prefix=$(host_prefix)
|
|
endef
|
|
|