summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-06-02 18:30:14 +0300
committerAndrei Karas <akaras@inbox.ru>2018-06-02 18:30:14 +0300
commit4ec822663e305059b07b5143162140ce55fcd1ed (patch)
tree7e5622b7c84f8b2b2693de8d5d4e54869d21a09a
parent84f432a501876bac92f5267243e0c48faab760b1 (diff)
parentc1a9383393ef1acbfc87ae1ce8fd5abaa746e801 (diff)
downloadspm-4ec822663e305059b07b5143162140ce55fcd1ed.tar.gz
spm-4ec822663e305059b07b5143162140ce55fcd1ed.tar.bz2
spm-4ec822663e305059b07b5143162140ce55fcd1ed.tar.xz
spm-4ec822663e305059b07b5143162140ce55fcd1ed.zip
Merge branch 'master' into zlib
-rw-r--r--packages/libxml2.sh2
-rw-r--r--scripts/include/common.sh20
2 files changed, 13 insertions, 9 deletions
diff --git a/packages/libxml2.sh b/packages/libxml2.sh
index 88d1b73..6bc00c8 100644
--- a/packages/libxml2.sh
+++ b/packages/libxml2.sh
@@ -1,4 +1,4 @@
-SRCURL=git://git.gnome.org/libxml2
+SRCURL=https://gitlab.gnome.org/GNOME/libxml2.git
ENV_PATH="bin:lib:include"
ENV_LD_LIBRARY_PATH="lib"
diff --git a/scripts/include/common.sh b/scripts/include/common.sh
index 974d66c..2383724 100644
--- a/scripts/include/common.sh
+++ b/scripts/include/common.sh
@@ -18,6 +18,10 @@ function common_build_init {
export envname=${package}
fi
+ if [[ "${MAKE}" == "" ]]; then
+ export MAKE="make"
+ fi
+
export srcdir=$(realpath "${dir}/../src/${package}")
if [ ! -d "${srcdir}" ]; then
echo "Error: Package sources directory not exists for package '${package}'."
@@ -111,8 +115,8 @@ function run_autoreconf {
echo "cd ${srcdir}/${SUBDIR}"
cd "${srcdir}/${SUBDIR}"
check_error $?
- echo "make distclean"
- make distclean
+ echo "${MAKE} distclean"
+ ${MAKE} distclean
echo "autoreconf ${flags}"
autoreconf ${flags}
unset flags
@@ -169,21 +173,21 @@ function run_make {
if [[ "${jobs}" == "" ]]; then
if [ -f "/proc/cpuinfo" ]; then
jobs="$(cat /proc/cpuinfo|grep processor|wc -l)"
+ j=" -j${jobs}"
else
- jobs="1"
+ j=""
fi
fi
- j=" -j${jobs}"
- echo "make$j"
- make$j
+ echo "${MAKE}$j"
+ ${MAKE}$j
check_error $?
unset j
}
function run_make_install {
- echo "make install"
- make install
+ echo "${MAKE} install"
+ ${MAKE} install
check_error $?
}