grim/guifications3

Parents 36e02fafe588
Children 1e34e7d10750
moved guificatoins-daemon-mpris to cmake, this sucker is way behind api wise and doesn't build, but it looks like I got everything for cmake
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/guifications-daemon-mpris/CMakeLists.txt Mon Dec 13 22:53:50 2010 -0600
@@ -0,0 +1,67 @@
+cmake_minimum_required(VERSION 2.8)
+
+###############################################################################
+# Project Info
+###############################################################################
+project(guifications-daemon-mpris C)
+
+set(GUIFICATIONS_DAEMON_MPRIS_MAJOR_VERSION 0)
+set(GUIFICATIONS_DAEMON_MPRIS_MINOR_VERSION 0)
+set(GUIFICATIONS_DAEMON_MPRIS_MICRO_VERSION 1)
+set(GUIFICATIONS_DAEMON_MPRIS_EXTRA_VERSION dev)
+
+set(VERSION ${GUIFICATIONS_DAEMON_MPRIS_MAJOR_VERSION}.${GUIFICATIONS_DAEMON_MPRIS_MINOR_VERSION}.${GUIFICATIONS_DAEMON_MPRIS_MICRO_VERSION}${GUIFICATIONS_DAEMON_MPRIS_EXTRA_VERSION})
+
+###############################################################################
+# Dependencies
+###############################################################################
+include(FindPkgConfig)
+
+pkg_check_modules(GLIB REQUIRED
+ glib-2.0>=2.16.0
+ gobject-2.0>=2.16.0
+ gthread-2.0>=2.16.0
+)
+
+pkg_check_modules(GFLIB REQUIRED gflib)
+
+pkg_check_modules(GUIFICATIONS_DAEMON REQUIRED guifications-daemon)
+
+pkg_check_modules(MPRIS mpris)
+
+###############################################################################
+# Build Info
+###############################################################################
+include_directories(
+ ${CMAKE_SOURCE_DIR}
+ ${GLIB_INCLUDE_DIRS}
+ ${GFLIB_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${GLIB_LIBRARY_DIRS}
+ ${GFLIB_LIBRARY_DIRS}
+)
+
+add_definitions(
+ -DGETTEXT_PACKAGE="guifications-daemon-mpris"
+ -DDATADIR="${CMAKE_INSTALL_PREFIX}/share"
+ -DLOCALEDIR="${CMAKE_INSTALL_PREFIX}/locale"
+ -g -g3 -Wall
+)
+
+###############################################################################
+# Subdirectories
+###############################################################################
+add_subdirectory(src)
+add_subdirectory(pixmaps)
+
+###############################################################################
+# Install Stuff
+###############################################################################
+# documentation
+install(
+ FILES AUTHORS ChangeLog COPYING NEWS README
+ DESTINATION share/doc/guifications-daemon-mpris
+)
+
--- a/guifications-daemon-mpris/Makefile.am Mon Dec 13 22:32:05 2010 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-SUBDIRS=pixmaps po src
-
-DISTCLEANFILES=\
- intltool-extract \
- intltool-update \
- intltool-merge
-
-EXTRA_DIST=\
- AUTHORS \
- NEWS \
- INSTALL \
- COPYING \
- README \
- ChangeLog \
- configure.ac \
- intltool-extract.in \
- intltool-merge.in \
- intltool-update.in \
- po/ChangeLog
-
-$(OBJECTS): libtool
-
-libtool: $(LIBTOOL_DEPS)
- $(SHELL) ./config.status --recheck
--- a/guifications-daemon-mpris/autogen.sh Mon Dec 13 22:32:05 2010 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,30 +0,0 @@
-#!/bin/sh
-# 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="gfd-mpris"
-
-which gflib-autogen.sh || {
- echo "You need to install gflib to run autogen"
- exit 1
-}
-
-. gflib-autogen.sh
-
-add_default_commands
-
-autogen
-
--- a/guifications-daemon-mpris/configure.ac Mon Dec 13 22:32:05 2010 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,141 +0,0 @@
-dnl Process this file with autoconf to create configure.
-
-dnl ################################################################
-dnl # Initialize autoconf
-dnl ################################################################
-AC_INIT(guifications-daemon-mpris, 0.0.1dev, guifications-devel@lists.guifications.org)
-AC_PREREQ(2.50)
-AC_CANONICAL_SYSTEM
-AC_CONFIG_SRCDIR(config.h.in)
-AC_COPYRIGHT([Copyright 2003-2009 Gary Kramlich])
-
-dnl ################################################################
-dnl # Initialize automake
-dnl ################################################################
-AM_INIT_AUTOMAKE([foreign dist-bzip2])
-
-dnl # disable the static library
-AC_DISABLE_STATIC
-
-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 # Setup libtool
-dnl #######################################################################
-LT_INIT
-LT_LANG([C])
-LIBTOOL="$LIBTOOL --silent"
-
-dnl #######################################################################
-dnl # Our header
-dnl #######################################################################
-
-AH_TOP([ /* our header */
-#ifndef CONFIG_H
-#define CONFIG_H
-])
-AH_BOTTOM([
-#endif /* CONFIG_H */
-])
-
-AC_MSG_CHECKING([absolutely nothing])
-AC_MSG_RESULT([yes])
-
-dnl #######################################################################
-dnl # intltool
-dnl #######################################################################
-AC_PROG_INTLTOOL
-
-GETTEXT_PACKAGE=guifications-mpris
-AC_SUBST(GETTEXT_PACKAGE)
-AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"], [Define the gettext package to be used])
-
-ALL_LINGUAS=""
-AM_GLIB_GNU_GETTEXT
-
-dnl #######################################################################
-dnl # Look for the C compiler
-dnl #######################################################################
-AC_MSG_CHECKING([black hole])
-AC_MSG_RESULT([found c:1,3])
-CFLAGS_save="$CFLAGS"
-AC_PROG_CC
-CFLAGS="$CFLAGS_save"
-
-AC_ARG_ENABLE(debug, [ --enable-debug compile with debugging support],,enable_debug=no)
-if test "x$enable_debug" = "xyes" ; then
- AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.])
-
- if test "x$GCC" = "xyes"; then
- CFLAGS="$CFLAGS -Wall -g3"
- fi
-fi
-AC_SUBST(CFLAGS)
-
-dnl #######################################################################
-dnl # check for gflib and gflib-plugin
-dnl #######################################################################
-PKG_CHECK_MODULES(GFLIB, gflib)
-AC_SUBST(GFLIB_LIBS)
-AC_SUBST(GFLIB_CFLAGS)
-
-GFLIB_GENHEADER=`pkg-config --variable=gflib_genheader gflib`
-AC_SUBST(GFLIB_GENHEADER)
-
-dnl #######################################################################
-dnl # check for gflib and gflib-plugin
-dnl #######################################################################
-PKG_CHECK_MODULES(GFB, guifications-daemon)
-AC_SUBST(GFD_LIBS)
-AC_SUBST(GFD_CFLAGS)
-
-if test x"${prefix}" = x"NONE" ; then
- GFD_PLUGIN_DIR=`pkg-config --variable=plugin_dir guifications-daemon`
-else
- GFD_PLUGIN_DIR="${prefix}/lib/guifications-daemon/"
-fi
-
-AC_SUBST(GFD_PLUGIN_DIR)
-
-dnl #######################################################################
-dnl # check for glib and other glib dependencies
-dnl #######################################################################
-PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.6.0 gobject-2.0 >= 2.6.0)
-AC_SUBST(GLIB_CFLAGS)
-AC_SUBST(GLIB_LIBS)
-
-dnl #######################################################################
-dnl # MPRIS Stuff
-dnl #######################################################################
-PKG_CHECK_MODULES(MPRIS, mpris)
-AC_SUBST(MPRIS_CFLAGS)
-AC_SUBST(MPRIS_LIBS)
-
-dnl #######################################################################
-dnl # Finish up
-dnl #######################################################################
-AC_OUTPUT([Makefile
- pixmaps/Makefile
- po/Makefile.in
- src/Makefile
- ])
-
-dnl #######################################################################
-dnl # Ouput!!
-dnl #######################################################################
-
-echo;
-echo AC_PACKAGE_NAME AC_PACKAGE_VERSION Configuration complete
-echo;
-echo Debugging enabled................: $enable_debug
-echo;
-echo gflib plugin directory...........: $GFD_PLUGIN_DIR
-echo;
-echo Type make to compile
-echo;
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/guifications-daemon-mpris/pixmaps/CMakeLists.txt Mon Dec 13 22:53:50 2010 -0600
@@ -0,0 +1,8 @@
+set(PIXMAPS
+ mpris.png
+)
+
+foreach(PIXMAP ${PIXMAPS})
+ install(FILES ${PIXMAP} DESTINATION share/pixmaps/guifications-daemon/mpris)
+endforeach(PIXMAP)
+
--- a/guifications-daemon-mpris/pixmaps/Makefile.am Mon Dec 13 22:32:05 2010 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-EXTRA_DIST=mpris.png
-
-pixmapdir=$(datadir)/pixmaps/guifications-daemon/mpris
-pixmap_DATA=mpris.png
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/guifications-daemon-mpris/src/CMakeLists.txt Mon Dec 13 22:53:50 2010 -0600
@@ -0,0 +1,29 @@
+###############################################################################
+# guifications-daemon-mpris target
+###############################################################################
+set(GUIFICATIONS_DAEMON_MPRIS_HEADERS
+)
+
+set(GUIFICATIONS_DAEMON_MPRIS_SOURCES
+ guifications-daemon-mpris.c
+)
+
+add_library(guifications-daemon-mpris MODULE
+ ${GUIFICATIONS_DAEMON_MPRIS_HEADERS}
+ ${GUIFICATIONS_DAEMON_MPRIS_SOURCES}
+)
+
+target_link_libraries(guifications-daemon-mpris
+ ${GLIB_LIBRARIES}
+ ${GFLIB_LIBRARIES}
+ ${MPRIS_LIBRARIES}
+)
+
+###############################################################################
+# Install Stuff
+###############################################################################
+install(
+ TARGETS guifications-daemon-mpris LIBRARY
+ DESTINATION lib/guifications-daemon
+)
+
--- a/guifications-daemon-mpris/src/guifications-daemon-mpris.c Mon Dec 13 22:32:05 2010 -0600
+++ b/guifications-daemon-mpris/src/guifications-daemon-mpris.c Mon Dec 13 22:53:50 2010 -0600
@@ -19,10 +19,11 @@
# include <config.h>
#endif /* HAVE_CONFIG_H */
-#include <gflib/gf_lib.h>
-#include <gflib/gf_intl.h>
+#include <gf_lib.h>
+#if 0
#include <mpris/mpris.h>
+#endif
/******************************************************************************
* Globals