summaryrefslogtreecommitdiffhomepage
path: root/subr
diff options
context:
space:
mode:
authorDavid Macek <david.macek.0@gmail.com>2021-07-14 13:13:39 +0200
committerØrjan Malde <red@foxi.me>2021-07-14 19:35:41 +0200
commit786c740fe4f6f7b04258d0efba448a16991b6cd6 (patch)
treeeacc06293d0e00295ace4adc315002a66449b722 /subr
parentf8af2882eb8b5034ebe2df4fb284d6b48ca654a0 (diff)
downloadmidipix_build-786c740fe4f6f7b04258d0efba448a16991b6cd6.tar.bz2
midipix_build-786c740fe4f6f7b04258d0efba448a16991b6cd6.tar.xz
subr/pkg_install_files.subr:pkgp_install_files_pkgconfig(): Amend absolute includedir paths into relative ones
Signed-off-by: Ørjan Malde <red@foxi.me>
Diffstat (limited to 'subr')
-rw-r--r--subr/pkg_install_files.subr5
1 files changed, 5 insertions, 0 deletions
diff --git a/subr/pkg_install_files.subr b/subr/pkg_install_files.subr
index 03eedff5..67843377 100644
--- a/subr/pkg_install_files.subr
+++ b/subr/pkg_install_files.subr
@@ -43,6 +43,11 @@ pkgp_install_files_pkgconfig() {
"${_pc_path}"; then
return 1;
fi;
+ if [ -n "$(sed -ne '/^includedir=[^$]*$/p' "${_pc_path}")" ] \
+ && ! sed -i"" -e '/^includedir=[^$]*$/s/^includedir=\(.*\)$/includedir=${prefix}\1/' \
+ "${_pc_path}"; then
+ return 1;
+ fi;
done;
};