mirror of
https://github.com/chocolate-doom/chocpkg.git
synced 2025-02-02 05:21:55 +00:00
Automatically install pkg-config when needed.
Every package checked with pkg-config implicitly requires it as a dependency. Add it as a dependency when installing the pkg-config module.
This commit is contained in:
parent
658b94e635
commit
280ef8dd89
2 changed files with 5 additions and 1 deletions
|
@ -52,7 +52,7 @@ basic_setup
|
||||||
. "$CHOCPKG_ROOT/buildenv.sh"
|
. "$CHOCPKG_ROOT/buildenv.sh"
|
||||||
|
|
||||||
dependencies() {
|
dependencies() {
|
||||||
DEPENDENCIES="$*"
|
DEPENDENCIES+="$*"
|
||||||
}
|
}
|
||||||
|
|
||||||
# set_pkgconfig_paths sets the values of the PKG_CONFIG_PATH and
|
# set_pkgconfig_paths sets the values of the PKG_CONFIG_PATH and
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
|
|
||||||
check_pkgconfig::init() {
|
check_pkgconfig::init() {
|
||||||
PKGCONFIG_NAME=$1
|
PKGCONFIG_NAME=$1
|
||||||
|
|
||||||
|
# If we're using pkg-config to check, we need to install pkg-config
|
||||||
|
# first.
|
||||||
|
dependencies pkg-config
|
||||||
}
|
}
|
||||||
|
|
||||||
# Function that returns true if the package is installed.
|
# Function that returns true if the package is installed.
|
||||||
|
|
Loading…
Reference in a new issue