Blame vars.env.d/050.pathsvars.env

bf1a83
#
bf1a83
# Copyright (c) 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 LucĂ­a Andrea Illanes Albornoz <lucia@luciaillanes.de>
bf1a83
#
bf1a83
# WARNING: Do _NOT_ use whitespaces (` ') or tab (`	')
bf1a83
# characters in any of the variables below save for MAKEFLAGS,
bf1a83
# PATH, and TIMESTAMP_FMT.
bf1a83
#
bf1a83
# ${PREFIX_{CROSS,MINGW32,MINIPIX,NATIVE,RPM}} and ${BUILD_WORKDIR}
bf1a83
# must be immediately beneath ${PREFIX}. ${PREFIX} must be o+rwx.
bf1a83
# The variables mentioned should not be forward slash-terminated.
bf1a83
#
bf1a83
bf1a83
#
02bbcd
# Path names
bf1a83
: ${PREFIX_ROOT:="${HOME}/midipix"};
bf1a83
: ${PREFIX:="${PREFIX_ROOT}/${ARCH}/${BUILD_KIND}"};
308fa7
: ${PREFIX_LOCAL:="${PREFIX}/localcross"};
308fa7
: ${PREFIX_LOCAL_CROSS:="${PREFIX}/localcross/${DEFAULT_TARGET}"};
bf1a83
: ${PREFIX_CROSS:="${PREFIX}/${DEFAULT_TARGET}"};
308fa7
: ${PREFIX_LOCAL_CROSS_MINGW32:="${PREFIX}/localcross/x86_64-w64-mingw32"};
bf1a83
: ${PREFIX_MINGW32:="${PREFIX}/x86_64-w64-mingw32"};
bf1a83
: ${PREFIX_MINIPIX:="${PREFIX}/minipix"};
bf1a83
: ${PREFIX_NATIVE:="${PREFIX}/native"};
bf1a83
: ${PREFIX_RPM:="${PREFIX}/rpm"};
bf1a83
: ${BUILD_DLCACHEDIR:="${PREFIX_ROOT}/dlcache"};
bf1a83
: ${BUILD_WORKDIR:="${PREFIX}/tmp"};
02bbcd
: ${DEFAULT_INSTALL_FILES_DESTDIR:="								\
02bbcd
	/=bin /=include /=lib /=lib/pkgconfig /=sbin						\
02bbcd
	/=share /=share/doc /=share/info /=share/man						\
02bbcd
	/=share/man/man1 /=share/man/man2 /=share/man/man3 /=share/man/man4 /=share/man/man5	\
02bbcd
	/=share/man/man6 /=share/man/man7 /=share/man/man8 /=share/man/man9			\
02bbcd
	@share/doc=doc										\
02bbcd
	@share/info=info									\
02bbcd
	@lib=lib64										\
02bbcd
	@share/man=man										\
02bbcd
	@../lib/pkgconfig=share/pkgconfig							\
02bbcd
	@.=usr"};
02bbcd
02bbcd
#
02bbcd
# Build {log,status} & tarball names
02bbcd
: ${DEFAULT_BUILD_LAST_FAILED_PKG_FNAME:=${BUILD_WORKDIR}/last_failed_pkg};
02bbcd
: ${DEFAULT_BUILD_LOG_FNAME:=${PREFIX}/build.log};
02bbcd
: ${DEFAULT_BUILD_LOG_LAST_FNAME:=${PREFIX}/build.log.last};
02bbcd
: ${DEFAULT_BUILD_STATUS_IN_PROGRESS_FNAME:=${PREFIX}/BUILD_IN_PROGRESS};
02bbcd
: ${DEFAULT_ZIPDIST_FNAME_PREFIX:=midipix-${ARCH}-${BUILD_KIND}.};
02bbcd
02bbcd
#
02bbcd
# Variable names
308fa7
: ${DEFAULT_CHECK_PATH_VARS:="PREFIX PREFIX_NATIVE PREFIX_LOCAL PREFIX_LOCAL_CROSS PREFIX_CROSS		\
308fa7
	BUILD_DLCACHEDIR BUILD_WORKDIR"};
bf1a83
: ${DEFAULT_CLEAR_ENV_VARS_EXCEPT:="									\
02bbcd
	HOME LC_ALL PATH TERM USER									\
bf1a83
	ARCH BUILD_KIND											\
bf1a83
	BUILD_DLCACHEDIR BUILD_HNAME BUILD_WORKDIR							\
308fa7
	PREFIX PREFIX_LOCAL PREFIX_LOCAL_CROSS PREFIX_CROSS						\
308fa7
	PREFIX_LOCAL PREFIX_LOCAL_CROSS_MINGW32 PREFIX_MINGW32						\
308fa7
	PREFIX_MINIPIX PREFIX_NATIVE PREFIX_ROOT PREFIX_RPM"};
bf1a83
: ${DEFAULT_CLEAR_PREFIX_PATHS:="
bf1a83
	bin i686-nt32-midipix doc include info lib lib64 libexec man minipix minipix_dist native
bf1a83
	rpm sbin share tmp usr x86_64-nt64-midipix x86_64-w64-mingw32 pkglist.cross pkglist.host
bf1a83
	pkglist.native SHA256SUMS SHA256SUMS.last"};
bf1a83
: ${DEFAULT_LOG_ENV_VARS:="										\
bf1a83
	ARCH BUILD_KIND BUILD_DLCACHEDIR BUILD_WORKDIR DEFAULT_GITROOT					\
308fa7
	HOME PATH PREFIX PREFIX_LOCAL PREFIX_LOCAL_CROSS PREFIX_CROSS					\
308fa7
	PREFIX_LOCAL PREFIX_LOCAL_CROSS_MINGW32 PREFIX_MINGW32						\
308fa7
	PREFIX_MINIPIX PREFIX_NATIVE PREFIX_RPM USER"};
02bbcd
02bbcd
#
02bbcd
# URLs
bf1a83
: ${DEFAULT_MIRRORS:="											\
bf1a83
https://midipix.org/mirror/										\
bf1a83
https://midipix.luciaillanes.de/archives/								\
bf1a83
"};
bf1a83
: ${DEFAULT_MIRRORS_GIT:="										\
bf1a83
https://midipix.luciaillanes.de/repos_git/								\
bf1a83
"};
bf1a83
bf1a83
# vim:filetype=sh textwidth=0