summaryrefslogtreecommitdiffhomepage
path: root/build
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2017-01-20 17:52:34 +0100
committerLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2017-01-20 17:55:09 +0100
commitbbbbdb9bd3ffd1de751b78a71cba929020b234a4 (patch)
tree5b11329427923075ebd261291acf6795051a3520 /build
parent231456623ea62bd7b836de44336d9e7b5cf88880 (diff)
downloadmidipix_build-bbbbdb9bd3ffd1de751b78a71cba929020b234a4.tar.bz2
midipix_build-bbbbdb9bd3ffd1de751b78a71cba929020b234a4.tar.xz
build.sh: fetch ${GITROOT}/ports/chainport during `init' target and apply patches found within.
build/pkg.build, etc/build.usage, vars/{build,chainport}.vars: adds newly introduced `init' target. patches/{binutils,gmp,lib{elf,ffi}}-*.patch: moved to chainport repository.
Diffstat (limited to 'build')
-rw-r--r--build/pkg.build16
1 files changed, 9 insertions, 7 deletions
diff --git a/build/pkg.build b/build/pkg.build
index 5c31f778..029980b4 100644
--- a/build/pkg.build
+++ b/build/pkg.build
@@ -59,10 +59,11 @@ if ! is_build_script_done build_dir; then
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
+ ${MIDIPIX_BUILD_PWD}/../${PKG_SUBDIR}_pre.local@${BUILD_HNAME}.patch \
+ ${WORKDIR}/chainport/${PKG_SUBDIR}_pre.midipix.patch \
+ ${MIDIPIX_BUILD_PWD}/patches/${PKG_SUBDIR}_pre.local.patch \
+ ${MIDIPIX_BUILD_PWD}/patches/${PKG_SUBDIR}_pre.local@${BUILD_HNAME}.patch; do
if [ -r "${__}" ]; then
patch -b -d ${PKG_SUBDIR} -p1 < ${__};
fi;
@@ -116,10 +117,11 @@ if ! is_build_script_done patch; then
set -o noglob;
fi;
for __patch_fname in \
- ${MIDIPIX_BUILD_PWD}/patches/${PKG_SUBDIR}.local.patch \
- ${MIDIPIX_BUILD_PWD}/patches/${PKG_SUBDIR}.local@${BUILD_HNAME}.patch \
${MIDIPIX_BUILD_PWD}/../${PKG_SUBDIR}.local.patch \
- ${MIDIPIX_BUILD_PWD}/../${PKG_SUBDIR}.local@${BUILD_HNAME}.patch; do
+ ${MIDIPIX_BUILD_PWD}/../${PKG_SUBDIR}.local@${BUILD_HNAME}.patch \
+ ${WORKDIR}/chainport/${PKG_SUBDIR}.midipix.patch \
+ ${MIDIPIX_BUILD_PWD}/patches/${PKG_SUBDIR}.local.patch \
+ ${MIDIPIX_BUILD_PWD}/patches/${PKG_SUBDIR}.local@${BUILD_HNAME}.patch; do
if [ -r "${__patch_fname}" ]; then
patch -b -d ${PKG_SUBDIR} -p1 < ${__patch_fname};
fi;
@@ -178,7 +180,7 @@ if ! is_build_script_done build; then
pkg_${PKG_NAME}_build;
elif [ -n "${PKG_BUILD_CMDLINE}" ]; then
${PKG_BUILD_CMDLINE};
- else
+ elif [ ${PKG_NO_MAKE_BUILD:-0} -eq 0 ]; then
if [ "${PKG_SLIBTOOL}" != "default" ]; then
export MAKE="make LIBTOOL=${PKG_SLIBTOOL:-slibtool}";
fi;