util-macros: set PKGCONFIG directory to /usr/lib/pkgconfig

util-macros does not allow pkgconfigdir to be set independently of
datadir. If datadir is changed to /usr/lib instead of /usr/share - then
the aclocal files are also placed into /usr/lib - causing an error when
aclocal and its subordinate programs are run.
This commit is contained in:
heitbaum 2022-01-30 12:15:52 +00:00
parent ebd0c203b8
commit 65e42b9492

View File

@ -10,6 +10,11 @@ PKG_URL="http://xorg.freedesktop.org/archive/individual/util/${PKG_NAME}-${PKG_V
PKG_DEPENDS_TARGET="toolchain"
PKG_LONGDESC="X.org autoconf utilities such as M4 macros."
pre_configure_target() {
sed -i 's|^pkgconfigdir = .*|pkgconfigdir = /usr/lib/pkgconfig|' ${PKG_BUILD}/Makefile.am
sed -i 's|^pkgconfigdir = .*|pkgconfigdir = /usr/lib/pkgconfig|' ${PKG_BUILD}/Makefile.in
}
post_makeinstall_target() {
rm -rf ${INSTALL}/usr
}