--- a/gflib/CMakeLists.txt Sat Mar 20 16:27:47 2010 -0500
+++ b/gflib/CMakeLists.txt Sat Mar 20 18:55:24 2010 -0500
@@ -3,7 +3,7 @@
###############################################################################
###############################################################################
-cmake_minimum_required(VERSION 2.8)
+cmake_minimum_required(VERSION 2.6) @@ -12,6 +12,12 @@
###############################################################################
+include_directories(gflib + ${GMODULE_INCLUDE_DIRS} set(GFLIB_MAJOR_VERSION 0)
set(GFLIB_MINOR_VERSION 0)
set(GFLIB_MICRO_VERSION 1)
--- a/gflib/gflib-autogen.sh Sat Mar 20 16:27:47 2010 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,362 +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/>.
-###############################################################################
-###############################################################################
-###############################################################################
-# A list library similar to the lists in TCL
-# Copyright (C) 2009 Ethan Blanton
-# Heavily modified by Gary Kramlich
-###############################################################################
- # dirty hack to make sure we handle empty item. Basically we just turn
- if [ -z "${__item}" ] ; then
- eval "${__list}=\`catlist ${__list} | sed -e '${__index}i\\\\
- # dirty hack to make sure we handle empty item. Basically we just turn
- if [ -z "${__item}" ] ; then
- if lempty ${__list} ; then
- eval "${__list}='${__item}'"
- __index=`llength ${__list}`
- eval "${__list}=\"\`catlist ${__list}\`
- # dirty hack to make sure we handle empty item. Basically we just turn
- if [ -z "${__item}" ] ; then
- eval "${__list}=\`catlist ${__list} | sed -e '${__index},${__index}c\\\\
- cat <<EOF | sed -e "$2!d"
- catlist $1 | sed -e "$2,$3!d"
- catlist $1 | while read ITEM; do
- catlist $1 | sed -n "/$2/{
-###############################################################################
-###############################################################################
- lappend COMMANDS ${__cmd}
- lappend FLAGS ${__flags}
- __index=`lsearch COMMANDS ${__insert}`
- linsert COMMANDS ${__index} ${__cmd}
- linsert FLAGS ${__index} ${__flags}
- __index=`lsearch COMMANDS ${__old_command}`
- test ${__index} -ne 0 || return
- lreplace COMMANDS ${__index} ${__new_command}
- test -z "${__flags}" || lreplace FLAGS ${__index} ${__flags}
- test "${ARGS_FILE}" || ARGS_FILE="autogen.args"
- printf "checking for argument file %s: " ${ARGS_FILE}
- if test -f ${ARGS_FILE} ; then
- printf "sourcing %s ... " ${ARGS_FILE}
- # dash will only source a file from a source file if it's in the path
- # so we add . to the PATH for the source and then revert the path back
- printf "checking for ${__cmd}... "
- if [ x"${__bin}" = x"" ] ; then
- echo "${__cmd} is required to build ${PACKAGE}!"
- catlist COMMANDS | while read __cmd; do
- # we need to make sure to use a six-character template because some versions
- # of mktemp blow up on anything shorter or longer.
- __output=`mktemp autogen-XXXXXX`
- # we have to stash ${@} into a variable, otherwise printf has "issues" if
- # ${@} was expanded from a variable. Fortunately, this lets us clean up
- # the output a bit too.
- if [ x"${__args}" != x"" ] ; then
- if [ -n "${__args}" ] ; then
- __display="${__display} ${__args}"
- printf "running '${__display}' ... "
- ${__cmd} ${__args} >${__output} 2>&1
- __len=`llength COMMANDS`
- for i in `${SEQ_COMMAND} 1 ${__len}` ; do
- __cmd=`lindex COMMANDS ${i}`
- __flags=`lindex FLAGS ${i}`
- run_command ${__cmd} ${__flags}
- echo "running configure ${@}..."
- ./configure ${CONFIGURE_FLAGS} "${@}"
-add_default_commands () {
- add_command libtoolize -c -f --automake
- add_command intltoolize -c -f --automake
- add_command automake -a -c -f --gnu
- add_command autoconf -f
-add_default_library_commands () {
- # gtkdocize needs be to run before aclocal, so we insert it before aclocal
- insert_command aclocal gtkdocize --copy
- echo `lsearch COMMANDS ${1}`
-###############################################################################
-# Platform specific stuff
-###############################################################################
- # run the bsd platform specific stuff too
- # change libtoolize to glibtoolize
- update_command libtoolize glibtoolize
- # look for fink and add it's aclocal dir to the aclocal flags
- if [ -d /sw/share/aclocal ] ; then
- __flags="${__flags} -I /sw/share/aclocal"
- # look for macports and add it's aclocal dir to the aclocal flags
- if [ -d /opt/local/share/aclocal ] ; then
- __flags="${__flags} -I /opt/local/share/aclocal"
- update_command aclocal aclocal ${__flags}
- printf "adjusting for platform '%s' ... " ${__platform}
-###############################################################################
-###############################################################################
- if [ x"${FIGLET}" != x"" ] ; then
- echo "build system is being generated"
- echo "autogenerating build system for '${PACKAGE}'"
- test $? != 0 && exit -1
- test $? != 0 && exit -1
- # remove our cleanup trap
--- a/gflib/gflib/CMakeLists.txt Sat Mar 20 16:27:47 2010 -0500
+++ b/gflib/gflib/CMakeLists.txt Sat Mar 20 18:55:24 2010 -0500
@@ -1,11 +1,43 @@
- COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=glib_genmarshal glib-2.0
- OUTPUT_VARIABLE GLIB_GENMARSHAL
+ gf_connection_manager.h + gf_native_plugin_loader.h + gf_preference_engine_null.h + gf_preference_engine_xml.h + gf_preferences_proxy_entry.h
@@ -24,19 +56,27 @@
+ DEPENDS ${ENUM_HEADERS} + COMMAND ${GLIB_MKENUMS} --template gf_enum.h.template ${ENUM_HEADERS} > gf_enum.h - DEPENDS ${ENUM_HEADERS} ${GLIB_MKENUMS}
+ DEPENDS ${ENUM_HEADERS} gf_enum.h COMMAND ${GLIB_MKENUMS} --template gf_enum.c.template ${ENUM_HEADERS} > gf_enum.c
-message( fucker is ${GLIB_GENMARSHAL})
+ OUTPUT gf_marshallers.h + DEPENDS gf_marshallers.list + COMMAND ${GLIB_GENMARSHAL} --header --prefix=gf_marshal gf_marshallers.list > gf_marshallers.h - DEPENDS ${GLIB_GENMARSHAL} gf_marshallers.list
- COMMAND ${GLIB_GENMARSHAL}
- --body --prefix=gf_marshal gf_marshallers.list
+ DEPENDS gf_marshallers.list gf_marshallers.h + COMMAND ${GLIB_GENMARSHAL} --body --prefix=gf_marshal gf_marshallers.list > gf_marshallers.c