diff options
Diffstat (limited to 'homebrew/qwt/patches.sh')
-rwxr-xr-x | homebrew/qwt/patches.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/homebrew/qwt/patches.sh b/homebrew/qwt/patches.sh new file mode 100755 index 000000000..ac4758aa5 --- /dev/null +++ b/homebrew/qwt/patches.sh @@ -0,0 +1,24 @@ +echo 'Creating brew-patch.diff' +cat << EOF >> brew-patch.diff +diff --git a/designer/designer.pro b/designer/designer.pro +index c269e9d..c2e07ae 100644 +--- a/designer/designer.pro ++++ b/designer/designer.pro +@@ -126,6 +126,16 @@ contains(QWT_CONFIG, QwtDesigner) { + + target.path = $${QWT_INSTALL_PLUGINS} + INSTALLS += target ++ ++ macx { ++ contains(QWT_CONFIG, QwtFramework) { ++ QWT_LIB = qwt.framework/Versions/$${QWT_VER_MAJ}/qwt ++ } ++ else { ++ QWT_LIB = libqwt.$${QWT_VER_MAJ}.dylib ++ } ++ QMAKE_POST_LINK = install_name_tool -change $${QWT_LIB} $${QWT_INSTALL_LIBS}/$${QWT_LIB} $(DESTDIR)$(TARGET) ++ } + } + else { + TEMPLATE = subdirs # do nothing +EOF |