From 8523a8508b3b3350547e842ace63b10bd22a8fe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz=20=28arab=2C=20vx?= =?UTF-8?q?p=29?= Date: Wed, 7 Dec 2016 21:21:02 +0100 Subject: weechat: patch autogen.sh to run autoreconf w/o -f so that it doesn't overwrite our config.sub. build/pkg.build: adds `patch_pre' build step. etc/build.usage: updated to document the above. --- build/pkg.build | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'build') diff --git a/build/pkg.build b/build/pkg.build index bcc6c20b..d87fdab8 100644 --- a/build/pkg.build +++ b/build/pkg.build @@ -55,7 +55,22 @@ if ! is_build_script_done build_dir; then [ "${PKG_SUBDIR}" != "${PKG_BUILD_DIR}" ] &&\ secure_rm ${PKG_BUILD_DIR}; insecure_mkdir ${PKG_BUILD_DIR}; - set_build_script_done build_dir -patch; + set_build_script_done build_dir -patch_pre; +fi; +if ! is_build_script_done patch_pre; then + for __ in \ + ${MIDIPIX_BUILD_PWD}/patches/${PKG_SUBDIR}_pre.local.patch \ + ${MIDIPIX_BUILD_PWD}/patches/${PKG_SUBDIR}_pre.local@${BUILD_HNAME}.patch \ + ${MIDIPIX_BUILD_PWD}/../${PKG_SUBDIR}_pre.local.patch \ + ${MIDIPIX_BUILD_PWD}/../${PKG_SUBDIR}_pre.local@${BUILD_HNAME}.patch; do + if [ -r "${__}" ]; then + patch -b -d ${PKG_SUBDIR} -p1 < ${__}; + fi; + done; unset __; + if test_cmd pkg_${PKG_NAME}_patch_pre_post; then + pkg_${PKG_NAME}_patch_pre_post; + fi; + set_build_script_done patch_pre -autoconf; fi; if [ -e ${PKG_SUBDIR}/configure -o \ -e ${PKG_SUBDIR}/configure.ac -o \ -- cgit v1.2.3