source: lliurex-rpi-packages/trunk/fuentes/ldm/ldm-intl.patch @ 2328

Last change on this file since 2328 was 2328, checked in by kbut, 3 years ago

add new package

File size: 19.9 KB
  • m4/intltool.m4

    diff -urN ldm-2.2.9.orig/m4/intltool.m4 ldm-2.2.9/m4/intltool.m4
    old new  
     1## intltool.m4 - Configure intltool for the target system. -*-Shell-script-*-
     2## Copyright (C) 2001 Eazel, Inc.
     3## Author: Maciej Stachowiak <mjs@noisehavoc.org>
     4##         Kenneth Christiansen <kenneth@gnu.org>
     5##
     6## This program is free software; you can redistribute it and/or modify
     7## it under the terms of the GNU General Public License as published by
     8## the Free Software Foundation; either version 2 of the License, or
     9## (at your option) any later version.
     10##
     11## This program is distributed in the hope that it will be useful, but
     12## WITHOUT ANY WARRANTY; without even the implied warranty of
     13## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     14## General Public License for more details.
     15##
     16## You should have received a copy of the GNU General Public License
     17## along with this program; if not, write to the Free Software
     18## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
     19##
     20## As a special exception to the GNU General Public License, if you
     21## distribute this file as part of a program that contains a
     22## configuration script generated by Autoconf, you may include it under
     23## the same distribution terms that you use for the rest of that program.
     24
     25dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
     26# serial 42 IT_PROG_INTLTOOL
     27AC_DEFUN([IT_PROG_INTLTOOL], [
     28AC_PREREQ([2.50])dnl
     29AC_REQUIRE([AM_NLS])dnl
     30
     31case "$am__api_version" in
     32    1.[01234])
     33        AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
     34    ;;
     35    *)
     36    ;;
     37esac
     38
     39INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
     40INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
     41INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
     42if test -n "$1"; then
     43    AC_MSG_CHECKING([for intltool >= $1])
     44    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
     45    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
     46        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
     47fi
     48
     49AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
     50AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
     51AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
     52if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
     53    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
     54fi
     55
     56if test -z "$AM_DEFAULT_VERBOSITY"; then
     57  AM_DEFAULT_VERBOSITY=1
     58fi
     59AC_SUBST([AM_DEFAULT_VERBOSITY])
     60
     61INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
     62INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
     63INTLTOOL__v_MERGE_0='@echo "  ITMRG " [$]@;'
     64AC_SUBST(INTLTOOL_V_MERGE)
     65AC_SUBST(INTLTOOL__v_MERGE_)
     66AC_SUBST(INTLTOOL__v_MERGE_0)
     67
     68INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
     69intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
     70intltool__v_merge_options_0='-q'
     71AC_SUBST(INTLTOOL_V_MERGE_OPTIONS)
     72AC_SUBST(intltool__v_merge_options_)
     73AC_SUBST(intltool__v_merge_options_0)
     74
     75  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
     76INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
     77     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
     78     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
     79      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@'
     80     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
     81   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
     82    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
     83INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
     84       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
     85      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
     86if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
     87      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@'
     88else
     89      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir'
     90fi
     91      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
     92      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
     93    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
     94  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
     95    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
     96    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
     97   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
     98
     99_IT_SUBST(INTLTOOL_DESKTOP_RULE)
     100_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
     101_IT_SUBST(INTLTOOL_KEYS_RULE)
     102_IT_SUBST(INTLTOOL_PROP_RULE)
     103_IT_SUBST(INTLTOOL_OAF_RULE)
     104_IT_SUBST(INTLTOOL_PONG_RULE)
     105_IT_SUBST(INTLTOOL_SERVER_RULE)
     106_IT_SUBST(INTLTOOL_SHEET_RULE)
     107_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
     108_IT_SUBST(INTLTOOL_UI_RULE)
     109_IT_SUBST(INTLTOOL_XAM_RULE)
     110_IT_SUBST(INTLTOOL_KBD_RULE)
     111_IT_SUBST(INTLTOOL_XML_RULE)
     112_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
     113_IT_SUBST(INTLTOOL_CAVES_RULE)
     114_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
     115_IT_SUBST(INTLTOOL_THEME_RULE)
     116_IT_SUBST(INTLTOOL_SERVICE_RULE)
     117_IT_SUBST(INTLTOOL_POLICY_RULE)
     118
     119# Check the gettext tools to make sure they are GNU
     120AC_PATH_PROG(XGETTEXT, xgettext)
     121AC_PATH_PROG(MSGMERGE, msgmerge)
     122AC_PATH_PROG(MSGFMT, msgfmt)
     123AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
     124if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
     125    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
     126fi
     127xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
     128mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
     129mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
     130if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
     131    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
     132fi
     133
     134AC_PATH_PROG(INTLTOOL_PERL, perl)
     135if test -z "$INTLTOOL_PERL"; then
     136   AC_MSG_ERROR([perl not found])
     137fi
     138AC_MSG_CHECKING([for perl >= 5.8.1])
     139$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
     140if test $? -ne 0; then
     141   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
     142else
     143   IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
     144   AC_MSG_RESULT([$IT_PERL_VERSION])
     145fi
     146if test "x$2" != "xno-xml"; then
     147   AC_MSG_CHECKING([for XML::Parser])
     148   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
     149       AC_MSG_RESULT([ok])
     150   else
     151       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
     152   fi
     153fi
     154
     155# Substitute ALL_LINGUAS so we can use it in po/Makefile
     156AC_SUBST(ALL_LINGUAS)
     157
     158# Set DATADIRNAME correctly if it is not set yet
     159# (copied from glib-gettext.m4)
     160if test -z "$DATADIRNAME"; then
     161  AC_LINK_IFELSE(
     162    [AC_LANG_PROGRAM([[]],
     163                     [[extern int _nl_msg_cat_cntr;
     164                       return _nl_msg_cat_cntr]])],
     165    [DATADIRNAME=share],
     166    [case $host in
     167    *-*-solaris*)
     168    dnl On Solaris, if bind_textdomain_codeset is in libc,
     169    dnl GNU format message catalog is always supported,
     170    dnl since both are added to the libc all together.
     171    dnl Hence, we'd like to go with DATADIRNAME=share
     172    dnl in this case.
     173    AC_CHECK_FUNC(bind_textdomain_codeset,
     174      [DATADIRNAME=share], [DATADIRNAME=lib])
     175    ;;
     176    *)
     177    [DATADIRNAME=lib]
     178    ;;
     179    esac])
     180fi
     181AC_SUBST(DATADIRNAME)
     182
     183IT_PO_SUBDIR([po])
     184
     185])
     186
     187
     188# IT_PO_SUBDIR(DIRNAME)
     189# ---------------------
     190# All po subdirs have to be declared with this macro; the subdir "po" is
     191# declared by IT_PROG_INTLTOOL.
     192#
     193AC_DEFUN([IT_PO_SUBDIR],
     194[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
     195dnl
     196dnl The following CONFIG_COMMANDS should be executed at the very end
     197dnl of config.status.
     198AC_CONFIG_COMMANDS_PRE([
     199  AC_CONFIG_COMMANDS([$1/stamp-it], [
     200    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
     201       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
     202    fi
     203    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
     204    >"$1/stamp-it.tmp"
     205    [sed '/^#/d
     206         s/^[[].*] *//
     207         /^[    ]*$/d
     208        '"s|^|  $ac_top_srcdir/|" \
     209      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
     210    ]
     211    [sed '/^POTFILES =/,/[^\\]$/ {
     212                /^POTFILES =/!d
     213                r $1/POTFILES
     214          }
     215         ' "$1/Makefile.in" >"$1/Makefile"]
     216    rm -f "$1/Makefile.tmp"
     217    mv "$1/stamp-it.tmp" "$1/stamp-it"
     218  ])
     219])dnl
     220])
     221
     222# _IT_SUBST(VARIABLE)
     223# -------------------
     224# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
     225#
     226AC_DEFUN([_IT_SUBST],
     227[
     228AC_SUBST([$1])
     229m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
     230]
     231)
     232
     233# deprecated macros
     234AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
     235# A hint is needed for aclocal from Automake <= 1.9.4:
     236# AC_DEFUN([AC_PROG_INTLTOOL], ...)
     237
  • po/Makefile.in.in

    diff -urN ldm-2.2.9.orig/po/Makefile.in.in ldm-2.2.9/po/Makefile.in.in
    old new  
     1# Makefile for program source directory in GNU NLS utilities package.
     2# Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
     3# Copyright (C) 2004-2008 Rodney Dawes <dobey.pwns@gmail.com>
     4#
     5# This file may be copied and used freely without restrictions.  It may
     6# be used in projects which are not available under a GNU Public License,
     7# but which still want to provide support for the GNU gettext functionality.
     8#
     9# - Modified by Owen Taylor <otaylor@redhat.com> to use GETTEXT_PACKAGE
     10#   instead of PACKAGE and to look for po2tbl in ./ not in intl/
     11#
     12# - Modified by jacob berkman <jacob@ximian.com> to install
     13#   Makefile.in.in and po2tbl.sed.in for use with glib-gettextize
     14#
     15# - Modified by Rodney Dawes <dobey.pwns@gmail.com> for use with intltool
     16#
     17# We have the following line for use by intltoolize:
     18# INTLTOOL_MAKEFILE
     19
     20GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
     21PACKAGE = @PACKAGE@
     22VERSION = @VERSION@
     23
     24SHELL = @SHELL@
     25
     26srcdir = @srcdir@
     27top_srcdir = @top_srcdir@
     28top_builddir = @top_builddir@
     29VPATH = @srcdir@
     30
     31prefix = @prefix@
     32exec_prefix = @exec_prefix@
     33datadir = @datadir@
     34datarootdir = @datarootdir@
     35libdir = @libdir@
     36DATADIRNAME = @DATADIRNAME@
     37itlocaledir = $(prefix)/$(DATADIRNAME)/locale
     38subdir = po
     39install_sh = @install_sh@
     40# Automake >= 1.8 provides @mkdir_p@.
     41# Until it can be supposed, use the safe fallback:
     42mkdir_p = $(install_sh) -d
     43
     44INSTALL = @INSTALL@
     45INSTALL_DATA = @INSTALL_DATA@
     46
     47GMSGFMT = @GMSGFMT@
     48MSGFMT = @MSGFMT@
     49XGETTEXT = @XGETTEXT@
     50INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
     51INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
     52MSGMERGE = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist
     53GENPOT   = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot
     54
     55ALL_LINGUAS = @ALL_LINGUAS@
     56
     57PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; else echo "$(ALL_LINGUAS)"; fi)
     58
     59USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep \^$$lang$$ $(srcdir)/LINGUAS 2>/dev/null`" -o -n "`echo $$ALINGUAS|tr ' ' '\n'|grep \^$$lang$$`"; then printf "$$lang "; fi; done; fi)
     60
     61USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)" -o -n "$(LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else if test -n "$(PO_LINGUAS)"; then LLINGUAS="$(PO_LINGUAS)"; else LLINGUAS="$(ALL_LINGUAS)"; fi; fi; for lang in $$LLINGUAS; do printf "$$lang "; done)
     62
     63POFILES=$(shell LINGUAS="$(PO_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done)
     64
     65DISTFILES = Makefile.in.in POTFILES.in $(POFILES)
     66EXTRA_DISTFILES = ChangeLog POTFILES.skip Makevars LINGUAS
     67
     68POTFILES = \
     69# This comment gets stripped out
     70
     71CATALOGS=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.gmo "; done)
     72
     73.SUFFIXES:
     74.SUFFIXES: .po .pox .gmo .mo .msg .cat
     75
     76AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
     77INTLTOOL_V_MSGFMT = $(INTLTOOL__v_MSGFMT_$(V))
     78INTLTOOL__v_MSGFMT_= $(INTLTOOL__v_MSGFMT_$(AM_DEFAULT_VERBOSITY))
     79INTLTOOL__v_MSGFMT_0 = @echo "  MSGFMT" $@;
     80
     81.po.pox:
     82        $(MAKE) $(GETTEXT_PACKAGE).pot
     83        $(MSGMERGE) $< $(GETTEXT_PACKAGE).pot -o $*.pox
     84
     85.po.mo:
     86        $(INTLTOOL_V_MSGFMT)$(MSGFMT) -o $@ $<
     87
     88.po.gmo:
     89        $(INTLTOOL_V_MSGFMT)file=`echo $* | sed 's,.*/,,'`.gmo \
     90          && rm -f $$file && $(GMSGFMT) -o $$file $<
     91
     92.po.cat:
     93        sed -f ../intl/po2msg.sed < $< > $*.msg \
     94          && rm -f $@ && gencat $@ $*.msg
     95
     96
     97all: all-@USE_NLS@
     98
     99all-yes: $(CATALOGS)
     100all-no:
     101
     102$(GETTEXT_PACKAGE).pot: $(POTFILES)
     103        $(GENPOT)
     104
     105install: install-data
     106install-data: install-data-@USE_NLS@
     107install-data-no: all
     108install-data-yes: all
     109        linguas="$(USE_LINGUAS)"; \
     110        for lang in $$linguas; do \
     111          dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \
     112          $(mkdir_p) $$dir; \
     113          if test -r $$lang.gmo; then \
     114            $(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
     115            echo "installing $$lang.gmo as $$dir/$(GETTEXT_PACKAGE).mo"; \
     116          else \
     117            $(INSTALL_DATA) $(srcdir)/$$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
     118            echo "installing $(srcdir)/$$lang.gmo as" \
     119                 "$$dir/$(GETTEXT_PACKAGE).mo"; \
     120          fi; \
     121          if test -r $$lang.gmo.m; then \
     122            $(INSTALL_DATA) $$lang.gmo.m $$dir/$(GETTEXT_PACKAGE).mo.m; \
     123            echo "installing $$lang.gmo.m as $$dir/$(GETTEXT_PACKAGE).mo.m"; \
     124          else \
     125            if test -r $(srcdir)/$$lang.gmo.m ; then \
     126              $(INSTALL_DATA) $(srcdir)/$$lang.gmo.m \
     127                $$dir/$(GETTEXT_PACKAGE).mo.m; \
     128              echo "installing $(srcdir)/$$lang.gmo.m as" \
     129                   "$$dir/$(GETTEXT_PACKAGE).mo.m"; \
     130            else \
     131              true; \
     132            fi; \
     133          fi; \
     134        done
     135
     136# Empty stubs to satisfy archaic automake needs
     137dvi info ctags tags CTAGS TAGS ID:
     138
     139# Define this as empty until I found a useful application.
     140install-exec installcheck:
     141
     142uninstall:
     143        linguas="$(USE_LINGUAS)"; \
     144        for lang in $$linguas; do \
     145          rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \
     146          rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \
     147        done
     148
     149check: all $(GETTEXT_PACKAGE).pot
     150        rm -f missing notexist
     151        srcdir=$(srcdir) $(INTLTOOL_UPDATE) -m
     152        if [ -r missing -o -r notexist ]; then \
     153          exit 1; \
     154        fi
     155
     156mostlyclean:
     157        rm -f *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp
     158        rm -f .intltool-merge-cache
     159
     160clean: mostlyclean
     161
     162distclean: clean
     163        rm -f Makefile Makefile.in POTFILES stamp-it
     164        rm -f *.mo *.msg *.cat *.cat.m *.gmo
     165
     166maintainer-clean: distclean
     167        @echo "This command is intended for maintainers to use;"
     168        @echo "it deletes files that may require special tools to rebuild."
     169        rm -f Makefile.in.in
     170
     171distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
     172dist distdir: $(DISTFILES)
     173        dists="$(DISTFILES)"; \
     174        extra_dists="$(EXTRA_DISTFILES)"; \
     175        for file in $$extra_dists; do \
     176          test -f $(srcdir)/$$file && dists="$$dists $(srcdir)/$$file"; \
     177        done; \
     178        for file in $$dists; do \
     179          test -f $$file || file="$(srcdir)/$$file"; \
     180          ln $$file $(distdir) 2> /dev/null \
     181            || cp -p $$file $(distdir); \
     182        done
     183
     184update-po: Makefile
     185        $(MAKE) $(GETTEXT_PACKAGE).pot
     186        tmpdir=`pwd`; \
     187        linguas="$(USE_LINGUAS)"; \
     188        for lang in $$linguas; do \
     189          echo "$$lang:"; \
     190          result="`$(MSGMERGE) -o $$tmpdir/$$lang.new.po $$lang`"; \
     191          if $$result; then \
     192            if cmp $(srcdir)/$$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
     193              rm -f $$tmpdir/$$lang.new.po; \
     194            else \
     195              if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
     196                :; \
     197              else \
     198                echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
     199                rm -f $$tmpdir/$$lang.new.po; \
     200                exit 1; \
     201              fi; \
     202            fi; \
     203          else \
     204            echo "msgmerge for $$lang.gmo failed!"; \
     205            rm -f $$tmpdir/$$lang.new.po; \
     206          fi; \
     207        done
     208
     209Makefile POTFILES: stamp-it
     210        @if test ! -f $@; then \
     211          rm -f stamp-it; \
     212          $(MAKE) stamp-it; \
     213        fi
     214
     215stamp-it: Makefile.in.in $(top_builddir)/config.status POTFILES.in
     216        cd $(top_builddir) \
     217          && CONFIG_FILES=$(subdir)/Makefile.in CONFIG_HEADERS= CONFIG_LINKS= \
     218               $(SHELL) ./config.status
     219
     220# Tell versions [3.59,3.63) of GNU make not to export all variables.
     221# Otherwise a system limit (for SysV at least) may be exceeded.
     222.NOEXPORT:
Note: See TracBrowser for help on using the repository browser.