aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2010-11-01 17:23:53 +0100
committerAndreas Oberritter <obi@opendreambox.org>2010-11-16 17:15:38 +0100
commitcb64d587d9534c41a0976d4b316ea20b26232790 (patch)
tree38b59cc40d52dd3164f31d887759df6f5a8588d0
parent728f5f70f2ece1e2ac1e70cf5a3512b6cfd8cd83 (diff)
downloadenigma2-cb64d587d9534c41a0976d4b316ea20b26232790.tar.gz
enigma2-cb64d587d9534c41a0976d4b316ea20b26232790.zip
configure: disable updates of po files if --without-po is given
-rw-r--r--configure.ac5
-rw-r--r--po/Makefile.am2
2 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index c2d8d915..1f83b0f7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -85,6 +85,11 @@ if test "$with_memcheck" = "yes"; then
AC_DEFINE([MEMLEAK_CHECK],[1],[Define to 1 to enable memory leak checks])
fi
+AC_ARG_WITH(po,
+ AS_HELP_STRING([--without-po],[disable updating of po files]),
+ [with_po="$withval"],[with_po="yes"])
+AM_CONDITIONAL(UPDATE_PO, test "$with_po" = "yes")
+
CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
CXXFLAGS="$CXXFLAGS $BASE_CFLAGS $PTHREAD_CFLAGS $DEBUG_CFLAGS -fno-rtti -fno-exceptions -Wall"
diff --git a/po/Makefile.am b/po/Makefile.am
index 53e65ae8..e7318f77 100644
--- a/po/Makefile.am
+++ b/po/Makefile.am
@@ -6,6 +6,7 @@ LANGPO = $(LANGS:=.po)
EXTRA_DIST = $(LANGPO)
+if UPDATE_PO
# the TRANSLATORS: allows putting translation comments before the to-be-translated line.
enigma2-py.pot: $(top_srcdir)/*.py $(top_srcdir)/lib/python/*/*.py $(top_srcdir)/lib/python/Plugins/*/*/*.py
$(XGETTEXT) -L Python --from-code=UTF-8 --add-comments="TRANSLATORS:" -d @PACKAGE_NAME@ -s -o $@ $^
@@ -22,6 +23,7 @@ enigma2.pot: enigma2-py.pot enigma2-xml.pot
else \
$(MSGINIT) -l $@ -o $@ -i $< --no-translator; \
fi
+endif
.po.mo:
$(MSGFMT) -o $@ $<