openbsd-ports/x11/wxWidgets/patches/patch-wx-config_in
landry f22fcf7b70 Update to wxWidgets 2.8.10.
Tested in a bulk build by (thanks!) and ok sthen@ jasper@.
Diff looks alright to steven@.
2009-09-10 21:23:28 +00:00

48 lines
1.7 KiB
Plaintext

$OpenBSD: patch-wx-config_in,v 1.3 2009/09/10 21:23:28 landry Exp $
--- wx-config.in.orig Fri Mar 6 13:10:54 2009
+++ wx-config.in Fri Sep 4 23:57:40 2009
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/ksh
#
# Name: wx-config{.in,}
# Purpose: wx configuration search and query tool {template,}
@@ -566,8 +566,8 @@ find_best_delegate()
get_legacy_mask()
{
[ $# -gt 0 ] || set m
- eval [ "x\${$1_chartype}" != "xunicode" ] || _unicode_flag=u
- eval [ "x\${$1_debugtype}" != "xdebug" ] || _debug_flag=d
+ eval [ "x\${$1_chartype}" != "xunicode" ] || _unicode_flag=
+ eval [ "x\${$1_debugtype}" != "xdebug" ] || _debug_flag=
eval echo "wx\${$1_toolkit}${_unicode_flag}${_debug_flag}-\${$1_version}\${$1_host}-config"
}
@@ -996,7 +996,7 @@ lib_flags_for()
_libname="@WX_LIBRARY_BASENAME_GUI@"
fi
[ $lib = base ] || _libname="${_libname}_$lib"
- _libname="${_libname}-@WX_RELEASE@$_target"
+ _libname="${_libname}$_target"
if is_static; then
_wxlibs="$_wxlibs ${libdir}/lib${_libname}.a"
@@ -1055,7 +1055,7 @@ link_deps_for()
_libname="@WX_LIBRARY_BASENAME_GUI@"
fi
[ $lib = base ] || _libname="${_libname}_$lib"
- _libname="${_libname}-@WX_RELEASE@$_target"
+ _libname="${_libname}$_target"
_wxlibs="$_wxlibs ${libdir}/lib${_libname}.a"
done
@@ -1136,7 +1136,7 @@ fi
[ "$using_gui" = "yes" ] || _gui_cppflags="-DwxUSE_GUI=0"
if is_installed; then
- _include_cppflags="-I${includedir}/wx-@WX_RELEASE@@WX_FLAVOUR@"
+ _include_cppflags="-I${includedir}"
else
_include_cppflags="-I${includedir} -I${prefix}/contrib/include"
fi