qwt6_qt4: preFixup: Repair relative reference in darwin framework output

This commit is contained in:
Luke Adams 2017-07-14 18:58:08 -05:00
parent f90ddc99f6
commit 97c5cf0bf2

View File

@ -18,6 +18,13 @@ stdenv.mkDerivation rec {
sed -e "s|QWT_INSTALL_PREFIX.*=.*|QWT_INSTALL_PREFIX = $out|g" -i qwtconfig.pri
'';
# qwt.framework output includes a relative reference to itself, which breaks dependents
preFixup =
stdenv.lib.optionalString stdenv.isDarwin ''
echo "Attempting to repair qwt"
install_name_tool -id "$out/lib/qwt.framework/Versions/6/qwt" "$out/lib/qwt.framework/Versions/6/qwt"
'';
qmakeFlags = [ "-after doc.path=$out/share/doc/${name}" ];
meta = with stdenv.lib; {