3 pkgconfig=/usr/bin/pkg-config
4 test -x $pkgconfig || {
16 while read filename ; do
19 # Query the dependencies of the package.
20 DIR="`dirname ${filename}`"
21 export PKG_CONFIG_PATH="$DIR:$DIR/../../share/pkgconfig"
22 $pkgconfig --print-provides "$filename" 2> /dev/null | while read n r v ; do
23 # We have a dependency. Make a note that we need the pkgconfig
24 # tool for this package.
25 echo "pkgconfig($n)" "$r" "$v"
32 while read filename ; do
36 [ $i -eq 1 ] && echo "$pkgconfig"
37 $pkgconfig --print-requires "$filename" 2> /dev/null | while read n r v ; do
38 echo "pkgconfig($n)" "$r" "$v"