diff options
-rw-r--r-- | subr/pkg_install_files.subr | 5 |
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; }; |