From 1c89e0d50639077d4f4d8ad3844c7a9d5b26fde5 Mon Sep 17 00:00:00 2001 From: Lukas Rusak Date: Wed, 6 Apr 2016 11:57:33 -0700 Subject: [PATCH] gtk+: dependency of chromium --- packages/addons/addon-depends/gtk+/package.mk | 57 +++++++++++++++++ .../gtk+/patches/gtk+-01_no-gtk-doc.patch | 64 +++++++++++++++++++ .../gtk+/patches/gtk+-02_meh-glib.patch | 34 ++++++++++ 3 files changed, 155 insertions(+) create mode 100644 packages/addons/addon-depends/gtk+/package.mk create mode 100644 packages/addons/addon-depends/gtk+/patches/gtk+-01_no-gtk-doc.patch create mode 100644 packages/addons/addon-depends/gtk+/patches/gtk+-02_meh-glib.patch diff --git a/packages/addons/addon-depends/gtk+/package.mk b/packages/addons/addon-depends/gtk+/package.mk new file mode 100644 index 0000000000..195c2c4c2b --- /dev/null +++ b/packages/addons/addon-depends/gtk+/package.mk @@ -0,0 +1,57 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) +# +# 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 2, 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 OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="gtk+" +PKG_VERSION="2.24.30" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="OSS" +PKG_SITE="http://www.gtk.org/" +PKG_URL="http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/$PKG_NAME-$PKG_VERSION.tar.xz" +PKG_DEPENDS_TARGET="toolchain atk libX11 libXrandr libXi glib pango cairo gdk-pixbuf" +PKG_PRIORITY="optional" +PKG_SECTION="x11/toolkits" +PKG_SHORTDESC="gtk+: The Gimp ToolKit (GTK)" +PKG_LONGDESC="This is GTK+. GTK+, which stands for the Gimp ToolKit, is a library for creating graphical user interfaces for the X Window System. It is designed to be small, efficient, and flexible. GTK+ is written in C with a very object-oriented approach." +PKG_IS_ADDON="no" + +PKG_AUTORECONF="yes" + +PKG_CONFIGURE_OPTS_TARGET="ac_cv_path_GLIB_GENMARSHAL=$ROOT/$TOOLCHAIN/bin/glib-genmarshal \ + --disable-glibtest \ + --enable-modules \ + --enable-explicit-deps=no \ + --disable-debug \ + --enable-shm \ + --disable-cups \ + --disable-papi \ + --enable-xkb \ + --disable-xinerama \ + --disable-gtk-doc-html \ + --with-xinput" + +make_target() { + make SRC_SUBDIRS="gdk gtk modules" + $MAKEINSTALL SRC_SUBDIRS="gdk gtk modules" +} + +makeinstall_target() { + make install DESTDIR=$INSTALL SRC_SUBDIRS="gdk gtk modules" +} diff --git a/packages/addons/addon-depends/gtk+/patches/gtk+-01_no-gtk-doc.patch b/packages/addons/addon-depends/gtk+/patches/gtk+-01_no-gtk-doc.patch new file mode 100644 index 0000000000..b264b45dbc --- /dev/null +++ b/packages/addons/addon-depends/gtk+/patches/gtk+-01_no-gtk-doc.patch @@ -0,0 +1,64 @@ +From fca2ac06da064b133101f215efd5fbd738fb3ef9 Mon Sep 17 00:00:00 2001 +From: Stefan Saraev +Date: Thu, 27 Mar 2014 14:26:27 +0200 +Subject: [PATCH] no gtk-doc + +--- + Makefile.am | 3 +-- + configure.ac | 12 ------------ + 2 files changed, 1 insertions(+), 14 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index 8e3a2f1..35e94d2 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -2,7 +2,7 @@ + include $(top_srcdir)/Makefile.decl + + SRC_SUBDIRS = gdk gtk modules demos tests perf +-SUBDIRS = po po-properties $(SRC_SUBDIRS) docs m4macros build ++SUBDIRS = po po-properties $(SRC_SUBDIRS) m4macros build + + # require automake 1.4 + AUTOMAKE_OPTIONS = 1.7 +@@ -136,7 +136,6 @@ MAINTAINERCLEANFILES = \ + $(srcdir)/mkinstalldirs \ + $(srcdir)/omf.make \ + $(srcdir)/xmldocs.make \ +- $(srcdir)/gtk-doc.make \ + $(srcdir)/ChangeLog \ + `find "$(srcdir)" -type f -name Makefile.in -print` + +diff --git a/configure.ac b/configure.ac +index 245a87f..f6ede8a 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -1594,8 +1594,6 @@ GOBJECT_INTROSPECTION_CHECK([0.9.3]) + # Checks for gtk-doc and docbook-tools + ################################################## + +-GTK_DOC_CHECK([1.11]) +- + AC_CHECK_PROG(DB2HTML, db2html, true, false) + AM_CONDITIONAL(HAVE_DOCBOOK, $DB2HTML) + +@@ -1727,16 +1725,6 @@ demos/Makefile + demos/gtk-demo/Makefile + demos/gtk-demo/geninclude.pl + tests/Makefile +-docs/Makefile +-docs/reference/Makefile +-docs/reference/gdk/Makefile +-docs/reference/gdk/version.xml +-docs/reference/gtk/Makefile +-docs/reference/gtk/version.xml +-docs/reference/libgail-util/Makefile +-docs/faq/Makefile +-docs/tools/Makefile +-docs/tutorial/Makefile + build/Makefile + build/win32/Makefile + build/win32/vs9/Makefile +-- +1.7.2.5 + diff --git a/packages/addons/addon-depends/gtk+/patches/gtk+-02_meh-glib.patch b/packages/addons/addon-depends/gtk+/patches/gtk+-02_meh-glib.patch new file mode 100644 index 0000000000..7ea8a7f0c4 --- /dev/null +++ b/packages/addons/addon-depends/gtk+/patches/gtk+-02_meh-glib.patch @@ -0,0 +1,34 @@ +From 3cb23c7b05be36e130bd1930dad3382ce8c08c51 Mon Sep 17 00:00:00 2001 +From: Stefan Saraev +Date: Sun, 26 Oct 2014 00:26:09 +0300 +Subject: [PATCH] meh glib + +--- + gdk/Makefile.am | 4 ++-- + 1 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/gdk/Makefile.am b/gdk/Makefile.am +index c880f6e..7661530 100644 +--- a/gdk/Makefile.am ++++ b/gdk/Makefile.am +@@ -307,7 +307,7 @@ lib_LTLIBRARIES = $(gdktargetlib) + + EXTRA_LTLIBRARIES = libgdk-x11-2.0.la libgdk-win32-2.0.la libgdk-quartz-2.0.la libgdk-directfb-2.0.la + +-MAINTAINERCLEANFILES = $(gdk_built_sources) stamp-gdkenumtypes.h ++MAINTAINERCLEANFILES = $(gdk_built_sources) + EXTRA_DIST += $(gdk_built_sources) + EXTRA_HEADERS = + +@@ -333,7 +333,7 @@ BUILT_SOURCES = \ + $(gdk_built_sources) \ + gdkconfig.h + +-gdkenumtypes.h: stamp-gdkenumtypes.h ++gdkenumtypes.h: + @true + stamp-gdkenumtypes.h: @REBUILD@ $(gdk_public_h_sources) gdkenumtypes.h.template + ( cd $(srcdir) && $(GLIB_MKENUMS) --template gdkenumtypes.h.template \ +-- +1.7.2.5 +