adding osx application bundler scripts
[pspp] / utilities / osxbundler / macports-custom-packages / gtk-mac-bundler / files / patch-gtk3-launcher.diff
diff --git a/utilities/osxbundler/macports-custom-packages/gtk-mac-bundler/files/patch-gtk3-launcher.diff b/utilities/osxbundler/macports-custom-packages/gtk-mac-bundler/files/patch-gtk3-launcher.diff
new file mode 100644 (file)
index 0000000..3597b7e
--- /dev/null
@@ -0,0 +1,21 @@
+diff --git examples/gtk3-launcher.sh examples/gtk3-launcher.sh
+index 9137ccb..635ca8d 100755
+--- examples/gtk3-launcher.sh
++++ examples/gtk3-launcher.sh
+@@ -22,7 +22,6 @@ bundle_bin="$bundle_res"/bin
+ bundle_data="$bundle_res"/share
+ bundle_etc="$bundle_res"/etc
+-export DYLD_LIBRARY_PATH="$bundle_lib"
+ export XDG_CONFIG_DIRS="$bundle_etc"/xdg
+ export XDG_DATA_DIRS="$bundle_data"
+ export GTK_DATA_PREFIX="$bundle_res"
+@@ -40,7 +39,7 @@ if [ `uname -r | cut -d . -f 1` -ge 10 ]; then
+ fi
+-APP=name
++APP=$name
+ I18NDIR="$bundle_data/locale"
+ # Set the locale-related variables appropriately:
+ unset LANG LC_MESSAGES LC_MONETARY LC_COLLATE