diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2017-02-09 15:44:54 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2017-02-09 15:44:54 +0000 |
commit | 3ac2747f8c3337564f6bb8e2ff457275ee54b248 (patch) | |
tree | 4d1da0b8c8632e5994c33e96241627e3b30f63a4 | |
parent | b47485d7b8aa24597515b414eb39a0da5a016c8d (diff) | |
download | midipix_build-3ac2747f8c3337564f6bb8e2ff457275ee54b248.tar.bz2 midipix_build-3ac2747f8c3337564f6bb8e2ff457275ee54b248.tar.xz |
subr/pkg_install.subr: force exec_prefix=${prefix} if unset in pkg-config files (.pc) prior to installing.
-rw-r--r-- | subr/pkg_install.subr | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/subr/pkg_install.subr b/subr/pkg_install.subr index 74b79247..4b14a5d2 100644 --- a/subr/pkg_install.subr +++ b/subr/pkg_install.subr @@ -44,9 +44,8 @@ pkgp_install_pkgconfig() { local __; for __ in $(find "${WORKDIR}/${PKG_BUILD_DIR}" -name \*.pc); do if grep -Eq '^libdir=[^$]+$' "${__}"; then - echo sed -i '/^libdir=[^$]\+$/s/^libdir=\(.\+\)$/libdir=${exec_prefix}\1/' \ - "${__}"; - sed -i '/^libdir=[^$]\+$/s/^libdir=\(.\+\)$/libdir=${exec_prefix}\1/' \ + sed -i -e '/^libdir=[^$]\+$/s/^libdir=\(.\+\)$/libdir=${exec_prefix}\1/' \ + -e '/^exec_prefix=$/s/^.*$/exec_prefix=${prefix}/' \ "${__}"; fi; done; |