summaryrefslogtreecommitdiff
path: root/macosx-setup.sh
diff options
context:
space:
mode:
authorJoerg Mayer <jmayer@loplof.de>2015-12-29 19:42:27 +0100
committerJörg Mayer <jmayer@loplof.de>2015-12-29 23:12:43 +0000
commit41ba1d79957ddcc6c8c2d59bb416fd5d722f79d5 (patch)
tree677201c1608c331dc581a4cae4a6a81072ec1403 /macosx-setup.sh
parent936359053ab736360f12603b66e44500d70cc50c (diff)
downloadwireshark-41ba1d79957ddcc6c8c2d59bb416fd5d722f79d5.tar.gz
Allow overriding of the GTK and QT versions without modifying the script.
Change-Id: I6e43845ee199232b53887d970996ca273564338c Reviewed-on: https://code.wireshark.org/review/12923 Reviewed-by: Jörg Mayer <jmayer@loplof.de> Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'macosx-setup.sh')
-rwxr-xr-xmacosx-setup.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/macosx-setup.sh b/macosx-setup.sh
index 8a1b311df1..a734b50a8a 100755
--- a/macosx-setup.sh
+++ b/macosx-setup.sh
@@ -69,19 +69,19 @@ PKG_CONFIG_VERSION=0.28
#
# One or more of the following libraries are required to build Wireshark.
#
-# If you don't want to build with Qt, comment out the QT_VERSION= line.
+# To override the versions of QT and GTK call the script with some of the
+# variables set to the new values. Setting a variable to empty will disable
+# the toolkit, e.g.
+# "GTK_VERSION=3.5.2 QT_VERSION= ./macos-setup.sh"
+# will build with GTK3 and without QT.
+#
# Note that Qt 5, prior to 5.5.0, mishandles context menus in ways that,
# for example, cause them not to work reliably in the packet detail or
# packet data pane; see, for example, Qt bugs QTBUG-31937, QTBUG-41017,
# and QTBUG-43464, all of which seem to be the same bug.
#
-# If you want to build with GTK+ 2, comment out the GTK_VERSION=3.* line
-# and un-comment the GTK_VERSION=2.* line.
-#
-# If you don't want to build with GTK+ at all, comment out both lines.
-#
-QT_VERSION=5.5.0
-GTK_VERSION=2.24.17
+QT_VERSION=${QT_VERSION-5.5.0}
+GTK_VERSION=${GTK_VERSION-2.24.17}
#GTK_VERSION=3.5.2
if [ "$GTK_VERSION" ]; then
#