[Commits] AUTHORS NONE 1.1 ChangeLog NONE 1.1 Makefile.am 1.1 1.2 NEWS NONE 1.1 README NONE 1.1 TODO NONE 1.1 configure.ac NONE 1.1 example-plugin.c 1.6 NONE
miras at claws-mail.org
miras at claws-mail.org
Sat Dec 3 22:18:40 CET 2011
Update of /home/claws-mail/contacts/plugins/example
In directory claws-mail:/tmp/cvs-serv20360/plugins/example
Modified Files:
Makefile.am
Added Files:
AUTHORS ChangeLog NEWS README TODO configure.ac
Removed Files:
example-plugin.c
Log Message:
2011-12-03 [mir] 0.6.0cvs36
* plugins/example/AUTHORS
* plugins/example/ChangeLog
* plugins/example/Makefile.am
* plugins/example/NEWS
* plugins/example/README
* plugins/example/TODO
* plugins/example/configure.ac
* plugins/example/example-plugin.c
* plugins/example/src/Makefile.am
* plugins/example/src/example-plugin.c
* extensions/Makefile.am
* extensions/example/AUTHORS
* extensions/example/ChangeLog
* extensions/example/Makefile.am
* extensions/example/NEWS
* extensions/example/README
* extensions/example/TODO
* extensions/example/configure.ac
* extensions/example/config/Makefile.am
* extensions/example/src/Makefile.am
* extensions/example/src/example-extension.c
* extensions/export/Makefile.am
* extensions/export/ldifexport_extension.c
* extensions/import/Makefile.am
Refactored extensions and plugins.
--- NEW FILE: ChangeLog ---
--- NEW FILE: configure.ac ---
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT(src/example-plugin.c)
AC_CONFIG_AUX_DIR(config)
AM_MAINTAINER_MODE
PACKAGE=example_plugin
dnl extension version
MAJOR_VERSION=0
MINOR_VERSION=1
MICRO_VERSION=1
EXTRA_VERSION=0
if test \( $EXTRA_VERSION -eq 0 \); then
if test \( $MICRO_VERSION -eq 0 \); then
VERSION=${MAJOR_VERSION}.${MINOR_VERSION}
else
VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}
fi
else
if test \( $MICRO_VERSION -eq 0 \); then
VERSION=${MAJOR_VERSION}.${MINOR_VERSION}cvs${EXTRA_VERSION}
else
VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}cvs${EXTRA_VERSION}
fi
fi
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
AC_DEFINE_UNQUOTED(PLUGINVERSION, "$VERSION", [plugin version])
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CC
AM_PROG_CC_STDC
AC_LANG_C
AC_ISC_POSIX
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LIBTOOL
# Checks for libraries.
#
# Find pkg-config
#
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test x$PKG_CONFIG = xno ; then
AC_MSG_ERROR([*** pkg-config not found. See http://www.freedesktop.org/software/pkgconfig/])
fi
#
# Check for claws-contacts
#
PKG_CHECK_MODULES(CLAWS_CONTACTS, claws-contacts >= 0.6.0)
AC_SUBST(CLAWS_CONTACTS_CFLAGS)
AC_SUBST(CLAWS_CONTACTS_LIBS)
if test -z $prefix || test "${prefix}" = "NONE" ; then
prefix=$( $PKG_CONFIG --variable=prefix claws-contacts )
CLAWS_CONTACTS_PLUGINDIR=$( $PKG_CONFIG --variable=plugindir claws-contacts )
else
CLAWS_CONTACTS_PLUGINDIR='${libdir}/claws-contacts/plugins'
fi
AC_SUBST(CLAWS_CONTACTS_PLUGINDIR)
if test $USE_MAINTAINER_MODE = yes; then
CFLAGS="-g -Wall"
else
CFLAGS="-g -O2 -Wall"
fi
#ALL_LINGUAS="ca cs es fi fr hu id it ja lt nl pt_BR ru sk uk"
#AC_DEFINE_UNQUOTED(TEXTDOMAIN, "$PACKAGE", [Gettext textdomain])
#AM_GNU_GETTEXT_VERSION([0.15])
#AM_GNU_GETTEXT([external])
PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.16])
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.16)
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)
# Checks for header files.
AC_HEADER_STDC
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
# Checks for library functions.
# check the version of libarchive
AC_SUBST(VERSION)
AC_SUBST(EXTENSIONVERSION)
AC_SUBST(MAJOR_VERSION)
AC_SUBST(MINOR_VERSION)
AC_SUBST(MICRO_VERSION)
AC_SUBST(EXTRA_VERSION)
AC_CONFIG_COMMANDS(
[summary],
[[echo ""
echo "${PACKAGE} will be compiled with these settings:"
echo ""
echo -e "CFLAGS: ${CFLAGS}"
echo -e "Plugin version: ${PLUGIN_VER}"
echo ""
echo -e "Now run make to build ${PACKAGE}"
echo ""
echo -e "Please send bugs or feature requests to the maintainer(s)."
echo -e "Email addresses can be found in the AUTHORS file."
echo ""]],
[
CFLAGS="$CFLAGS"
PACKAGE="$PACKAGE"
PLUGIN_VER="$VERSION"
]
)
AC_OUTPUT([
Makefile
config/Makefile
src/Makefile
])
--- example-plugin.c DELETED ---
--- NEW FILE: AUTHORS ---
--- NEW FILE: README ---
--- NEW FILE: NEWS ---
--- NEW FILE: TODO ---
Index: Makefile.am
===================================================================
RCS file: /home/claws-mail/contacts/plugins/example/Makefile.am,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- Makefile.am 7 Sep 2011 17:35:28 -0000 1.1
+++ Makefile.am 3 Dec 2011 21:18:38 -0000 1.2
@@ -1,28 +1,12 @@
-# $Id$
-AUTOMAKE_OPTIONS = gnu
-
-plugindir = $(pkglibdir)/plugins
-
-plugin_LTLIBRARIES = example-plugin.la
-
-example_plugin_la_LDFLAGS = \
- -avoid-version -module
-
-INCLUDES = \
- -I${top_srcdir} \
- -I${top_srcdir}/src \
- -I$(top_srcdir)/src/dbus \
- -I${top_builddir} \
- @GLIB_CFLAGS@ \
- @GTK_CFLAGS@
-
-AM_CPPFLAGS = \
- -DG_LOG_DOMAIN=\"Claws-Contacts\"
+SUBDIRS = config src
-example_plugin_la_SOURCES = \
- example-plugin.c
-
-example_plugin_la_LIBADD= \
- @GLIB_LIBS@ \
- @GTK_LIBS@
+ACLOCAL_AMFLAGS = -I m4
+EXTRA_DIST = \
+ AUTHORS \
+ COPYING \
+ ChangeLog \
+ INSTALL \
+ NEWS \
+ README \
+ TODO
More information about the Commits
mailing list