aboutsummaryrefslogtreecommitdiffstats
path: root/pkgconfigdeps.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgconfigdeps.sh')
-rwxr-xr-xpkgconfigdeps.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgconfigdeps.sh b/pkgconfigdeps.sh
index b884205..f5eb66c 100755
--- a/pkgconfigdeps.sh
+++ b/pkgconfigdeps.sh
@@ -18,11 +18,12 @@ case $1 in
*.pc)
# Assume that this file doesn't contain useful information.
pcfiles=${pcfiles}" ${filename}"
+ PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$(dirname ${filename})
;;
esac
done
# Query the dependencies of the package.
- $pkgconfig --print-provides $pcfiles 2> /dev/null | while read n r v ; do
+ PKG_CONFIG_PATH=$PKG_CONFIG_PATH $pkgconfig --print-provides $pcfiles 2> /dev/null | while read n r v ; do
# We have a dependency. Make a note that we need the pkgconfig
# tool for this package.
echo "pkgconfig($n)" "$r" "$v"
@@ -34,9 +35,10 @@ case $1 in
case "${filename}" in
*.pc)
pcfiles=${pcfiles}" ${filename}"
+ PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$(dirname ${filename})
esac
done
- $pkgconfig --print-requires ${pcfiles} 2> /dev/null | while read n r v ; do
+ PKG_CONFIG_PATH=$PKG_CONFIG_PATH $pkgconfig --print-requires ${pcfiles} 2> /dev/null | while read n r v ; do
echo "pkgconfig($n)" "$r" "$v"
done
;;