From 672107a200f15d952f2d8c3750e8c58be5035ee3 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: Mon, 11 Jul 2016 15:51:22 +0000 Subject: - Build slibtool_host in build level 0 and slibtool in build level 1. - Fetch lazy in 006.musl.full.build. - Infer the default number of make(1) jobs to run simultaneously from /proc/cpuinfo. - Merges into bash-4.3.local.patch. - Print all attributes off SGR at the start of a message in log_msg(). - Simplify 009.gcc.full.build and fetch{,_git}(). - Only create library archives for shared objects that have actually been installed. - Only invoke git-clone(1) and wget(1) in fetch{_git,}() when necessary. --- 101.perk.native.build | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 101.perk.native.build (limited to '101.perk.native.build') diff --git a/101.perk.native.build b/101.perk.native.build new file mode 100644 index 00000000..b0a47150 --- /dev/null +++ b/101.perk.native.build @@ -0,0 +1,53 @@ +# +# . ./build.vars and set -o errexit -o noglob are assumed. +# + +if ! is_build_script_done fetch; then + fetch_git perk ${GITROOT}/perk; + set_build_script_done fetch -configure; +fi; +if [ "${3}" = native ]; then + set_build_dir ${2} native; + if ! is_build_script_done configure; then + rm_if_exists -m -c ${PKG_BUILD_DIR}; + ../perk/configure --prefix=/usr; + set_build_script_done configure clean -build; + else + cd ${PKG_BUILD_DIR}; + fi; + if ! is_build_script_done clean; then + make ${MAKEFLAGS} clean; + set_build_script_done clean -build; + fi; + if ! is_build_script_done build; then + make; + set_build_script_done build -install; + fi; + if ! is_build_script_done install; then + make DESTDIR=${PREFIX} install; + set_build_script_done install finish; + fi; +elif [ "${3}" = cross ]; then + set_build_dir ${2} cross; + if ! is_build_script_done configure; then + rm_if_exists -m -c ${PKG_BUILD_DIR}; + ../perk/configure --prefix=/usr --target=${TARGET}; + set_build_script_done configure clean -build; + else + cd ${PKG_BUILD_DIR}; + fi; + if ! is_build_script_done clean; then + make ${MAKEFLAGS} clean; + set_build_script_done clean -build; + fi; + if ! is_build_script_done build; then + make; + set_build_script_done build -install; + fi; + if ! is_build_script_done install; then + make DESTDIR=${PKG_PREFIX} install; + set_build_script_done install finish; + fi; +fi; + +# vim:filetype=sh -- cgit v1.2.3