pidgin/purple-plugin-pack

b0f547e62cc7
Parents 4daa77c6ba3d
Children bb96382ef953
This compiles again, although I think i'm going to move the plugins to their own directories
--- a/configure.ac Mon Mar 24 05:24:40 2008 -0400
+++ b/configure.ac Mon Mar 24 05:37:57 2008 -0400
@@ -209,6 +209,13 @@
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)
+HAVE_GNT="no"
+GNT_CFLAGS=""
+GNT_LIBS=""
+PKG_CHECK_MODULES(GNT, [gnt], HAVE_GNT="yes", HAVE_GNT="no")
+AC_SUBST(GNT_CFLAGS)
+AC_SUBST(GNT_CFLAGS)
+
dnl #######################################################################
dnl # Plugin dependency checking
dnl #######################################################################
--- a/smartear/Makefile.am Mon Mar 24 05:24:40 2008 -0400
+++ b/smartear/Makefile.am Mon Mar 24 05:37:57 2008 -0400
@@ -1,36 +1,62 @@
EXTRA_DIST= \
.build \
+ .pidgin-plugin \
.purple-plugin \
- .pidgin-plugin \
.finch-plugin \
Makefile.mingw
-smarteardir = $(PIDGIN_LIBDIR)
-
-smartear_la_LDFLAGS = -module -avoid-version
if HAVE_PURPLE
+smarteardir = $(PURPLE_LIBDIR)
+smartear_la_LDFLAGS = -module -avoid-version
+smartear_la_CPPFLAGS = \
+ -DLIBDIR=\"$(PURPLE_LIBDIR)\" \
+ -DDATADIR=\"$(PURPLE_DATADIR)\" \
+ -DPIXMAPSDIR=\"$(PURPLE_PIXMAPSDIR)\" \
+ $(DEBUG_CFLAGS) \
+ $(GLIB_CFLAGS) \
+ $(PURPLE_CFLAGS)
+
smartear_LTLIBRARIES = smartear.la
smartear_la_SOURCES = smartear.c
smartear_la_LIBADD = $(PURPLE_LIBS)
endif
if HAVE_PIDGIN
+gtksmarteardir = $(PIDGIN_LIBDIR)
+gtksmartear_la_LDFLAGS = -module -avoid-version
+gtksmartear_la_CPPFLAGS = \
+ -DLIBDIR=\"$(PIDGIN_LIBDIR)\" \
+ -DDATADIR=\"$(PIDGIN_DATADIR)\" \
+ -DPIXMAPSDIR=\"$(PIDGIN_PIIXMAPSDIR)\" \
+ $(GTK_CFLAGS) \
+ $(PIDGIN_CFLAGS)
+
gtksmartear_LTLIBRARIES = gtksmartear.la
gtksmartear_la_SOURCES = gtksmartear.c
-gtksmartear_la_LIBADD = $(PIDGIN_LIBS)
+gtksmartear_la_LIBADD = \
+ $(GTK_LIBS) \
+ $(PIDGIN_LIBS) \
+ $(PURPLE_LIBS)
+
endif
if HAVE_FINCH
+gntsmarteardir = $(FINCH_LIBDIR)
+gntsmartear_la_LDFLAGS = -module -avoid-version
+gntsmartear_la_CPPFLAGS = \
+ -DLIBDIR=\"$(FINCH_LIBDIR)\" \
+ -DDATADIR=\"$(FINCH_DATADIR)\" \
+ -DPIXMAPSDIR=\"$(FINCH_PIIXMAPSDIR)\" \
+ $(FINCH_CFLAGS) \
+ $(GNT_CFLAGS)
+
gntsmartear_LTLIBRARIES = gntsmartear.la
gntsmartear_la_SOURCES = gntsmartear.c
-gntsmartear_la_LIBADD = $(FINCH_LIBS)
+gntsmartear_la_LIBADD = \
+ $(FINCH_LIBS) \
+ $(GNT_LIBS) \
+ $(PURPLE_LIBS)
+
endif
-AM_CPPFLAGS = \
- -DLIBDIR=\"$(PURPLE_LIBDIR)\" \
- -DDATADIR=\"$(PURPLE_DATADIR)\" \
- -DPIXMAPSDIR=\"$(PURPLE_PIXMAPSDIR)\" \
- $(DEBUG_CFLAGS) \
- $(PURPLE_CFLAGS)
-
--- a/smartear/gtksmartear.c Mon Mar 24 05:24:40 2008 -0400
+++ b/smartear/gtksmartear.c Mon Mar 24 05:37:57 2008 -0400
@@ -25,8 +25,6 @@
/* Pack/Local headers */
#include "../common/pp_internal.h"
-#define PLUGIN_AUTHOR "John Bailey <rekkanoryo@rekkanoryo.org>"
-
/* System headers */
#include <gdk/gdk.h>
#include <glib.h>
@@ -60,7 +58,7 @@
PP_VERSION, /* version */
NULL, /* summary */
NULL, /* description */
- PLUGIN_AUTHOR, /* author */
+ "John Bailey <rekkanoryo@rekkanoryo.org>",
PP_WEBSITE, /* website */
plugin_load, /* load */
@@ -85,9 +83,10 @@
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
#endif /* ENABLE_NLS */
- info.name = _(PLUGIN_NAME);
- info.summary = _(PLUGIN_SUMMARY);
- info.description = _(PLUGIN_DESCRIPTION);
+ info.name = _("gtksmartear");
+ info.summary = _("GTK+ Configuration for smartear");
+ info.description = _("This plugin is just a frontend for the libpurple "
+ "plugin, smartear");
}
PURPLE_INIT_PLUGIN(PLUGIN_STATIC_NAME, init_plugin, info)