Update infrastructure for xbps-src >= 100.
This commit is contained in:
16
common/environment/0000-REQUIREMENTS.sh
Normal file
16
common/environment/0000-REQUIREMENTS.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
# -*- shell mode -*-
|
||||
#
|
||||
# Sets the minimal required xbps versions to build packages.
|
||||
#
|
||||
# =========================================================
|
||||
# DO NOT MODIFY THIS FILE WITHOUT PRIOR WRITTEN PERMISSION!
|
||||
# =========================================================
|
||||
#
|
||||
# xbps-src version.
|
||||
export XBPS_SRC_REQ=98
|
||||
|
||||
# XBPS utils version.
|
||||
export XBPS_UTILS_REQ=0.29
|
||||
|
||||
# XBPS utils API version.
|
||||
export XBPS_UTILS_API_REQ=20131224
|
||||
6
common/environment/0001-bootstrap.sh
Normal file
6
common/environment/0001-bootstrap.sh
Normal 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"
|
||||
6
common/environment/0001-configure-args.sh
Normal file
6
common/environment/0001-configure-args.sh
Normal 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
|
||||
8
common/environment/0002-cross.sh
Normal file
8
common/environment/0002-cross.sh
Normal 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 "
|
||||
20
common/environment/0003-misc.sh
Normal file
20
common/environment/0003-misc.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
#
|
||||
# Common variables that can be used by xbps-src.
|
||||
#
|
||||
# SITE used for ditfiles mirrors. For use in $distfiles.
|
||||
SOURCEFORGE_SITE="http://downloads.sourceforge.net/sourceforge"
|
||||
NONGNU_SITE="http://download.savannah.nongnu.org/releases"
|
||||
UBUNTU_SITE="http://archive.ubuntu.com/ubuntu/pool"
|
||||
XORG_SITE="http://xorg.freedesktop.org/releases/individual"
|
||||
DEBIAN_SITE="http://ftp.debian.org/debian/pool"
|
||||
GNOME_SITE="http://ftp.gnome.org/pub/GNOME/sources"
|
||||
KERNEL_SITE="http://www.kernel.org/pub/linux"
|
||||
#KERNEL_SITE="http://mirror.be.gbxs.net/pub/linux"
|
||||
CPAN_SITE="http://cpan.perl.org/modules/by-module"
|
||||
MOZILLA_SITE="http://ftp.mozilla.org/pub/mozilla.org"
|
||||
GNU_SITE="http://mirrors.kernel.org/gnu"
|
||||
FREEDESKTOP_SITE="http://freedesktop.org/software"
|
||||
|
||||
# Repetitive sub homepage's with no real project page
|
||||
# ie. some gnome and xorg projects. For use in $homepage.
|
||||
XORG_HOME="http://xorg.freedesktop.org/wiki/"
|
||||
11
common/environment/README
Normal file
11
common/environment/README
Normal 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.
|
||||
|
||||
Reference in New Issue
Block a user