echo 'Creating brew-patch.diff' cat << EOF >> brew-patch.diff diff --git a/designer/designer.pro b/designer/designer.pro index 24770fd..3ff0761 100644 --- a/designer/designer.pro +++ b/designer/designer.pro @@ -75,6 +75,16 @@ contains(QWT_POLAR_CONFIG, QwtPolarDesigner) { target.path = $${QWT_POLAR_INSTALL_PLUGINS} INSTALLS += target + + macx { + contains(QWT_POLAR_CONFIG, QwtPolarFramework) { + QWTP_LIB = qwtpolar.framework/Versions/$${QWT_POLAR_VER_MAJ}/qwtpolar + } + else { + QWTP_LIB = libqwtpolar.$${QWT_POLAR_VER_MAJ}.dylib + } + QMAKE_POST_LINK = install_name_tool -change $${QWTP_LIB} $${QWT_POLAR_INSTALL_LIBS}/$${QWTP_LIB} $(DESTDIR)$(TARGET) + } } else { TEMPLATE = subdirs # do nothing EOF