|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
#
|
|
|
8d7a8a |
# Copyright (c) 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 LucĂa Andrea Illanes Albornoz <lucia@luciaillanes.de>
|
|
Lucio Andrés Illanes Albornoz |
e1d469 |
# set +o errexit -o noglob -o nounset is assumed.
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
#
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
|
|
Lucio Andrés Illanes Albornoz |
2b85d0 |
pkgp_configure_patch_pre() {
|
|
|
e9fa07 |
local _ppcpp_patch_path="";
|
|
|
e9fa07 |
|
|
|
e9fa07 |
for _ppcpp_patch_path in \
|
|
|
e9fa07 |
"${MIDIPIX_BUILD_PWD}/patches/${PKG_NAME}${PKG_VERSION:+-${PKG_VERSION}}_pre.local.patch" \
|
|
|
e9fa07 |
"${MIDIPIX_BUILD_PWD}/patches/${PKG_NAME}${PKG_VERSION:+-${PKG_VERSION}}_pre.local@${BUILD_HNAME}.patch";
|
|
|
e9fa07 |
do
|
|
|
e9fa07 |
if [ -r "${_ppcpp_patch_path}" ]\
|
|
|
e9fa07 |
&& ! patch -b -d "${PKG_BASE_DIR}/${PKG_SUBDIR}" -p1 < "${_ppcpp_patch_path}";
|
|
|
e9fa07 |
then
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
return 1;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
802215 |
done;
|
|
|
e9fa07 |
return 0;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
|
|
Lucio Andrés Illanes Albornoz |
2b85d0 |
pkgp_configure_patch_pre_chainport() {
|
|
|
e9fa07 |
local _ppcppc_patch_dname="" _ppcppc_patch_fname="" _ppcppc_oldpwd="";
|
|
|
e9fa07 |
_ppcppc_patch_dname="${PKG_BASE_DIR}/${PKG_SUBDIR}/patches/${PKG_NAME%%_ppcppc_*}";
|
|
|
e9fa07 |
|
|
|
e9fa07 |
if [ "${PKG_VERSION:+1}" = 1 ]; then
|
|
|
e9fa07 |
_ppcppc_patch_fname="${BUILD_WORKDIR}/chainport/patches/${PKG_NAME%%_ppcppc_*}/${PKG_NAME%%_ppcppc_*}-${PKG_VERSION}.midipix.patch";
|
|
Lucio Andrés Illanes Albornoz |
e1d469 |
fi;
|
|
|
e9fa07 |
if [ -e "${_ppcppc_patch_fname}" ]; then
|
|
|
e9fa07 |
if ! rtl_fileop mkdir "${_ppcppc_patch_dname}"\
|
|
|
e9fa07 |
|| ! rtl_fileop cp "${_ppcppc_patch_fname}" "${_ppcppc_patch_dname}"; then
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
return 1;
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
fi;
|
|
Lucio Andrés Illanes Albornoz |
2b85d0 |
fi;
|
|
|
e9fa07 |
return 0;
|
|
Lucio Andrés Illanes Albornoz |
2b85d0 |
};
|
|
Lucio Andrés Illanes Albornoz |
2b85d0 |
|
|
Lucio Andrés Illanes Albornoz |
2b85d0 |
pkg_configure_patch_pre() {
|
|
|
e9fa07 |
local _pcpp_group_name="${1}" _pcpp_pkg_name="${2}" _pcpp_restart_at="${3}";
|
|
|
e9fa07 |
|
|
Lucio Andrés Illanes Albornoz |
2b85d0 |
if ! pkgp_configure_patch_pre_chainport\
|
|
|
e9fa07 |
|| ! pkgp_configure_patch_pre;
|
|
|
e9fa07 |
then
|
|
Lucio Andrés Illanes Albornoz |
2b85d0 |
return 1;
|
|
Lucio Andrés Illanes Albornoz |
2b85d0 |
fi;
|
|
|
e9fa07 |
return 0;
|
|
Lucio Andrés Illanes Albornoz |
2b85d0 |
};
|
|
Lucio Andrés Illanes Albornoz |
2b85d0 |
|
|
|
64844b |
# vim:filetype=sh textwidth=0
|