diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-12-07 21:21:02 +0100 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-12-07 21:21:02 +0100 |
commit | 8523a8508b3b3350547e842ace63b10bd22a8fe7 (patch) | |
tree | ec857c433df6af1ffe8eb109296d748d87dd8f07 /build | |
parent | 754104858b77167068662d62fa732395352ced23 (diff) | |
download | midipix_build-8523a8508b3b3350547e842ace63b10bd22a8fe7.tar.bz2 midipix_build-8523a8508b3b3350547e842ace63b10bd22a8fe7.tar.xz |
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.
Diffstat (limited to 'build')
-rw-r--r-- | build/pkg.build | 17 |
1 files changed, 16 insertions, 1 deletions
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 \ |