midipix / build / midipix_build

Forked from build/midipix_build 4 years ago
Clone

Blame vars/env.vars

Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
#
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
# WARNING: Do _NOT_ use whitespaces (` ') or tab (`	')
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
# characters in any of the variables below save for MAKEFLAGS,
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
# PATH, and TIMESTAMP_FMT.
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
#
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
# $PREFIX_{CROSS,NATIVE} and $WORKDIR must be immediately
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
# beneath $PREFIX. $PREFIX must be o+rwx. The variables mentioned
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
# should not be forward slash-terminated.
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
#
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
# Path names & variables
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${PREFIX_ROOT:=${HOME}/midipix};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${PREFIX:=${PREFIX_ROOT}/${ARCH}/${BUILD}};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${PREFIX_MINIPIX:=${PREFIX}/minipix};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${PREFIX_NATIVE:=${PREFIX}/native};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${PREFIX_CROSS:=${PREFIX}/${TARGET}};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${DLCACHEDIR:=${PREFIX_ROOT}/dlcache};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${WORKDIR:=${PREFIX}/tmp};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${BUILD_STEPS:="disabled:always setup_vars:always setup_env:always
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
	all:abstract fetch:main extract:main clone:main patch_pre:main
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
	build_dir:always distclean:main work_dir:always autoconf:main patch:main
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
	configure:main clean:optional build:main install_pre:main install:main
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
	strip:main finish:always"};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${PKG_BUILD_VARS:="BUILD_CMDLINE BUILD_DIR BUILD_STEPS_DISABLE
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
	BUILD_TYPE CFLAGS_BUILD_EXTRA CFLAGS_CONFIGURE CFLAGS_CONFIGURE_EXTRA
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
	CFLAGS_INSTALL_EXTRA CONFIG_CACHE_EXTRA CONFIGURE CONFIGURE_ARGS
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
	CONFIGURE_ARGS_EXTRA CXXFLAGS_CONFIGURE_EXTRA DISABLED
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
	ENV_VARS_EXTRA INSTALL_FILES INSTALL_TARGET INSTALL_TARGET_EXTRA
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
	LDFLAGS_BUILD_EXTRA LDFLAGS_CONFIGURE LDFLAGS_CONFIGURE_EXTRA
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
	LDFLAGS_INSTALL_EXTRA MAKEFLAGS_BUILD MAKEFLAGS_BUILD_EXTRA
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
	MAKEFLAGS_INSTALL MAKEFLAGS_INSTALL_EXTRA NO_CLEAN NO_INSTALL_LIBS
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
	NO_MAKE_INSTALL PREFIX_EXTRA SHA256SUM SLIBTOOL SUBDIR TARGET URL
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
	URL_TYPE URLS_GIT VERSION"};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${CLEAR_ENV_VARS_EXCEPT:="ARG_VERBOSE GITROOT_HEAD HOME PATH SHELL TERM TARBALL_SIGN_GPG_KEY USER"};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${CLEAR_PREFIX_DIRS:="bin i686-nt32-midipix include lib lib64 libexec minipix native share tmp x86_64-nt64-midipix"};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
# Default flags
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${BUILD_CPUS:=1};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${CFLAGS_DEBUG:="-g2 -O0"};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${CFLAGS_DEBUG_HOST:="-g0 -O2"};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${CFLAGS_DEBUG_RUNTIME:="-g3 -O0"};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${CFLAGS_RELEASE:="-g0 -O2"};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${CFLAGS_RELEASE_HOST:="-g0 -O2"};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${CFLAGS_RELEASE_RUNTIME:="-g0 -O2"};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${CFLAGS_DEFAULT:=$(get_var_unsafe "CFLAGS_$(toupper "${BUILD}")")};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${CFLAGS_DEFAULT_HOST:=$(get_var_unsafe "CFLAGS_$(toupper "${BUILD}")_HOST")};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${CFLAGS_DEFAULT_RUNTIME:=$(get_var_unsafe "CFLAGS_$(toupper "${BUILD}")_RUNTIME")};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${CFLAGS_CONFIGURE:=${CFLAGS_DEFAULT}};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${DEFAULT_MAKEFLAGS_BUILD:=-j${BUILD_CPUS}};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${GITROOT:=git://midipix.org};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${GITROOT_HEAD:=git://midipix.org};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${WGET_ARGS:="--no-check-certificate"};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
# Build {log,status} & tarball names
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${BUILD_LOG_FNAME:=${PREFIX}/build.log};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${BUILD_LOG_LAST_FNAME:=${PREFIX}/build.log.last};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${BUILD_STATUS_IN_PROGRESS_FNAME:=${PREFIX}/BUILD_IN_PROGRESS};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${LOG_ENV_VARS:="HOME PATH SHELL USER GITROOT ARCH BUILD HOST_TOOLCHAIN_CFLAGS_CONFIGURE NATIVE_TOOLCHAIN_CFLAGS_CONFIGURE RUNTIME_CFLAGS_CONFIGURE LIB_PACKAGES_CFLAGS_CONFIGURE LEAF_PACKAGES_CFLAGS_CONFIGURE MINIPIX_CFLAGS_CONFIGURE PREFIX PREFIX_NATIVE PREFIX_CROSS WORKDIR"};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${LOG_MSG_FAIL_COLOUR:=91};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${LOG_MSG_INFO_COLOUR:=93};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${LOG_MSG_SUCC_COLOUR:=92};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${LOG_MSG_WARN_COLOUR:=96};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${TARBALL_CROSS_FNAME_PREFIX:=midipix-${ARCH}-${BUILD}_cross.};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${TARBALL_FNAME_PREFIX:=midipix-${ARCH}-${BUILD}.};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${TARBALL_MINIPIX_FNAME_PREFIX:=minipix-${ARCH}-${BUILD}.};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${TARBALL_SIGN_GPG_KEY:=};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${TARBALL_SRC_FNAME_PREFIX:=midipix-${ARCH}-${BUILD}_src.};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${TARBALL_SUFFIX:=xz};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${TIMESTAMP_FMT:="%Y/%m/%d %H:%M:%S"};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${TIMESTAMP_FMT_STATUS_FILES:=%Y-%m-%d-%H-%M-%S};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
# Check predicates
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${CHECK_PREREQ_CMDS:="aclocal autoconf autopoint awk basename bunzip2 find flex gcc git groff gunzip install ld libtool lzma make makeinfo msgfmt nl nroff openssl paste patch python sed sha256sum sort tar tee tic tr uname wget xz"};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${CHECK_PREREQ_FILES:="/usr/include/gmpxx.h /usr/include/mpc.h /usr/include/mpfr.h"};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${CHECK_PREREQ_FILES_DYNAMIC:='/usr/share/groff/$(groff -v 2>/dev/null | awk '\''/^GNU groff version /{print $NF}'\'')/tmac/e.tmac'};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${CHECK_PREREQ_PERL_MODULES:="autodie ExtUtils::MakeMaker"};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${CHECK_PATH_VARS:="PREFIX PREFIX_NATIVE PREFIX_CROSS DLCACHEDIR WORKDIR"};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${CHECK_UPDATES_SKIP:="gmp mpfr mpc binutils binutils_host install_strip_host pkgconf_host psxtypes pemagine dalist ntcon ntapi psxscl psxscl_strace ntctty ptycon pkgconf libevent libressl"};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
: ${CHECK_UPDATES_SHOW_NEW:=6};
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
# vim:filetype=sh textwidth=0