forked from mirrors/nixpkgs
multi-out: auto-correct include dirs in *.pc
This commit is contained in:
parent
abbc93f783
commit
d25cc03f21
|
@ -112,6 +112,11 @@ _multioutDevs() {
|
||||||
_moveToOutput include "${!outputInclude}"
|
_moveToOutput include "${!outputInclude}"
|
||||||
_moveToOutput lib/pkgconfig "${!outputDev}"
|
_moveToOutput lib/pkgconfig "${!outputDev}"
|
||||||
_moveToOutput "lib/*.la" "${!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
|
# Make ${!outputDev} propagate other outputs needed for development
|
||||||
|
|
Loading…
Reference in a new issue