aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ms-sys/nls.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/ms-sys/nls.patch')
-rw-r--r--testing/ms-sys/nls.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/ms-sys/nls.patch b/testing/ms-sys/nls.patch
index 092f64ad30..29c77a62c2 100644
--- a/testing/ms-sys/nls.patch
+++ b/testing/ms-sys/nls.patch
@@ -13,3 +13,20 @@
#define _(String) gettext(String)
#endif
#define gettext_noop(String) (String)
+--- ./Makefile.orig
++++ ./Makefile
+@@ -80,10 +80,14 @@
+
+ MAN_SRC = $(wildcard $(MAN)/*.*)
+
++ifeq ($(NLS),no)
++CFLAGS += -DNO_LIBINTL_OR_GETTEXT
++else
+ PO_FILES = $(filter-out $(MESSAGES),$(wildcard $(PO)/*.po))
+ MO_FILES = $(PO_FILES:$(PO)/%.po=$(MO)/%.mo)
+ LANGUAGES ?= $(PO_FILES:$(PO)/%.po=%)
+ NLS_FILES = $(LANGUAGES:%=$(DESTDIR)$(LOCALEDIR)/%/$(MESSDIR)/$(PACKAGE).mo)
++endif
+ MAN_FILES = $(foreach FILE, $(MAN_SRC), \
+ $(DESTDIR)$(MANDIR)/man$(subst .,,$(suffix $(FILE)))/$(FILE:$(MAN)/%=%))
+