summaryrefslogtreecommitdiff
path: root/x11-toolkits
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2003-10-06 01:39:44 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2003-10-06 01:39:44 +0000
commit92f528ac6f7403bed5afc6008f951872766ef24a (patch)
treef2130cff4065da4eafe5a1ccc817767500b2968d /x11-toolkits
parentNew port: comms/lirc: Linux Infared Remote Control (diff)
Add a hack to properly setup I18N on FreeBSD.
Notes
Notes: svn path=/head/; revision=90345
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/wxgtk-devel/Makefile1
-rw-r--r--x11-toolkits/wxgtk-devel/files/patch-src_common_intl.cpp22
2 files changed, 23 insertions, 0 deletions
diff --git a/x11-toolkits/wxgtk-devel/Makefile b/x11-toolkits/wxgtk-devel/Makefile
index 177c18999a64..2faeef556aae 100644
--- a/x11-toolkits/wxgtk-devel/Makefile
+++ b/x11-toolkits/wxgtk-devel/Makefile
@@ -7,6 +7,7 @@
PORTNAME= wxgtk
PORTVERSION= 2.4.2
+PORTREVISION= 1
CATEGORIES= x11-toolkits
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
ftp://wesley.informatik.uni-freiburg.de/pub/linux/wxxt/source/
diff --git a/x11-toolkits/wxgtk-devel/files/patch-src_common_intl.cpp b/x11-toolkits/wxgtk-devel/files/patch-src_common_intl.cpp
new file mode 100644
index 000000000000..f8e465e4cbc3
--- /dev/null
+++ b/x11-toolkits/wxgtk-devel/files/patch-src_common_intl.cpp
@@ -0,0 +1,22 @@
+--- src/common/intl.cpp.orig Sat Oct 4 23:10:24 2003
++++ src/common/intl.cpp Sun Oct 5 21:35:30 2003
+@@ -743,8 +742,18 @@
+ }
+ if ( !retloc )
+ {
++ wxString langFull;
++ if (wxGetEnv(wxT("LC_ALL"), &langFull)||
++ wxGetEnv(wxT("LC_MESSAGES"), &langFull) ||
++ wxGetEnv(wxT("LANG"), &langFull))
++ {
++ retloc = wxSetlocale(LC_ALL, langFull);
++ }
++ }
++ if ( !retloc )
++ {
+ wxLogError(wxT("Cannot set locale to '%s'."), locale.c_str());
+- return FALSE;
++ //return FALSE;
+ }
+ #elif defined(__WIN32__)
+