xcb_proto: Fix the pkg-config file

It is generated using .config.status which doesn't get the exported
variables.
This commit is contained in:
François Revol
2014-07-29 20:12:37 +02:00
parent c9bc162bf8
commit cf1eadffb0

View File

@@ -58,6 +58,9 @@ INSTALL()
pythonVersion=$(python --version 2>&1 | sed 's/Python //' | head -c3)
export pyexecdir=$prefix/lib/python$pythonVersion/vendor-packages
export pythondir=$prefix/lib/python$pythonVersion/vendor-packages
# the .pc file doesn't get it anyway, force it
sed -i "s,pythondir=.*/site-packages,pythondir=\${prefix}/lib/python$pythonVersion/vendor-packages," \
xcb-proto.pc
make install DESTDIR=/ pyexecdir=$pyexecdir pythondir=$pythondir
fixPkgconfig
}