contribs: fixed glib compilation by removing the dependency on gtk-doc
authorFelix Paul Kühne <fkuehne@videolan.org>
Sat, 27 Jun 2009 19:15:34 +0000 (21:15 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sat, 27 Jun 2009 23:56:51 +0000 (01:56 +0200)
extras/contrib/src/Makefile
extras/contrib/src/Patches/glib-remove-gtkdoc.patch [new file with mode: 0644]
extras/contrib/src/packages.mak

index 4ddbf08..ab91825 100644 (file)
@@ -1975,9 +1975,10 @@ glib-$(GLIB_VERSION).tar.bz2:
 
 glib: glib-$(GLIB_VERSION).tar.bz2
        $(EXTRACT_BZ2)
+       (cd $@; patch -p0 < ../Patches/glib-remove-gtkdoc.patch)
 
 .glib: glib
-       (cd $<; ./configure --prefix=$(PREFIX) --host=$(HOST) && make && make install)
+       (cd $<; sh autogen.sh --prefix=$(PREFIX) --host=$(HOST) && make && make install)
        touch $@
 
 CLEAN_FILE += .glib
diff --git a/extras/contrib/src/Patches/glib-remove-gtkdoc.patch b/extras/contrib/src/Patches/glib-remove-gtkdoc.patch
new file mode 100644 (file)
index 0000000..b43ff02
--- /dev/null
@@ -0,0 +1,96 @@
+diff -ru configure.in configure.in
+--- configure.in   2009-06-27 05:34:30.000000000 +0200
++++ configure.in     2009-06-27 12:45:40.000000000 +0200
+@@ -2600,8 +2600,6 @@
+ dnl *** Checks for gtk-doc ***
+ dnl **************************
+-GTK_DOC_CHECK([1.11])
+-
+ AC_ARG_ENABLE(man,
+               [AC_HELP_STRING([--enable-man],
+                               [regenerate man pages from Docbook [default=no]])],enable_man=yes,
+diff -ru Makefile.am Makefile.am
+--- Makefile.am        2009-05-08 01:57:50.000000000 +0200
++++ Makefile.am        2009-06-27 12:43:41.000000000 +0200
+@@ -3,7 +3,7 @@
+ AUTOMAKE_OPTIONS = 1.7
+-SUBDIRS = . m4macros glib gmodule gthread gobject gio tests po docs
++SUBDIRS = . m4macros glib gmodule gthread gobject gio tests po
+ DIST_SUBDIRS = $(SUBDIRS) build
+ bin_SCRIPTS = glib-gettextize
+@@ -68,8 +68,7 @@
+       INSTALL                 \
+       ChangeLog               \
+       glibconfig.h.win32      \
+-      config.h.win32          \
+-      gtk-doc.make
++      config.h.win32
+ configexecincludedir = $(libdir)/glib-2.0/include
+ configexecinclude_DATA = glibconfig.h
+diff -ru autogen.sh autogen.sh
+--- autogen.sh 2009-06-27 03:57:54.000000000 +0200
++++ autogen.sh 2009-06-27 12:32:21.000000000 +0200
+@@ -29,14 +29,6 @@
+       DIE=1
+ fi
+-(gtkdocize --version) < /dev/null > /dev/null 2>&1 || {
+-      echo
+-      echo "You must have gtk-doc installed to compile $PROJECT."
+-      echo "Install the appropriate package for your distribution,"
+-      echo "or get the source tarball at ftp://ftp.gnome.org/pub/GNOME/sources/gtk-doc/"
+-      DIE=1
+-}
+-
+ (autoconf --version) < /dev/null > /dev/null 2>&1 || {
+       echo
+       echo "You must have autoconf installed to compile $PROJECT."
+@@ -107,7 +99,6 @@
+ $ACLOCAL $ACLOCAL_FLAGS || exit $?
+ libtoolize --force || exit $?
+-gtkdocize || exit $?
+ autoheader || exit $?
+diff -ru docs/reference/gio/Makefile.am docs/reference/gio/Makefile.am
+--- docs/reference/gio/Makefile.am     2009-06-27 05:34:30.000000000 +0200
++++ docs/reference/gio/Makefile.am     2009-06-27 12:37:01.000000000 +0200
+@@ -104,7 +104,6 @@
+       version.xml.in          \
+       gvfs-overview.odg
+-include $(top_srcdir)/gtk-doc.make
+ EXTRA_DIST +=                         \
+       version.xml.in
+diff -ru docs/reference/glib/Makefile.am docs/reference/glib/Makefile.am
+--- docs/reference/glib/Makefile.am    2009-04-01 01:04:20.000000000 +0200
++++ docs/reference/glib/Makefile.am    2009-06-27 12:39:09.000000000 +0200
+@@ -69,9 +69,6 @@
+ # Extra options to supply to gtkdoc-fixref
+ FIXXREF_OPTIONS=
+-# include common portion ...
+-include $(top_srcdir)/gtk-doc.make
+-
+ # Other files to distribute
+ EXTRA_DIST +=                         \
+       file-name-encodings.png         \
+diff -ru docs/reference/gobject/Makefile.am docs/reference/gobject/Makefile.am
+--- docs/reference/gobject/Makefile.am 2009-04-01 01:04:20.000000000 +0200
++++ docs/reference/gobject/Makefile.am 2009-06-27 12:40:34.000000000 +0200
+@@ -58,8 +58,6 @@
+ # Extra options to supply to gtkdoc-fixref
+ FIXXREF_OPTIONS=--extra-dir=$(srcdir)/../glib/html
+-include $(top_srcdir)/gtk-doc.make
+-
+ # Other files to distribute
+ EXTRA_DIST +=                 \
+       gobject.cI      \
index f021dc0..deea997 100644 (file)
@@ -151,7 +151,7 @@ OPENCDK_VERSION=0.6.6
 OPENCDK_URL=http://www.gnu.org/software/gnutls/releases/opencdk/opencdk-$(OPENCDK_VERSION).tar.bz2
 DAAP_VERSION=0.4.0
 DAAP_URL=http://craz.net/programs/itunes/files/libopendaap-$(DAAP_VERSION).tar.bz2
-GLIB_VERSION=2.20.0
+GLIB_VERSION=2.20.4
 GLIB_URL=http://ftp.gnome.org/pub/gnome/sources/glib/2.20/glib-$(GLIB_VERSION).tar.bz2
 LIBIDL_VERSION=0.8.12
 LIBIDL_URL=http://ftp.gnome.org/pub/gnome/sources/libIDL/0.8/libIDL-$(LIBIDL_VERSION).tar.bz2