freebsd-ports/x11-toolkits/wxgtk26/files/patch-wx-config.in
Max Khon 79867d5665 - Fix wxgtk2-2.6-config and wxgtk2u-2.6-config when HOME is not set --
execute /bin/sh instead of bash in this case.
- Bump PORTREVISION

PR:		105561
2006-11-28 17:53:36 +00:00

30 lines
1.1 KiB
Text

--- wx-config.in.orig Wed Mar 22 05:42:05 2006
+++ wx-config.in Tue Nov 28 23:49:30 2006
@@ -25,15 +25,15 @@
if [ ~ = '~' ]
then
- if (bash -c echo) >/dev/null 2>&1
+ if (/bin/sh -c echo) >/dev/null 2>&1
then
- exec bash "$0" "$@"
+ exec /bin/sh "$0" "$@"
fi
if (ksh -c echo) >/dev/null 2>&1
then
exec ksh "$0" "$@"
fi
- echo "$0: this script requires bash or ksh"
+ echo "$0: this script requires bourne shell or ksh"
exit 1
fi
@@ -1143,7 +1143,7 @@
_include_cppflags="-I${includedir} -I${prefix}/contrib/include"
fi
-_cppflags=$(echo "-I${libdir}/wx/include/@TOOLCHAIN_FULLNAME@" $_include_cppflags "@WXDEBUG_DEFINE@" "@TOOLCHAIN_DEFS@" "@TOOLCHAIN_DLL_DEFS@" $_gui_cppflags "@WXCONFIG_INCLUDE@" "@WX_LARGEFILE_FLAGS@" "@GCC_PRAGMA_FLAGS@")
+_cppflags=$(echo "-I${includedir}/wx-@WX_RELEASE@/@TOOLCHAIN_FULLNAME@" $_include_cppflags "@WXDEBUG_DEFINE@" "@TOOLCHAIN_DEFS@" "@TOOLCHAIN_DLL_DEFS@" $_gui_cppflags "@WXCONFIG_INCLUDE@" "@WX_LARGEFILE_FLAGS@" "@GCC_PRAGMA_FLAGS@")
# now without further ado, we can answer these too.
[ -z "$output_option_cppflags" ] || echo $_cppflags