aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/macosx
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2013-10-07 19:37:22 +0000
committerGerald Combs <gerald@wireshark.org>2013-10-07 19:37:22 +0000
commit9f45bac313f1bedffa4e5b7c7972a43f4a665586 (patch)
tree9726384b70e6a3ed6ffdbb6d7b7269ef941eeeba /packaging/macosx
parentdf1b8d3d96455188747efc716ff2801c2a224c2a (diff)
Try to fix building the GTK flavor OS X app.
svn path=/trunk/; revision=52442
Diffstat (limited to 'packaging/macosx')
-rwxr-xr-xpackaging/macosx/osx-app.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/packaging/macosx/osx-app.sh b/packaging/macosx/osx-app.sh
index 46ff47992b..9b58ff5fb4 100755
--- a/packaging/macosx/osx-app.sh
+++ b/packaging/macosx/osx-app.sh
@@ -208,6 +208,9 @@ resdir=`pwd`
pkgexec="$package/Contents/MacOS"
pkgres="$package/Contents/Resources"
pkgbin="$pkgexec"
+if [ "$ui_toolkit" = "gtk" ] ; then
+ pkgbin="$pkgres/bin"
+fi
# Should pkglib be Contents/Frameworks instead?
#pkglib="$pkgres/lib"
pkglib="$package/Contents/Frameworks"
@@ -247,14 +250,16 @@ echo -e "\nFilling app bundle and utility directory...\n"
# Wireshark executables
if [ "$ui_toolkit" = "gtk" ] ; then
cp -v utility-launcher "$cli_dir/$binary"
- for binary in wireshark $binary_list ; do
+ for binary in $binary_list wireshark ; do
# Copy the binary to its destination
dest_path="$pkgbin/$binary-bin"
cp -v "$binary_path/$binary" "$dest_path"
# TODO Add a "$verbose" variable and command line switch, which sets wether these commands are verbose or not
- ln -sv ./wireshark "$pkgbin/$binary"
- ln -sv ./wireshark "$cli_dir/$binary"
+ if [ "$binary" != "wireshark" ] ; then
+ ln -sv ./wireshark "$pkgbin/$binary"
+ ln -sv ./wireshark "$cli_dir/$binary"
+ fi
done
elif [ "$ui_toolkit" = "qt" ] ; then
for binary in $binary_list ; do