2014-02-11 11:09:16 +01:00
|
|
|
# This snippet setups pkg-config vars.
|
|
|
|
|
2014-03-19 09:03:21 +01:00
|
|
|
set -a
|
|
|
|
|
2014-02-11 11:09:16 +01:00
|
|
|
if [ -z "$CHROOT_READY" ]; then
|
|
|
|
PKG_CONFIG_PATH="${XBPS_MASTERDIR}/usr/lib/pkgconfig:${XBPS_MASTERDIR}/usr/share/pkgconfig"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
PKG_CONFIG_SYSROOT_DIR="$XBPS_CROSS_BASE"
|
|
|
|
PKG_CONFIG_PATH="$XBPS_CROSS_BASE/lib/pkgconfig:$XBPS_CROSS_BASE/usr/share/pkgconfig"
|
|
|
|
PKG_CONFIG_LIBDIR="$XBPS_CROSS_BASE/lib/pkgconfig"
|
|
|
|
fi
|
2014-03-19 09:03:21 +01:00
|
|
|
|
|
|
|
set +a
|