summaryrefslogtreecommitdiffstats
path: root/patches/eggdbus-0.6
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2010-01-21 18:06:18 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2010-02-07 19:52:21 +0100
commit4d57ebc46c7ee546df5aac02fea6b3459e291b9e (patch)
tree97363dc07c8d234ddb2eec3a0e44eb60a64ee97c /patches/eggdbus-0.6
parent248c3af8981d3681535a133b87ecf2c3d7effd27 (diff)
downloadptxdist-4d57ebc46c7ee546df5aac02fea6b3459e291b9e.tar.gz
ptxdist-4d57ebc46c7ee546df5aac02fea6b3459e291b9e.tar.xz
[eggdbus] cleanup makefile and patches
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'patches/eggdbus-0.6')
-rw-r--r--patches/eggdbus-0.6/eggdbus-0.6-autotools.diff98
-rw-r--r--patches/eggdbus-0.6/eggdbus-0.6-no-tests.diff22
2 files changed, 35 insertions, 85 deletions
diff --git a/patches/eggdbus-0.6/eggdbus-0.6-autotools.diff b/patches/eggdbus-0.6/eggdbus-0.6-autotools.diff
index e16eb1ca3..417ad5b9d 100644
--- a/patches/eggdbus-0.6/eggdbus-0.6-autotools.diff
+++ b/patches/eggdbus-0.6/eggdbus-0.6-autotools.diff
@@ -1,18 +1,17 @@
---
Makefile.am | 2 ++
- configure.ac | 17 ++++++++++-------
+ configure.ac | 15 ++++++++-------
docs/eggdbus/Makefile.am | 2 +-
docs/tests/Makefile.am | 2 +-
- m4/gtk-doc.m4 | 39 +++++++++++++++++++++++++++++++++++++++
src/eggdbus/Makefile.am | 2 +-
src/tests/Makefile.am | 2 +-
- 7 files changed, 55 insertions(+), 11 deletions(-)
+ 6 files changed, 14 insertions(+), 11 deletions(-)
-Index: eggdbus-0.6/configure.ac
+Index: b/configure.ac
===================================================================
---- eggdbus-0.6.orig/configure.ac
-+++ eggdbus-0.6/configure.ac
-@@ -1,21 +1,23 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -1,16 +1,16 @@
dnl Process this file with autoconf to produce a configure script.
-AC_PREREQ(2.59c)
@@ -35,14 +34,7 @@ Index: eggdbus-0.6/configure.ac
AC_PROG_MAKE_SET
AC_PROG_LN_S
AC_SYS_LARGEFILE
- AM_PROG_CC_C_O
-
-+AC_CONFIG_MACRO_DIR([m4])
-+
- # Taken from dbus
- AC_ARG_ENABLE(ansi, [ --enable-ansi enable -ansi -pedantic gcc flags],enable_ansi=$enableval,enable_ansi=no)
- AC_ARG_ENABLE(verbose-mode, [ --enable-verbose-mode support verbose debug mode],enable_verbose_mode=$enableval,enable_verbose_mode=$USE_MAINTAINER_MODE)
-@@ -135,7 +137,7 @@ if test "x$GCC" = "xyes"; then
+@@ -135,7 +135,7 @@ if test "x$GCC" = "xyes"; then
LDFLAGS="-Wl,--as-needed $LDFLAGS"
fi
@@ -51,7 +43,7 @@ Index: eggdbus-0.6/configure.ac
Makefile
eggdbus-1.pc
src/Makefile
-@@ -147,6 +149,7 @@ docs/man/Makefile
+@@ -147,6 +147,7 @@ docs/man/Makefile
docs/tests/Makefile
docs/eggdbus/Makefile
])
@@ -59,10 +51,10 @@ Index: eggdbus-0.6/configure.ac
dnl ==========================================================================
echo "
-Index: eggdbus-0.6/docs/eggdbus/Makefile.am
+Index: b/docs/eggdbus/Makefile.am
===================================================================
---- eggdbus-0.6.orig/docs/eggdbus/Makefile.am
-+++ eggdbus-0.6/docs/eggdbus/Makefile.am
+--- a/docs/eggdbus/Makefile.am
++++ b/docs/eggdbus/Makefile.am
@@ -34,7 +34,7 @@ IGNORE_HFILES= \
# CFLAGS and LDFLAGS for compiling scan program. Only needed
@@ -72,10 +64,10 @@ Index: eggdbus-0.6/docs/eggdbus/Makefile.am
$(DBUS_GLIB_CFLAGS) \
$(GLIB_CFLAGS) \
$(GIO_CFLAGS) \
-Index: eggdbus-0.6/docs/tests/Makefile.am
+Index: b/docs/tests/Makefile.am
===================================================================
---- eggdbus-0.6.orig/docs/tests/Makefile.am
-+++ eggdbus-0.6/docs/tests/Makefile.am
+--- a/docs/tests/Makefile.am
++++ b/docs/tests/Makefile.am
@@ -29,7 +29,7 @@ IGNORE_HFILES= \
# CFLAGS and LDFLAGS for compiling scan program. Only needed
@@ -85,10 +77,10 @@ Index: eggdbus-0.6/docs/tests/Makefile.am
$(DBUS_GLIB_CFLAGS) \
$(GLIB_CFLAGS) \
$(GIO_CFLAGS) \
-Index: eggdbus-0.6/src/eggdbus/Makefile.am
+Index: b/src/eggdbus/Makefile.am
===================================================================
---- eggdbus-0.6.orig/src/eggdbus/Makefile.am
-+++ eggdbus-0.6/src/eggdbus/Makefile.am
+--- a/src/eggdbus/Makefile.am
++++ b/src/eggdbus/Makefile.am
@@ -1,7 +1,7 @@
NULL =
@@ -98,10 +90,10 @@ Index: eggdbus-0.6/src/eggdbus/Makefile.am
-I$(top_builddir)/src \
-I$(top_srcdir)/src \
-DPACKAGE_LIBEXEC_DIR=\""$(libexecdir)"\" \
-Index: eggdbus-0.6/src/tests/Makefile.am
+Index: b/src/tests/Makefile.am
===================================================================
---- eggdbus-0.6.orig/src/tests/Makefile.am
-+++ eggdbus-0.6/src/tests/Makefile.am
+--- a/src/tests/Makefile.am
++++ b/src/tests/Makefile.am
@@ -1,7 +1,7 @@
NULL =
@@ -111,54 +103,10 @@ Index: eggdbus-0.6/src/tests/Makefile.am
-I$(top_builddir)/src \
-I$(top_srcdir)/src \
-DPACKAGE_LIBEXEC_DIR=\""$(libexecdir)"\" \
-Index: eggdbus-0.6/m4/gtk-doc.m4
-===================================================================
---- /dev/null
-+++ eggdbus-0.6/m4/gtk-doc.m4
-@@ -0,0 +1,39 @@
-+dnl -*- mode: autoconf -*-
-+
-+# serial 1
-+
-+dnl Usage:
-+dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
-+AC_DEFUN([GTK_DOC_CHECK],
-+[
-+ AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
-+ AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
-+ dnl for overriding the documentation installation directory
-+ AC_ARG_WITH([html-dir],
-+ AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
-+ [with_html_dir='${datadir}/gtk-doc/html'])
-+ HTML_DIR="$with_html_dir"
-+ AC_SUBST([HTML_DIR])
-+
-+ dnl enable/disable documentation building
-+ AC_ARG_ENABLE([gtk-doc],
-+ AS_HELP_STRING([--enable-gtk-doc],
-+ [use gtk-doc to build documentation [[default=no]]]),,
-+ [enable_gtk_doc=no])
-+
-+ if test x$enable_gtk_doc = xyes; then
-+ ifelse([$1],[],
-+ [PKG_CHECK_EXISTS([gtk-doc],,
-+ AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
-+ [PKG_CHECK_EXISTS([gtk-doc >= $1],,
-+ AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build gtk-doc]))])
-+ fi
-+
-+ AC_MSG_CHECKING([whether to build gtk-doc documentation])
-+ AC_MSG_RESULT($enable_gtk_doc)
-+
-+ AC_PATH_PROGS(GTKDOC_CHECK,gtkdoc-check,)
-+
-+ AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
-+ AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
-+])
-Index: eggdbus-0.6/Makefile.am
+Index: b/Makefile.am
===================================================================
---- eggdbus-0.6.orig/Makefile.am
-+++ eggdbus-0.6/Makefile.am
+--- a/Makefile.am
++++ b/Makefile.am
@@ -1,5 +1,7 @@
## Process this file with automake to produce Makefile.in
diff --git a/patches/eggdbus-0.6/eggdbus-0.6-no-tests.diff b/patches/eggdbus-0.6/eggdbus-0.6-no-tests.diff
index a6702d468..2ef52ba85 100644
--- a/patches/eggdbus-0.6/eggdbus-0.6-no-tests.diff
+++ b/patches/eggdbus-0.6/eggdbus-0.6-no-tests.diff
@@ -11,30 +11,32 @@ Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
---
configure.ac | 2 ++
- src/Makefile.am | 6 +++++-
- 2 files changed, 7 insertions(+), 1 deletion(-)
+ src/Makefile.am | 8 +++++++-
+ 2 files changed, 9 insertions(+), 1 deletion(-)
-Index: eggdbus-0.6/configure.ac
+Index: b/configure.ac
===================================================================
---- eggdbus-0.6.orig/configure.ac
-+++ eggdbus-0.6/configure.ac
+--- a/configure.ac
++++ b/configure.ac
@@ -44,6 +44,8 @@ AC_ARG_WITH(eggdbus-tools,
])
AC_SUBST(EGGDBUS_TOOLS)
-+AM_CONDITIONAL([CROSS_COMPILE], [test "$(cross_compiling)" = "yes"])
++AM_CONDITIONAL([CROSS_COMPILE], [test "${cross_compiling}" = yes])
+
#### gcc warning flags
if test "x$GCC" = "xyes"; then
-Index: eggdbus-0.6/src/Makefile.am
+Index: b/src/Makefile.am
===================================================================
---- eggdbus-0.6.orig/src/Makefile.am
-+++ eggdbus-0.6/src/Makefile.am
-@@ -1,5 +1,9 @@
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -1,5 +1,11 @@
-SUBDIRS = eggdbus tests
+if CROSS_COMPILE
++TESTDIR=
++else
+TESTDIR=tests
+endif
+