converted purple-guifications to cmake, it doesn't install to the right directory right now, but I need to figureout how to detect whether or not use the path in the pkg-config file from pidgin or to use our prefix
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/purple-guifications/CMakeLists.txt Mon Dec 13 23:16:27 2010 -0600
@@ -0,0 +1,68 @@
+cmake_minimum_required(VERSION 2.8) +############################################################################### +############################################################################### +project(purple-guifications C) +set(PURPLE_GUIFICATIONS_MAJOR_VERSION 0) +set(PURPLE_GUIFICATIONS_MINOR_VERSION 0) +set(PURPLE_GUIFICATIONS_MICRO_VERSION 1) +set(PURPLE_GUIFICATIONS_EXTRA_VERSION dev) +set(VERSION ${PURPLE_GUIFICATIONS_MAJOR_VERSION}.${PURPLE_GUIFICATIONS_MINOR_VERSION}.${PURPLE_GUIFICATIONS_MICRO_VERSION}${PURPLE_GUIFICATIONS_EXTRA_VERSION}) +############################################################################### +############################################################################### +pkg_check_modules(GLIB REQUIRED +pkg_check_modules(GFLIB REQUIRED gflib) +pkg_check_modules(PURPLE REQUIRED purple) +############################################################################### +############################################################################### + -DGETTEXT_PACKAGE="purple-guifications" + -DDATADIR="${CMAKE_INSTALL_PREFIX}/share" + -DLOCALEDIR="${CMAKE_INSTALL_PREFIX}/locale" +############################################################################### +############################################################################### +add_subdirectory(pixmaps) +############################################################################### +############################################################################### + FILES AUTHORS ChangeLog COPYING NEWS README + DESTINATION share/doc/purple-guifications --- a/purple-guifications/Makefile.am Mon Dec 13 22:59:00 2010 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-SUBDIRS = pixmaps po src
-BUILT_SOURCES=gf_config.h
-$(OBJECTS): libtool $(BUILD_SOURCES)
-libtool: $(LIBTOOL_DEPS)
- $(SHELL) ./config.status --recheck
-gf_config.h: pre_config.h
- cp -f po/Makefile po/.tmp-Makefile
- sed -e "s#localedir = .*#localedir = $(GAIM_DATADIR)/locale#g" < po/.tmp-Makefile > po/Makefile
- $(sedpath) 's/\#define PACKAGE/\#define GF_PACKAGE/g' pre_config.h > $@
--- a/purple-guifications/autogen.sh Mon Dec 13 22:59:00 2010 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,30 +0,0 @@
-# Guifications - The end-all, be-all notification framework
-# Copyright (C) 2003-2009 Gary Kramlich <grim@reaperworld.com>
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-PACKAGE="purple-guifications"
-which gflib-autogen.sh || {
- echo "You need to install gflib to run autogen"
--- a/purple-guifications/configure.ac Mon Dec 13 22:59:00 2010 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,144 +0,0 @@
-dnl Process this file with autoconf to create configure.
-dnl ################################################################
-dnl # Initialize autoconf
-dnl ################################################################
-AC_INIT(purple-guifications, 3.0.0dev, guifications-devel@lists.guifications.org)
-AC_COPYRIGHT([Copyright 2003-2009 Gary Kramlich])
-dnl ################################################################
-dnl # Initialize automake
-dnl ################################################################
-AM_INIT_AUTOMAKE([gnu dist-bzip2])
-AC_PATH_PROG(sedpath, sed)
-dnl ################################################################
-dnl # Configuration file
-dnl ################################################################
-AM_CONFIG_HEADER(config.h)
-dnl # Stash configure args
-AC_DEFINE_UNQUOTED(CONFIG_ARGS, "$ac_configure_args", [configure arguments])
-dnl #######################################################################
-dnl # Make sure we have pkg-config
-dnl #######################################################################
-dnl #######################################################################
-dnl #######################################################################
-LIBTOOL="$LIBTOOL --silent"
-dnl #######################################################################
-dnl # I'm lazy and figured config.h is the best place for this ;)
-dnl #######################################################################
-AC_DEFINE_UNQUOTED(GUIFICATIONS_WEBSITE, "http://guifications.org/", [guifications website])
-dnl #######################################################################
-dnl #######################################################################
-AH_TOP([ /* our header */
-dnl #######################################################################
-dnl #######################################################################
-GETTEXT_PACKAGE=purple-guifications
-AC_SUBST(GETTEXT_PACKAGE)
-AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"], [Define the gettext package to be used])
-dnl #######################################################################
-dnl # Look for the C compiler
-dnl #######################################################################
-AC_MSG_CHECKING([WMD's])
- AC_HELP_STRING([--enable-debug],[compile with debugging support])
-if test x"$enable_debug" = x"yes" ; then
- AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.])
-if test x"$GCC" = x"yes"; then
- CFLAGS="$CFLAGS -Wall -g3"
-dnl #######################################################################
-dnl # check for glib and other glib dependencies
-dnl #######################################################################
-PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.14.0)
-dnl #######################################################################
-dnl # check for libpurple
-dnl #######################################################################
-PKG_CHECK_MODULES(PURPLE, purple)
-if test x"$prefix" = x"NONE" ; then
- dnl # when no prefix is given, we grab the purple lib and data directories
- dnl # and use those instead. If a prefix was given, we just use that.
- PURPLE_LIBDIR=`pkg-config --variable=libdir purple`
-PURPLE_LIBDIR="$PURPLE_LIBDIR/purple-2/"
-dnl #######################################################################
-dnl # check for gflib goodies
-dnl #######################################################################
-PKG_CHECK_MODULES(GFLIB, gflib)
-dnl #######################################################################
-dnl #######################################################################
-dnl #######################################################################
-dnl #######################################################################
-echo AC_PACKAGE_NAME AC_PACKAGE_VERSION Configuration complete
-echo Installing to....................: $PURPLE_LIBDIR
-echo Debugging enabled................: $enable_debug
-echo Type make to compile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/purple-guifications/pixmaps/CMakeLists.txt Mon Dec 13 23:16:27 2010 -0600
@@ -0,0 +1,8 @@
+foreach(PIXMAP ${PIXMAPS}) + install(FILES ${PIXMAP} DESTINATION share/pixmaps/purple-guifications) --- a/purple-guifications/pixmaps/Makefile.am Mon Dec 13 22:59:00 2010 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-pixmapdir=$(datadir)/pixmaps/guifications/purple
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/purple-guifications/src/CMakeLists.txt Mon Dec 13 23:16:27 2010 -0600
@@ -0,0 +1,33 @@
+############################################################################### +# purple-guifications target +############################################################################### +set(PURPLE_GUIFICATIONS_HEADERS +set(PURPLE_GUIFICATIONS_SOURCES +add_library(purple-guifications MODULE + ${PURPLE_GUIFICATIONS_HEADERS} + ${PURPLE_GUIFICATIONS_SOURCES} +target_link_libraries(purple-guifications +set_target_properties(purple-guifications PROPERTIES PREFIX "") +############################################################################### +############################################################################### + TARGETS purple-guifications LIBRARY --- a/purple-guifications/src/Makefile.am Mon Dec 13 22:59:00 2010 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,27 +0,0 @@
-gf_LTLIBRARIES=guifications3.la
-guifications3_la_LDFLAGS=-module -avoid-version
-guifications3_la_SOURCES=\
-guifications3_la_LIBADD=\
- -DGF_VERSION=\"$(VERSION)\" \
- -DDATADIR=\"$(datadir)\" \
- -DLOCALEDIR=\"$(datadir)/locale\" \
--- a/purple-guifications/src/events.c Mon Dec 13 22:59:00 2010 -0600
+++ b/purple-guifications/src/events.c Mon Dec 13 23:16:27 2010 -0600
@@ -19,8 +19,7 @@
-#include <gflib/gf_lib.h>
-#include <gflib/gf_intl.h>
#define add_event(feed, name, i18n, desc) { \
event = gf_event_new((name), (i18n), (desc)); \
--- a/purple-guifications/src/events.h Mon Dec 13 22:59:00 2010 -0600
+++ b/purple-guifications/src/events.h Mon Dec 13 23:16:27 2010 -0600
@@ -20,7 +20,7 @@
-#include <gflib/gf_lib.h>
--- a/purple-guifications/src/purple-guifications.c Mon Dec 13 22:59:00 2010 -0600
+++ b/purple-guifications/src/purple-guifications.c Mon Dec 13 23:16:27 2010 -0600
@@ -21,7 +21,7 @@
-#include <gflib/gf_lib.h>
@@ -35,6 +35,12 @@
+/* undefine _ and N_ from gf_intl.h. This needs to be fixed in gf_lib.h to not + * include gf_intl.h or something... @@ -180,12 +186,12 @@
"Gary Kramlich <grim@reaperworld.com>",
+ "https://www.guifications.org/projects/guifications3/",