multi-out: auto-correct include dirs in *.pc

This commit is contained in:
Vladimír Čunát 2014-08-30 23:29:23 +02:00
parent abbc93f783
commit d25cc03f21

View File

@ -112,6 +112,11 @@ _multioutDevs() {
_moveToOutput include "${!outputInclude}"
_moveToOutput lib/pkgconfig "${!outputDev}"
_moveToOutput "lib/*.la" "${!outputDev}"
echo "Patching *.pc includedir to output ${!outputInclude}"
for f in "${!outputDev}"/lib/pkgconfig/*.pc; do
sed -i "/^includedir=/s,=\${prefix},=${!outputInclude}," "$f"
done
}
# Make ${!outputDev} propagate other outputs needed for development