|
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) |
32ad21 |
: ${BUILD_STEPS:="all:all
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
32ad21 |
fetch_distclean:variant fetch_wget:dynamic fetch_git:dynamic fetch_extract:dynamic fetch_subdirs:invariant fetch:virtual
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c27bea |
configure_patch_pre:dynamic configure_autotools:dynamic configure_patch:dynamic configure:dynamic
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c27bea |
build_clean:variant build:dynamic
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c27bea |
install_subdirs:dynamic install_make:dynamic install_files:dynamic install_libs:dynamic
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c27bea |
install_pkgconfig:dynamic install_purge_la:dynamic install_strip:dynamic install:dynamic
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
32ad21 |
finish:finish"};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c27bea |
: ${PKG_BUILD_VARS:="BASE_DIR BUILD_DIR BUILD_STEPS_DISABLE BUILD_TYPE
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c27bea |
CFLAGS_BUILD_EXTRA CFLAGS_CONFIGURE CFLAGS_CONFIGURE_EXTRA
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a4338 |
CFLAGS_INSTALL_EXTRA CONFIG_CACHE 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) |
d01c02 |
LDFLAGS_INSTALL_EXTRA MAKE_INSTALL_VNAME MAKEFLAGS_BUILD
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
d01c02 |
MAKEFLAGS_BUILD_EXTRA MAKEFLAGS_INSTALL MAKEFLAGS_INSTALL_EXTRA
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c8e133 |
NO_LOG_VARS SHA256SUM SLIBTOOL SUBDIR TARGET URL URL_TYPE URLS_GIT VERSION"};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
3961f3 |
: ${CLEAR_ENV_VARS_EXCEPT:="ARG_VERBOSE ARG_VERBOSE2 ARG_VERBOSE3 DEFAULT_GITROOT_HEAD HOME PATH SHELL TERM TARBALL_SIGN_GPG_KEY USER"};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
7e8369 |
: ${CLEAR_PREFIX_DIRS:="bin i686-nt32-midipix doc include info lib lib64 libexec man minipix native sbin share tmp usr x86_64-nt64-midipix x86_64-w64-mingw32"};
|
|
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) |
d01c02 |
: ${DEFAULT_BUILD_CPUS:=1};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
d01c02 |
: ${DEFAULT_CFLAGS_DEBUG:="-g2 -O0"};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
d01c02 |
: ${DEFAULT_CFLAGS_DEBUG_HOST:="-g0 -O2"};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
d01c02 |
: ${DEFAULT_CFLAGS_DEBUG_RUNTIME:="-g3 -O0"};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
d01c02 |
: ${DEFAULT_CFLAGS_RELEASE:="-g0 -O2"};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
d01c02 |
: ${DEFAULT_CFLAGS_RELEASE_HOST:="-g0 -O2"};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
d01c02 |
: ${DEFAULT_CFLAGS_RELEASE_RUNTIME:="-g0 -O2"};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
32ad21 |
: ${DEFAULT_CFLAGS:=$(ex_get_var_unsafe "DEFAULT_CFLAGS_$(ex_toupper "${BUILD}")")};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
d01c02 |
: ${DEFAULT_CFLAGS_CONFIGURE:=${DEFAULT_CFLAGS}};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
32ad21 |
: ${DEFAULT_CFLAGS_HOST:=$(ex_get_var_unsafe "DEFAULT_CFLAGS_$(ex_toupper "${BUILD}")_HOST")};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
32ad21 |
: ${DEFAULT_CFLAGS_RUNTIME:=$(ex_get_var_unsafe "DEFAULT_CFLAGS_$(ex_toupper "${BUILD}")_RUNTIME")};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
d01c02 |
: ${DEFAULT_GITROOT:=git://midipix.org};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
d01c02 |
: ${DEFAULT_GITROOT_HEAD:=git://midipix.org};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
d01c02 |
: ${DEFAULT_MAKE_INSTALL_VNAME:=DESTDIR};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
981a63 |
: ${DEFAULT_MAKEFLAGS_BUILD:=-j${DEFAULT_BUILD_CPUS}};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
d01c02 |
: ${DEFAULT_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) |
d01c02 |
: ${LOG_ENV_VARS:="HOME PATH SHELL USER GITROOT ARCH BUILD
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
d01c02 |
HOST_TOOLCHAIN_CFLAGS_CONFIGURE NATIVE_TOOLCHAIN_CFLAGS_CONFIGURE
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
d01c02 |
RUNTIME_CFLAGS_CONFIGURE LIB_PACKAGES_CFLAGS_CONFIGURE
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
d01c02 |
LEAF_PACKAGES_CFLAGS_CONFIGURE MINIPIX_CFLAGS_CONFIGURE
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
d01c02 |
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) |
3961f3 |
: ${LOG_MSG_VNFO_COLOUR:=96};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
3961f3 |
: ${LOG_MSG_VVFO_COLOUR:=96};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
3961f3 |
: ${LOG_MSG_VVVO_COLOUR:=96};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
49b460 |
: ${LOG_MSG_SUCC_COLOUR:=92};
|
|
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
|