Update infrastructure for xbps-src >= 100.

This commit is contained in:
Juan RP 2014-01-28 13:07:02 +01:00
parent 2a76aa6c11
commit 9b3f5617f4
6 changed files with 34 additions and 6 deletions

View File

@ -7,13 +7,10 @@
# ========================================================= # =========================================================
# #
# xbps-src version. # xbps-src version.
XBPS_SRC_REQ=98 export XBPS_SRC_REQ=98
# XBPS utils version. # XBPS utils version.
XBPS_UTILS_REQ=0.29 export XBPS_UTILS_REQ=0.29
# XBPS utils API version. # XBPS utils API version.
XBPS_UTILS_API_REQ=20131224 export XBPS_UTILS_API_REQ=20131224
# Obsolete since xbps-src>=96 (base-chroot version).
BASE_CHROOT_REQ=0.40_1

View File

@ -0,0 +1,6 @@
# This file sets some envvars to allow building bootstrap packages
# when the chroot is not yet ready.
[ -z "$CHROOT_READY" ] && return 0
export PKG_CONFIG_PATH="${XBPS_MASTERDIR}/usr/lib/pkgconfig:${XBPS_MASTERDIR}/usr/share/pkgconfig"

View File

@ -0,0 +1,6 @@
# This file sets up configure_args with commong settings for packages
# that don't set $build_style or set it to gnu-configure.
if [ "$build_style" = "gnu-configure" -o -z "$build_style" ]; then
export configure_args="--prefix=/usr --sysconfdir=/etc --infodir=/usr/share/info --mandir=/usr/share/man --localstatedir=/var ${configure_args}"
fi

View File

@ -0,0 +1,8 @@
# This file sets some envvars to allow cross compiling packages.
[ -z "$CROSS_BUILD" ] && return 0
export PKG_CONFIG_SYSROOT_DIR="$XBPS_CROSS_BASE"
export PKG_CONFIG_PATH="$XBPS_CROSS_BASE/lib/pkgconfig:$XBPS_CROSS_BASE/usr/share/pkgconfig"
export PKG_CONFIG_LIBDIR="$XBPS_CROSS_BASE/lib/pkgconfig"
export configure_args+=" --host=$XBPS_CROSS_TRIPLET --with-sysroot=$XBPS_CROSS_BASE --with-libtool-sysroot=$XBPS_CROSS_BASE "

11
common/environment/README Normal file
View File

@ -0,0 +1,11 @@
ENVIRONMENT SHELL SNIPPETS
==========================
This directory contains shell files (must not be executable nor contain a shebang)
that are read by xbps-src when building source packages. The shell files
are read in lexical order (as ordered by shell rules).
These files shall set environment variables for use in the xbps-src helpers
(libexec/xbps-src-*). Only files with the `.sh' extension are read, so this file
will be simply ignored.