mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
build: add PKG_DEPENDS_CONFIG to set PKG_CONFIG_PATH for packages
To be used for "-sysroot" packages.
This commit is contained in:
parent
a6991f0aba
commit
64c73805fe
@ -35,6 +35,7 @@ To control the build behaviour of your package, use variables in the top-down or
|
|||||||
| PKG_BUILD_FLAGS | - | no | A space separated list of flags with which to fine-tune the build process. Flags can be enabled or disabled with a `+` or `-` prefix. For detailed information, see the [Reference](#build_flags-options). |
|
| PKG_BUILD_FLAGS | - | no | A space separated list of flags with which to fine-tune the build process. Flags can be enabled or disabled with a `+` or `-` prefix. For detailed information, see the [Reference](#build_flags-options). |
|
||||||
| PKG_PYTHON_VERSION | python3.7 | no | Define the Python version to be used. |
|
| PKG_PYTHON_VERSION | python3.7 | no | Define the Python version to be used. |
|
||||||
| PKG_IS_KERNEL_PKG | - | no | Set to `yes` for packages that include Linux kernel modules |
|
| PKG_IS_KERNEL_PKG | - | no | Set to `yes` for packages that include Linux kernel modules |
|
||||||
|
| PKG_DEPENDS_CONFIG | - | no | Space separated list of packages to add to PKG_CONFIG_PATH. Use this to build with support for `-sysroot` packages (See [reference](BUILD_FLAGS options). |
|
||||||
|
|
||||||
#### Meson Options
|
#### Meson Options
|
||||||
| Variable | Default | Required |Description |
|
| Variable | Default | Required |Description |
|
||||||
|
@ -231,6 +231,20 @@ if [ -f "${PKG_CONFIGURE_SCRIPT}" -o -f "${PKG_CMAKE_SCRIPT}" -o -f "${PKG_MESON
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# configure
|
# configure
|
||||||
|
if [ -n "${PKG_DEPENDS_CONFIG}" -a -n "${PKG_INSTALL}" ]; then
|
||||||
|
for pkg in ${PKG_DEPENDS_CONFIG}; do
|
||||||
|
for dir in "$(get_install_dir ${pkg})"/{usr/local/,usr/,}{lib/,share/}pkgconfig; do
|
||||||
|
if [ -d "${dir}" ]; then
|
||||||
|
build_msg "CLR_TOOLCHAIN" "PKG_CONFIG_PATH" "${dir}"
|
||||||
|
[ -n "${PKG_CONFIG_PATH}" ] && PKG_CONFIG_PATH+=":"
|
||||||
|
PKG_CONFIG_PATH+="${dir}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
|
||||||
|
export PKG_CONFIG_PATH
|
||||||
|
fi
|
||||||
|
|
||||||
pkg_call_exists pre_configure && pkg_call pre_configure
|
pkg_call_exists pre_configure && pkg_call pre_configure
|
||||||
pkg_call_exists pre_configure_${TARGET} && pkg_call pre_configure_${TARGET}
|
pkg_call_exists pre_configure_${TARGET} && pkg_call pre_configure_${TARGET}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user