Blame vars/python2_host.vars

Lucio Andrés Illanes Albornoz (arab, vxp) 353e64
#
Lucio Andrés Illanes Albornoz 2b85d0
# set +o errexit -o noglob is assumed.
Lucio Andrés Illanes Albornoz (arab, vxp) 353e64
#
Lucio Andrés Illanes Albornoz (arab, vxp) 353e64
Lucio Andrés Illanes Albornoz d279a9
pkg_python2_host_fetch_download() {
Lucio Andrés Illanes Albornoz a24910
	pkg_fetch_download;
Lucio Andrés Illanes Albornoz c6d6e0
	rtl_fileop rm "${PKG_BASE_DIR}/sbpython2";
Lucio Andrés Illanes Albornoz c6d6e0
	rtl_fetch_urls_git "${PKG_BASE_DIR}/build" "sbpython2=${DEFAULT_GITROOT}/python/sbpython2@main";
Lucio Andrés Illanes Albornoz c6d6e0
	rtl_fileop cp ../sbpython2/project/config/cfgdefs.sh ../sbpython2/project/config/cfgdefs.sh.orig;
Lucio Andrés Illanes Albornoz 3c21bc
	sed -i"" -e"s/-ltinfo/&w/" -e"s/mb_ncurses_libs='\([^']\+\)'/mb_ncurses_libs='\1 -ltinfow'/" ../sbpython2/project/config/cfgdefs.sh;
Lucio Andrés Illanes Albornoz 3c21bc
	sed -i"" -e'108a\
Lucio Andrés Illanes Albornoz 3c21bc
cfgtest_ldflags_append "-L$mb_prefix/lib"' ../sbpython2/project/config/cfgdefs.sh;
Lucio Andrés Illanes Albornoz 2e7f2b
	sed -i"" '/^PYCOMPILE_CFLAGS.*+= -std=c99/a\
Lucio Andrés Illanes Albornoz 2e7f2b
PYCOMPILE_CFLAGS	+= -I'"${PREFIX}"'/include
Lucio Andrés Illanes Albornoz 2e7f2b
' ../sbpython2/project/pycompile.mk
Lucio Andrés Illanes Albornoz d279a9
	ex_pkg_state_set "${PKG_NAME}" fetch_download -fetch_extract;
Lucio Andrés Illanes Albornoz cff33e
};
Lucio Andrés Illanes Albornoz cff33e
Lucio Andrés Illanes Albornoz (arab, vxp) 353e64
# vim:filetype=sh