summaryrefslogtreecommitdiff
path: root/homebrew/qwtpolar/patches.sh
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/qwtpolar/patches.sh')
-rwxr-xr-xhomebrew/qwtpolar/patches.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/homebrew/qwtpolar/patches.sh b/homebrew/qwtpolar/patches.sh
new file mode 100755
index 000000000..db65683e8
--- /dev/null
+++ b/homebrew/qwtpolar/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 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