HACKING Makefile.am acconfig.h autogen.sh use AM_GLIB_GNU_GETTEXT. Since

2001-09-27  Sven Neumann  <sven@gimp.org>

        * HACKING
        * Makefile.am
        * acconfig.h
        * autogen.sh
        * configure.in: use AM_GLIB_GNU_GETTEXT. Since glib and GTK+ rely on
        gettext being available, we don't need to ship with the option to use
        an included implementation. The intl subdirectory will not be created
        anymore. Had to put the old sed hacks back in that create Makefiles
        from Makefile.in in the extra po directories.

        * almost all Makefile.am: removed $(top_srcdir)/intl from INCLUDES.

        * app/main.c
        * libgimp/stdplugins-intl.h
        * plug-ins/perl/Gimp.xs
        * plug-ins/script-fu/script-fu-intl.h: changed package names to
        gimp14* so the po files don't clash with gimp12.
This commit is contained in:
Sven Neumann
2001-09-27 15:33:53 +00:00
committed by Sven Neumann
parent 6820c7997e
commit a56949222f
46 changed files with 81 additions and 99 deletions

View File

@ -1,3 +1,23 @@
2001-09-27 Sven Neumann <sven@gimp.org>
* HACKING
* Makefile.am
* acconfig.h
* autogen.sh
* configure.in: use AM_GLIB_GNU_GETTEXT. Since glib and GTK+ rely on
gettext being available, we don't need to ship with the option to use
an included implementation. The intl subdirectory will not be created
anymore. Had to put the old sed hacks back in that create Makefiles
from Makefile.in in the extra po directories.
* almost all Makefile.am: removed $(top_srcdir)/intl from INCLUDES.
* app/main.c
* libgimp/stdplugins-intl.h
* plug-ins/perl/Gimp.xs
* plug-ins/script-fu/script-fu-intl.h: changed package names to
gimp14* so the po files don't clash with gimp12.
2001-09-26 Manish Singh <yosh@gimp.org>
* app/gui/preferences-dialog.c: replaced CTree with a TreeView

View File

@ -6,13 +6,11 @@ to have the following packages (or newer versions) installed:
- GNU autoconf 2.13
- GNU automake 1.4
- GNU libtool 1.3.4
- GNU gettext 10.38
Available in ftp://alpha.gnu.org/gnu
These should be available by ftp from prep.ai.mit.edu or any of the
fine GNU mirrors. Beta software can be found at alpha.gnu.org.
- pkg-config 0.7.0 or better
- pkg-config 0.7.0 (or a newer version)
Available from http://www.freedesktop.org/software/pkgconfig

View File

@ -3,7 +3,6 @@
SUBDIRS = \
m4macros \
tools \
intl \
regexrepl \
pixmaps \
themes \

View File

@ -52,6 +52,9 @@
#undef SRAND_FUNC
#undef USE_PTHREADS
#undef GETTEXT_PACKAGE
/* Leave that blank line there!! Autoheader needs it.
If you're adding to this file, keep in mind:

View File

@ -121,7 +121,6 @@ AM_CPPFLAGS = @STRIP_BEGIN@ \
INCLUDES = @STRIP_BEGIN@ \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
$(GTK_CFLAGS) \
-I$(includedir) \
@STRIP_END@

View File

@ -119,7 +119,7 @@ main (int argc,
prog_name = argv[0];
/* Initialize i18n support */
INIT_LOCALE ("gimp");
INIT_LOCALE (GETTEXT_PACKAGE);
#ifdef ENABLE_NLS
bindtextdomain ("gimp-libgimp", LOCALEDIR);

View File

@ -36,9 +36,9 @@ DIE=0
DIE=1
}
echo "I am testing that you have the required versions of libtool, autoconf,"
echo "automake and gettext. This test is not foolproof, so if anything goes"
echo "wrong, see the file HACKING for more information..."
echo "I am testing that you have the required versions of libtool, autoconf"
echo "and automake. This test is not foolproof, so if anything goes wrong,"
echo "see the file HACKING for more information..."
echo
echo "Testing libtool... "
@ -68,15 +68,6 @@ else
DIE=1
fi
echo "Testing gettextize... "
VER=`gettextize --version | grep gettext | sed "s/.* \([0-9.]*\)[a-z]*$/\1/;s/0.//"`
if expr $VER \>= 10.38 >/dev/null; then
echo "looks OK."
else
echo "too old! (Need (0.)10.38, have $VER)"
DIE=1
fi
echo
if test "$DIE" -eq 1; then
@ -100,7 +91,7 @@ esac
if test -z "$ACLOCAL_FLAGS"; then
acdir=`aclocal --print-ac-dir`
m4list="gtk.m4 gettext.m4"
m4list="glib-2.0.m4 glib-gettext.m4 gtk-2.0.m4"
for file in $m4list
do
@ -116,12 +107,6 @@ if test -z "$ACLOCAL_FLAGS"; then
done
fi
echo "Running gettextize... Ignore non-fatal messages."
# Hmm, we specify --force here, since otherwise things dont'
# get added reliably, but we don't want to overwrite intl
# while making dist.
echo "no" | gettextize --copy --force
aclocal $ACLOCAL_FLAGS
# optionally feature autoheader

View File

@ -26,6 +26,10 @@ LT_AGE=`expr $GIMP_BINARY_AGE - $GIMP_INTERFACE_AGE`
VERSION=$GIMP_VERSION
PACKAGE=gimp
GETTEXT_PACKAGE=gimp14
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE")
AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
dnl Specify a configuration file
@ -97,8 +101,7 @@ AC_SUBST(STRIP_END)
dnl i18n stuff
ALL_LINGUAS="ca cs da de en_GB es fi fr ga gl hu hr it ja ko nl no pl pt_BR ro ru sk sv tr uk zh_TW.Big5"
AM_GNU_GETTEXT
AM_GLIB_GNU_GETTEXT
AC_PATH_XTRA
@ -823,7 +826,6 @@ gimp.spec
Makefile
build/Makefile
build/win32/Makefile
intl/Makefile
tools/Makefile
tools/authorsgen/Makefile
tools/pdbgen/Makefile
@ -924,10 +926,16 @@ po/Makefile.in
po-libgimp/Makefile.in
po-plug-ins/Makefile.in
po-script-fu/Makefile.in
plug-ins/perl/po/Makefile.in],
[
plug-ins/perl/po/Makefile.in
],[
chmod +x gimptool-1.4
sed -e "s/^ ..\/..\/..\// ..\//" plug-ins/perl/po/Makefile > plug-ins/perl/po/Makefile.eek && mv plug-ins/perl/po/Makefile.eek plug-ins/perl/po/Makefile
sed -e "/POTFILES =/r po-libgimp/POTFILES" po-libgimp/Makefile.in > po-libgimp/Makefile
sed -e "/POTFILES =/r po-plug-ins/POTFILES" po-plug-ins/Makefile.in > po-plug-ins/Makefile
sed -e "/POTFILES =/r po-script-fu/POTFILES" po-script-fu/Makefile.in > po-script-fu/Makefile
sed -e "/POTFILES =/r plug-ins/perl/po/POTFILES" plug-ins/perl/po/Makefile.in > plug-ins/perl/po/Makefile
case "$CONFIG_FILES" in
*plug-ins/perl*)
if test -f plug-ins/perl/config.status; then

View File

@ -12,8 +12,6 @@ AM_CPPFLAGS = @STRIP_BEGIN@ \
INCLUDES = @STRIP_BEGIN@ \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
-I../intl \
$(GTK_CFLAGS) \
-I$(includedir) \
@STRIP_END@

View File

@ -26,11 +26,11 @@
#define INIT_I18N() G_STMT_START{ \
bindtextdomain("gimp-libgimp", LOCALEDIR); \
bind_textdomain_codeset ("gimp-libgimp", "UTF-8"); \
bindtextdomain("gimp-std-plugins", LOCALEDIR); \
bind_textdomain_codeset ("gimp-std-plugins", "UTF-8"); \
textdomain("gimp-std-plugins"); \
bindtextdomain(GETTEXT_PACKAGE"-libgimp", LOCALEDIR); \
bind_textdomain_codeset (GETTEXT_PACKAGE"-libgimp", "UTF-8"); \
bindtextdomain(GETTEXT_PACKAGE"-std-plugins", LOCALEDIR); \
bind_textdomain_codeset (GETTEXT_PACKAGE"-std-plugins", "UTF-8"); \
textdomain(GETTEXT_PACKAGE"-std-plugins"); \
setlocale (LC_NUMERIC, "C"); \
}G_STMT_END

View File

@ -12,8 +12,6 @@ AM_CPPFLAGS = @STRIP_BEGIN@ \
INCLUDES = @STRIP_BEGIN@ \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
-I../intl \
$(GLIB_CFLAGS) \
-I$(includedir) \
@STRIP_END@

View File

@ -12,8 +12,6 @@ AM_CPPFLAGS = @STRIP_BEGIN@ \
INCLUDES = @STRIP_BEGIN@ \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
-I../intl \
$(GTK_CFLAGS) \
-I$(includedir) \
@STRIP_END@

View File

@ -12,8 +12,6 @@ AM_CPPFLAGS = @STRIP_BEGIN@ \
INCLUDES = @STRIP_BEGIN@ \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
-I../intl \
$(GTK_CFLAGS) \
-I$(includedir) \
@STRIP_END@

View File

@ -12,8 +12,6 @@ AM_CPPFLAGS = @STRIP_BEGIN@ \
INCLUDES = @STRIP_BEGIN@ \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
-I../intl \
$(GTK_CFLAGS) \
-I$(includedir) \
@STRIP_END@

View File

@ -24,7 +24,6 @@ AM_CPPFLAGS = @STRIP_BEGIN@ \
INCLUDES = @STRIP_BEGIN@ \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
$(GTK_CFLAGS) \
-I$(includedir) \
@STRIP_END@

View File

@ -35,7 +35,6 @@ AM_CPPFLAGS = @STRIP_BEGIN@ \
INCLUDES = @STRIP_BEGIN@ \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
-I$(top_srcdir)/plug-ins/libgck \
$(GTK_CFLAGS) \
-I$(includedir) \

View File

@ -37,7 +37,6 @@ AM_CPPFLAGS = @STRIP_BEGIN@ \
INCLUDES = @STRIP_BEGIN@ \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
-I$(top_srcdir)/plug-ins/libgck \
$(GTK_CFLAGS) \
-I$(includedir) \

View File

@ -17,7 +17,6 @@ AM_CPPFLAGS = @STRIP_BEGIN@ \
INCLUDES = @STRIP_BEGIN@ \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
$(GTK_CFLAGS) \
-I$(includedir) \
@STRIP_END@

View File

@ -15,7 +15,6 @@ AM_CPPFLAGS = @STRIP_BEGIN@ \
INCLUDES = @STRIP_BEGIN@ \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
$(GTK_CFLAGS) \
-I$(includedir) \
@STRIP_END@

View File

@ -53,7 +53,6 @@ AM_CPPFLAGS = \@STRIP_BEGIN\@ \\
INCLUDES = \@STRIP_BEGIN\@ \\
-I\$(top_srcdir) \\
-I\$(top_srcdir)/intl \\
\$(GTK_CFLAGS) \\
-I\$(includedir) \\
\@STRIP_END\@

View File

@ -18,7 +18,6 @@ AM_CPPFLAGS = @STRIP_BEGIN@ \
INCLUDES = @STRIP_BEGIN@ \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
$(GTK_CFLAGS) \
-I$(includedir) \
@STRIP_END@

View File

@ -17,7 +17,6 @@ AM_CPPFLAGS = @STRIP_BEGIN@ \
INCLUDES = @STRIP_BEGIN@ \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
$(GLIB_CFLAGS) \
-I$(includedir) \
@STRIP_END@

View File

@ -16,7 +16,6 @@ AM_CPPFLAGS = @STRIP_BEGIN@ \
INCLUDES = @STRIP_BEGIN@ \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
$(GTK_CFLAGS) \
-I$(includedir) \
@STRIP_END@

View File

@ -21,7 +21,6 @@ AM_CPPFLAGS = @STRIP_BEGIN@ \
INCLUDES = @STRIP_BEGIN@ \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
$(GTK_CFLAGS) \
-I$(includedir) \
@STRIP_END@

View File

@ -18,7 +18,6 @@ AM_CPPFLAGS = @STRIP_BEGIN@ \
INCLUDES = @STRIP_BEGIN@ \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
$(GTK_CFLAGS) \
-I$(includedir) \
@STRIP_END@

View File

@ -212,7 +212,6 @@ AM_CPPFLAGS = @STRIP_BEGIN@ \
INCLUDES = @STRIP_BEGIN@ \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
$(GTK_CFLAGS) \
-I$(includedir) \
@STRIP_END@

View File

@ -53,7 +53,6 @@ AM_CPPFLAGS = @STRIP_BEGIN@ \
INCLUDES = @STRIP_BEGIN@ \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
$(GTK_CFLAGS) \
-I$(includedir) \
@STRIP_END@

View File

@ -19,7 +19,6 @@ AM_CPPFLAGS = @STRIP_BEGIN@ \
INCLUDES = @STRIP_BEGIN@ \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
$(GTK_CFLAGS) \
-I$(includedir) \
@STRIP_END@

View File

@ -16,7 +16,6 @@ AM_CPPFLAGS = @STRIP_BEGIN@ \
INCLUDES = @STRIP_BEGIN@ \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
$(GTK_CFLAGS) \
-I$(includedir) \
@STRIP_END@

View File

@ -16,7 +16,6 @@ AM_CPPFLAGS = @STRIP_BEGIN@ \
INCLUDES = @STRIP_BEGIN@ \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
$(GTK_CFLAGS) \
-I$(includedir) \
@STRIP_END@

View File

@ -40,7 +40,6 @@ AM_CPPFLAGS = @STRIP_BEGIN@ \
INCLUDES = @STRIP_BEGIN@ \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
$(GTK_CFLAGS) \
-I$(includedir) \
@STRIP_END@

View File

@ -18,7 +18,6 @@ AM_CPPFLAGS = @STRIP_BEGIN@ \
INCLUDES = @STRIP_BEGIN@ \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
$(GTK_CFLAGS) \
$(GTKXMHTML_CFLAGS) \
-I$(includedir) \

View File

@ -19,7 +19,6 @@ AM_CPPFLAGS = @STRIP_BEGIN@ \
INCLUDES = @STRIP_BEGIN@ \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
$(GTK_CFLAGS) \
-I$(includedir) \
@STRIP_END@

View File

@ -174,7 +174,6 @@ AM_CPPFLAGS = @STRIP_BEGIN@ \
INCLUDES = @STRIP_BEGIN@ \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
$(GTK_CFLAGS) \
-I$(includedir) \
@STRIP_END@

View File

@ -18,7 +18,6 @@ AM_CPPFLAGS = @STRIP_BEGIN@ \
INCLUDES = @STRIP_BEGIN@ \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
$(GTK_CFLAGS) \
-I$(includedir) \
@STRIP_END@

View File

@ -15,7 +15,6 @@ AM_CPPFLAGS = @STRIP_BEGIN@ \
INCLUDES = @STRIP_BEGIN@ \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
$(GTK_CFLAGS) \
-I$(includedir) \
@STRIP_END@

View File

@ -22,7 +22,6 @@ AM_CPPFLAGS = @STRIP_BEGIN@ \
INCLUDES = @STRIP_BEGIN@ \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
$(GTK_CFLAGS) \
-I$(includedir) \
@STRIP_END@

View File

@ -58,8 +58,8 @@ _exit()
BOOT:
#ifdef ENABLE_NLS
setlocale (LC_MESSAGES, ""); /* calling twice doesn't hurt, no? */
bindtextdomain ("gimp-perl", datadir "/locale");
textdomain ("gimp-perl");
bindtextdomain ("gimp14-perl", datadir "/locale");
textdomain ("gimp14-perl");
#endif
char *

View File

@ -1,3 +1,10 @@
2001-09-27 Sven Neumann <sven@gimp.org>
* Makefile.in.in: different version for AM_GLIB_GNU_GETTEXT.
* Makefile.PL
* Makefile.in.in: changed package name to gimp14-perl.
2001-09-17 Andras Timar <timar@gnome.hu>
* hu.po: converted to UTF-8.

View File

@ -9,9 +9,9 @@ if ($MSGFMT =~ /./ && $MSGFMT ne "no") {
my ($po) = /(.*)\.po$/;
print " $po";
$install .= " @-\$(MKPATH) \$(datadir)/locale/$po/LC_MESSAGES\n".
" -\$(CP) $po.gmo \$(datadir)/locale/$po/LC_MESSAGES/gimp-perl.mo\n".
" @-\$(CHMOD) 644 \$(datadir)/locale/$po/LC_MESSAGES/gimp-perl.mo\n";
$uninstall .= " \$(RM_F) \$(datadir)/locale/$po/LC_MESSAGES/gimp-perl.mo\n";
" -\$(CP) $po.gmo \$(datadir)/locale/$po/LC_MESSAGES/gimp14-perl.mo\n".
" @-\$(CHMOD) 644 \$(datadir)/locale/$po/LC_MESSAGES/gimp14-perl.mo\n";
$uninstall .= " \$(RM_F) \$(datadir)/locale/$po/LC_MESSAGES/gimp14-perl.mo\n";
$mofiles .= " $po.gmo";
}
} else {
@ -23,7 +23,7 @@ print "\n";
WriteMakefile(
NAME => 'i18n',
macro => \%cfg,
realclean => { FILES => "gimp-perl.pot" },
realclean => { FILES => "gimp14-perl.pot" },
clean => { FILES => "*.mo" },
);
@ -35,8 +35,8 @@ datadir = $datadir
%.gmo: %.po
$MSGFMT -o \$*.gmo \$*.po
%.po: gimp-perl.pot
-msgmerge -w 83 \$*.po gimp-perl.pot >\$*.po~
%.po: gimp14-perl.pot
-msgmerge -w 83 \$*.po gimp14-perl.pot >\$*.po~
-if cmp -s \$*.po~ \$*.po; then rm -f \$*.po~ ; else mv \$*.po~ \$*.po; fi
all :: $alltarget
@ -46,11 +46,11 @@ update-gmo: $mofiles
update-po: update-pot
$updatepo
gimp-perl.pot: update-pot
gimp14-perl.pot: update-pot
update-pot: force
\$(PERL) ../pxgettext `find .. -type f -print | grep \'\\.pm\$\$\\|\\.xs\$\$\\|examples/\\|Perl-Server\'` > gimp-perl.pot~
#if cmp -s gimp-perl.pot~ gimp-perl.pot; then rm -f gimp-perl.pot~ ; else mv gimp-perl.pot~ gimp-perl.pot; fi
\$(PERL) ../pxgettext `find .. -type f -print | grep \'\\.pm\$\$\\|\\.xs\$\$\\|examples/\\|Perl-Server\'` > gimp14-perl.pot~
#if cmp -s gimp14-perl.pot~ gimp14-perl.pot; then rm -f gimp14-perl.pot~ ; else mv gimp14-perl.pot~ gimp14-perl.pot; fi
force:

View File

@ -6,7 +6,7 @@
# but which still want to provide support for the GNU gettext functionality.
# Please note that the actual code is *not* freely available.
PACKAGE = gimp-perl
PACKAGE = gimp14-perl
VERSION = @VERSION@
SHELL = /bin/sh
@ -40,7 +40,7 @@ DEFS = @DEFS@
CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@
INCLUDES = -I.. -I$(top_srcdir)/intl
INCLUDES = -I..
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)

View File

@ -45,7 +45,6 @@ AM_CPPFLAGS = @STRIP_BEGIN@ \
INCLUDES = @STRIP_BEGIN@ \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
$(GTK_CFLAGS) \
-I$(includedir) \
@STRIP_END@

View File

@ -30,7 +30,6 @@ AM_CPPFLAGS = @STRIP_BEGIN@ \
INCLUDES = @STRIP_BEGIN@ \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
$(GTK_CFLAGS) \
-I$(includedir) \
@STRIP_END@

View File

@ -34,7 +34,6 @@ AM_CPPFLAGS = -DLOCALEDIR=\""$(localedir)"\"
INCLUDES = @STRIP_BEGIN@ \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
$(GTK_CFLAGS) \
-I$(includedir) \
@STRIP_END@

View File

@ -26,15 +26,15 @@
#ifdef HAVE_LC_MESSAGES
#define INIT_I18N() G_STMT_START{ \
setlocale(LC_MESSAGES, ""); \
bindtextdomain("gimp-libgimp", LOCALEDIR); \
bindtextdomain("gimp-script-fu", LOCALEDIR); \
textdomain("gimp-script-fu"); \
bindtextdomain(GETTEXT_PACKAGE"-libgimp", LOCALEDIR); \
bindtextdomain(GETTEXT_PACKAGE"-script-fu", LOCALEDIR); \
textdomain(GETTEXT_PACKAGE"-script-fu"); \
}G_STMT_END
#else
#define INIT_I18N() G_STMT_START{ \
bindtextdomain("gimp-libgimp", LOCALEDIR); \
bindtextdomain("gimp-script-fu", LOCALEDIR); \
textdomain("gimp-script-fu"); \
bindtextdomain(GETTEXT_PACKAGE"-libgimp", LOCALEDIR); \
bindtextdomain(GETTEXT_PACKAGE"-script-fu", LOCALEDIR); \
textdomain(GETTEXT_PACKAGE"-script-fu"); \
}G_STMT_END
#endif

View File

@ -37,7 +37,6 @@ AM_CPPFLAGS = @STRIP_BEGIN@ \
INCLUDES = @STRIP_BEGIN@ \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
$(GTK_CFLAGS) \
-I$(includedir) \
@STRIP_END@