Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

glib_skip-gettext.patch 2.3KB

6 years ago
6 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. diff --git a/acinclude.m4 b/acinclude.m4
  2. index cac7f21..aff165a 100644
  3. --- a/acinclude.m4
  4. +++ b/acinclude.m4
  5. @@ -449,4 +449,3 @@ AC_DEFUN([jm_AC_HEADER_INTTYPES_H],
  6. m4_include(acglib.m4)dnl
  7. m4_include(glib/libcharset/codeset.m4)dnl
  8. m4_include(glib/libcharset/glibc21.m4)dnl
  9. -m4_include(m4macros/glib-gettext.m4)dnl
  10. diff --git a/autogen.sh b/autogen.sh
  11. old mode 100644
  12. new mode 100755
  13. diff --git a/configure.ac b/configure.ac
  14. index b6640da..55262f3 100644
  15. --- a/configure.ac
  16. +++ b/configure.ac
  17. @@ -454,13 +454,6 @@ ALL_LINGUAS="`grep -v '^#' "$srcdir/po/LINGUAS" | tr '\n' ' '`"
  18. AC_SUBST([CONFIG_STATUS_DEPENDENCIES],['$(top_srcdir)/po/LINGUAS'])
  19. GLIB_GNU_GETTEXT
  20. -if test "$gt_cv_have_gettext" != "yes" ; then
  21. - AC_MSG_ERROR([
  22. -*** You must have either have gettext support in your C library, or use the
  23. -*** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html
  24. -])
  25. -fi
  26. -
  27. LIBS="$INTLLIBS $LIBS"
  28. GETTEXT_PACKAGE=glib20
  29. diff --git a/gio/gunixconnection.c b/gio/gunixconnection.c
  30. index 3bfbd4f..f27e731 100644
  31. --- a/gio/gunixconnection.c
  32. +++ b/gio/gunixconnection.c
  33. @@ -26,6 +26,8 @@
  34. #include <string.h>
  35. #include <unistd.h>
  36. +#define ngettext(t1, t2, n) t1
  37. +
  38. /**
  39. * SECTION:gunixconnection
  40. * @title: GUnixConnection
  41. diff --git a/glib/ggettext.c b/glib/ggettext.c
  42. index bf74ccb..2430a0d 100644
  43. --- a/glib/ggettext.c
  44. +++ b/glib/ggettext.c
  45. @@ -40,7 +40,6 @@
  46. #include <string.h>
  47. #include <locale.h>
  48. -#include <libintl.h>
  49. #ifdef G_OS_WIN32
  50. diff --git a/glib/gi18n.h b/glib/gi18n.h
  51. index f765c3d..2c950cd 100644
  52. --- a/glib/gi18n.h
  53. +++ b/glib/gi18n.h
  54. @@ -20,13 +20,13 @@
  55. #include <glib.h>
  56. -#include <libintl.h>
  57. #include <string.h>
  58. -#define _(String) gettext (String)
  59. -#define Q_(String) g_dpgettext (NULL, String, 0)
  60. +#define _(String) String
  61. #define N_(String) (String)
  62. -#define C_(Context,String) g_dpgettext (NULL, Context "\004" String, strlen (Context) + 1)
  63. #define NC_(Context, String) (String)
  64. +#define textdomain(...)
  65. +#define bindtextdomain(...)
  66. +
  67. #endif /* __G_I18N_H__ */
  68. diff --git a/m4macros/Makefile.am b/m4macros/Makefile.am
  69. index 971871c..8a4f40c 100644
  70. --- a/m4macros/Makefile.am
  71. +++ b/m4macros/Makefile.am
  72. @@ -1,6 +1,6 @@
  73. include $(top_srcdir)/glib.mk
  74. -installed_m4= glib-2.0.m4 glib-gettext.m4 gsettings.m4
  75. +installed_m4= glib-2.0.m4 gsettings.m4
  76. EXTRA_DIST+=$(installed_m4)