move to automake 1.9 and several cleanups (Fixes bug #341056). Patch from

2006-05-10  Lucas Rocha  <lucasr@gnome.org>

	* .cvsignore, Makefile.am, autogen.sh, configure.in,
	data/Makefile.am, po/.cvsignore, src/Makefile.am: move to
	automake 1.9 and several cleanups (Fixes bug #341056).
	Patch from Christian Persch <chpe@gnome.org>.
This commit is contained in:
Lucas Rocha 2006-05-10 03:37:14 +00:00 committed by Lucas Almeida Rocha
parent c8da127a67
commit 59b5bad794
8 changed files with 98 additions and 98 deletions

View File

@ -1,29 +1,29 @@
Makefile
Makefile.in
aclocal.m4 aclocal.m4
autom4te.cache autom4te.cache
intltool-update *.bz2
intltool-update.in compile
intltool-merge config.h
intltool-merge.in config.h.in
config.log
config.status
configure
depcomp
gnome-doc-utils.make
*.gz
INSTALL
install-sh
intltool-extract intltool-extract
intltool-extract.in intltool-extract.in
intltool-merge
intltool-merge.in
intltool-modules intltool-modules
config.status intltool-update
config.log intltool-update.in
config.h.in Makefile
config.h Makefile.in
configure
stamp-h.in
stamp-h1
stamp-h
zenity.spec
omf.make
xmldocs.make
*.gz
mkinstalldirs
missing missing
install-sh mkinstalldirs
depcomp stamp-h
INSTALL stamp-h1
gnome-doc-utils.make stamp-h.in
zenity.spec

View File

@ -1,3 +1,10 @@
2006-05-10 Lucas Rocha <lucasr@gnome.org>
* .cvsignore, Makefile.am, autogen.sh, configure.in,
data/Makefile.am, po/.cvsignore, src/Makefile.am: move to
automake 1.9 and several cleanups (Fixes bug #341056).
Patch from Christian Persch <chpe@gnome.org>.
2006-04-29 Lucas Rocha <lucasr@gnome.org> 2006-04-29 Lucas Rocha <lucasr@gnome.org>
* configure.in: post release version bump. * configure.in: post release version bump.

View File

@ -1,23 +1,3 @@
#
# FIXME:
# currently scrollkeeper-update does not seem to
# remove its database when there is no useful
# information contained there. Therefore, with
# "make uninstall" you're left with loads of
# stuff in /var/scrollkeeper and distcheck
# fails.
#
# http://mail.gnome.org/archives/gnome-doc-list/2003-May/msg00008.html
#
# This overrides the uninstall check so distcheck
# passes
#
# distuninstallcheck_listfiles = find . -type f -print | grep -v 'scrollkeeper' | grep -v 'omf' | grep -v 'figures'
distuninstallcheck:
@:
distcleancheck_listfiles = find . -type f -print | grep -v 'omf\.out' | grep -v 'legal.xml'
SUBDIRS = \ SUBDIRS = \
src \ src \
po \ po \
@ -25,13 +5,12 @@ SUBDIRS = \
help help
EXTRA_DIST = \ EXTRA_DIST = \
autogen.sh \
intltool-extract.in \ intltool-extract.in \
intltool-merge.in \ intltool-merge.in \
intltool-update.in \ intltool-update.in \
zenity.spec \ zenity.spec \
zenity.spec.in \ zenity.spec.in \
omf.make \
xmldocs.make \
COPYING \ COPYING \
HACKING \ HACKING \
ChangeLog \ ChangeLog \

View File

@ -5,7 +5,7 @@ srcdir=`dirname $0`
test -z "$srcdir" && srcdir=. test -z "$srcdir" && srcdir=.
PKG_NAME="zenity" PKG_NAME="zenity"
REQUIRED_AUTOMAKE_VERSION=1.7 REQUIRED_AUTOMAKE_VERSION=1.9
(test -f $srcdir/configure.in \ (test -f $srcdir/configure.in \
&& test -f $srcdir/ChangeLog \ && test -f $srcdir/ChangeLog \
@ -20,4 +20,4 @@ which gnome-autogen.sh || {
echo "You need to install gnome-common from the GNOME CVS" echo "You need to install gnome-common from the GNOME CVS"
exit 1 exit 1
} }
USE_GNOME2_MACROS=1 USE_COMMON_DOC_BUILD=yes . gnome-autogen.sh USE_GNOME2_MACROS=1 . gnome-autogen.sh

View File

@ -1,8 +1,13 @@
AC_PREREQ(2.53) AC_INIT([Zenity],[2.15.2],[http://bugzilla.gnome.org/enter_bug.cgi?product=zenity],[zenity])
AC_INIT(src)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(zenity, 2.15.2)
AC_PREREQ([2.59])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_SRCDIR([src])
AM_INIT_AUTOMAKE([1.9 foreign dist-bzip2 no-dist-gzip])
GNOME_COMMON_INIT
GNOME_DOC_INIT GNOME_DOC_INIT
AM_MAINTAINER_MODE AM_MAINTAINER_MODE
@ -11,62 +16,58 @@ IT_PROG_INTLTOOL([0.34.90])
AC_PROG_CC AC_PROG_CC
GTK_REQUIRED=2.6.0 GTK_REQUIRED=2.9.0
PKG_CHECK_MODULES(ZENITY, gtk+-2.0 >= $GTK_REQUIRED libglade-2.0 libgnomecanvas-2.0 glib-2.0 >= 2.7.3) PKG_CHECK_MODULES([ZENITY],[gtk+-2.0 >= $GTK_REQUIRED libglade-2.0 libgnomecanvas-2.0 glib-2.0])
AC_SUBST(ZENITY_CFLAGS) AC_SUBST([ZENITY_CFLAGS])
AC_SUBST(ZENITY_LIBS) AC_SUBST([ZENITY_LIBS])
dnl *********************************************** # *******************************
dnl scrollkeeper checks # perl check
dnl *********************************************** # *******************************
AC_PATH_PROG(SCROLLKEEPER_CONFIG, scrollkeeper-config,no) AC_PATH_PROG([PERL],[perl],)
if test x$SCROLLKEEPER_CONFIG = xno; then
AC_MSG_ERROR(Couldn't find scrollkeeper-config. Please install the scrollkeeper package)
fi
dnl ******************************* # *******************************
dnl perl check # libnotify check
dnl ******************************* # *******************************
AC_PATH_PROG(PERL,perl,) LIBNOTIFY_REQUIRED=0.3.2
PKG_CHECK_MODULES([LIBNOTIFY],[libnotify >= $LIBNOTIFY_REQUIRED],
[HAVE_LIBNOTIFY="yes"],[HAVE_LIBNOTIFY="no"])
AC_SUBST([LIBNOTIFY_CFLAGS])
AC_SUBST([LIBNOTIFY_LIBS])
dnl *******************************
dnl libnotify check
dnl *******************************
PKG_CHECK_MODULES(LIBNOTIFY, libnotify >= 0.3.2,
HAVE_LIBNOTIFY="yes", HAVE_LIBNOTIFY="no")
if test "x$HAVE_LIBNOTIFY" = "xyes"; then if test "x$HAVE_LIBNOTIFY" = "xyes"; then
ZENITY_CFLAGS="$ZENITY_CFLAGS $LIBNOTIFY_CFLAGS" AC_DEFINE([HAVE_LIBNOTIFY],[1],[libnotify is available on this machine])
ZENITY_LIBS="$ZENITY_LIBS $LIBNOTIFY_LIBS"
AC_SUBST(ZENITY_CFLAGS)
AC_SUBST(ZENITY_LIBS)
AC_DEFINE(HAVE_LIBNOTIFY, 1, [libnotify is available on this machine])
fi fi
dnl ******************************* # *******************************
dnl Internationalization # Debug
dnl ******************************* # *******************************
GNOME_DEBUG_CHECK
GNOME_COMPILE_WARNINGS([maximum])
# *******************************
# Internationalization
# *******************************
GETTEXT_PACKAGE=zenity GETTEXT_PACKAGE=zenity
AC_SUBST(GETTEXT_PACKAGE) AC_SUBST([GETTEXT_PACKAGE])
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext domain])
AM_GLIB_GNU_GETTEXT AM_GLIB_GNU_GETTEXT
dnl ************************************************************** # *******************************
dnl AM_GLIB_GNU_GETTEXT above substs $DATADIRNAME
dnl this is the directory where the *.{mo,gmo} files are installed
dnl **************************************************************
zenitylocaledir='${prefix}/${DATADIRNAME}/locale' AC_SUBST([AM_CPPFLAGS])
AC_SUBST(zenitylocaledir) AC_SUBST([AM_CFLAGS])
AC_SUBST([AM_LDFLAGS])
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Finding gettext package]) # *******************************
AC_DEFINE_UNQUOTED(GNOME_ICONDIR, "${prefix}/share/pixmaps", [Determining icon location]) AC_CONFIG_FILES([
AC_OUTPUT([
Makefile Makefile
zenity.spec zenity.spec
po/Makefile.in po/Makefile.in
@ -75,3 +76,5 @@ src/gdialog
data/Makefile data/Makefile
help/Makefile help/Makefile
]) ])
AC_OUTPUT

View File

@ -6,7 +6,7 @@ clothes_DATA = \
surfboard.png \ surfboard.png \
hawaii-shirt.png hawaii-shirt.png
imagesdir = $(datadir)/zenity/ imagesdir = $(datadir)/zenity
images_DATA = \ images_DATA = \
zenity.png \ zenity.png \
zenity-calendar.png \ zenity-calendar.png \

View File

@ -11,3 +11,4 @@ po2tbl.sed
po2tbl.sed.in po2tbl.sed.in
messages messages
missing missing
stamp-it

View File

@ -15,21 +15,31 @@ zenity_SOURCES = \
text.c \ text.c \
progress.c \ progress.c \
tree.c \ tree.c \
notification.c \
eggtrayicon.c \
eggtrayicon.h \ eggtrayicon.h \
eggtrayicon.c \
notification.c \
about.c \ about.c \
util.h \ util.h \
util.c util.c
INCLUDES = \ zenity_CPPFLAGS = \
$(ZENITY_CFLAGS) \
-I$(includedir) \ -I$(includedir) \
-DGNOMELOCALEDIR=\""$(zenitylocaledir)"\" \ -DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
-DZENITY_DATADIR=\""$(datadir)/zenity"\" -DZENITY_DATADIR=\""$(pkgdatadir)"\" \
$(AM_CPPFLAGS)
zenity_CFLAGS = \
$(ZENITY_CFLAGS) \
$(LIBNOTIFY_CFLAGS) \
$(WARN_CFLAGS) \
$(AM_CFLAGS)
zenity_LDFLAGS = \
$(AM_LDFLAGS)
zenity_LDADD = \ zenity_LDADD = \
$(ZENITY_LIBS) \ $(ZENITY_LIBS) \
$(LIBNOTIFY_LIBS) \
$(X_LIBS) $(X_LIBS)
gladedir = $(datadir)/zenity gladedir = $(datadir)/zenity