gtk+: build gtk-demo and package it appropriately
authorPhil Blundell <philb@gnu.org>
Thu, 4 Mar 2010 22:56:33 +0000 (22:56 +0000)
committerPhil Blundell <philb@gnu.org>
Thu, 4 Mar 2010 22:56:33 +0000 (22:56 +0000)
recipes/gtk+/gtk+-2.12.0/no-demos.patch [deleted file]
recipes/gtk+/gtk+-2.12.11/no-demos.patch [deleted file]
recipes/gtk+/gtk+-2.12.3/no-demos.patch [deleted file]
recipes/gtk+/gtk+-2.14.1/no-demos.patch [deleted file]
recipes/gtk+/gtk+-2.14.2/no-demos.patch [deleted file]
recipes/gtk+/gtk+-2.16.4/no-demos.patch [deleted file]
recipes/gtk+/gtk+-2.16.6/no-demos.patch [deleted file]
recipes/gtk+/gtk+-2.18.0/no-demos.patch [deleted file]
recipes/gtk+/gtk+-2.18.3/no-demos.patch [deleted file]
recipes/gtk+/gtk+-2.18.6/no-demos.patch [deleted file]
recipes/gtk+/gtk+.inc

diff --git a/recipes/gtk+/gtk+-2.12.0/no-demos.patch b/recipes/gtk+/gtk+-2.12.0/no-demos.patch
deleted file mode 100644 (file)
index 0fc4c48..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
---- gtk+-2.10.1/Makefile.am.orig       2006-08-08 12:37:30.000000000 +0100
-+++ gtk+-2.10.1/Makefile.am    2006-08-08 12:37:48.000000000 +0100
-@@ -1,6 +1,6 @@
- ## Makefile.am for GTK+
--SRC_SUBDIRS = gdk-pixbuf gdk gtk modules demos tests perf contrib
-+SRC_SUBDIRS = gdk-pixbuf gdk gtk modules tests perf contrib
- SUBDIRS = po po-properties $(SRC_SUBDIRS) docs m4macros
- # require automake 1.4
diff --git a/recipes/gtk+/gtk+-2.12.11/no-demos.patch b/recipes/gtk+/gtk+-2.12.11/no-demos.patch
deleted file mode 100644 (file)
index 0fc4c48..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
---- gtk+-2.10.1/Makefile.am.orig       2006-08-08 12:37:30.000000000 +0100
-+++ gtk+-2.10.1/Makefile.am    2006-08-08 12:37:48.000000000 +0100
-@@ -1,6 +1,6 @@
- ## Makefile.am for GTK+
--SRC_SUBDIRS = gdk-pixbuf gdk gtk modules demos tests perf contrib
-+SRC_SUBDIRS = gdk-pixbuf gdk gtk modules tests perf contrib
- SUBDIRS = po po-properties $(SRC_SUBDIRS) docs m4macros
- # require automake 1.4
diff --git a/recipes/gtk+/gtk+-2.12.3/no-demos.patch b/recipes/gtk+/gtk+-2.12.3/no-demos.patch
deleted file mode 100644 (file)
index 0fc4c48..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
---- gtk+-2.10.1/Makefile.am.orig       2006-08-08 12:37:30.000000000 +0100
-+++ gtk+-2.10.1/Makefile.am    2006-08-08 12:37:48.000000000 +0100
-@@ -1,6 +1,6 @@
- ## Makefile.am for GTK+
--SRC_SUBDIRS = gdk-pixbuf gdk gtk modules demos tests perf contrib
-+SRC_SUBDIRS = gdk-pixbuf gdk gtk modules tests perf contrib
- SUBDIRS = po po-properties $(SRC_SUBDIRS) docs m4macros
- # require automake 1.4
diff --git a/recipes/gtk+/gtk+-2.14.1/no-demos.patch b/recipes/gtk+/gtk+-2.14.1/no-demos.patch
deleted file mode 100644 (file)
index 0fc4c48..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
---- gtk+-2.10.1/Makefile.am.orig       2006-08-08 12:37:30.000000000 +0100
-+++ gtk+-2.10.1/Makefile.am    2006-08-08 12:37:48.000000000 +0100
-@@ -1,6 +1,6 @@
- ## Makefile.am for GTK+
--SRC_SUBDIRS = gdk-pixbuf gdk gtk modules demos tests perf contrib
-+SRC_SUBDIRS = gdk-pixbuf gdk gtk modules tests perf contrib
- SUBDIRS = po po-properties $(SRC_SUBDIRS) docs m4macros
- # require automake 1.4
diff --git a/recipes/gtk+/gtk+-2.14.2/no-demos.patch b/recipes/gtk+/gtk+-2.14.2/no-demos.patch
deleted file mode 100644 (file)
index 0fc4c48..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
---- gtk+-2.10.1/Makefile.am.orig       2006-08-08 12:37:30.000000000 +0100
-+++ gtk+-2.10.1/Makefile.am    2006-08-08 12:37:48.000000000 +0100
-@@ -1,6 +1,6 @@
- ## Makefile.am for GTK+
--SRC_SUBDIRS = gdk-pixbuf gdk gtk modules demos tests perf contrib
-+SRC_SUBDIRS = gdk-pixbuf gdk gtk modules tests perf contrib
- SUBDIRS = po po-properties $(SRC_SUBDIRS) docs m4macros
- # require automake 1.4
diff --git a/recipes/gtk+/gtk+-2.16.4/no-demos.patch b/recipes/gtk+/gtk+-2.16.4/no-demos.patch
deleted file mode 100644 (file)
index 0fc4c48..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
---- gtk+-2.10.1/Makefile.am.orig       2006-08-08 12:37:30.000000000 +0100
-+++ gtk+-2.10.1/Makefile.am    2006-08-08 12:37:48.000000000 +0100
-@@ -1,6 +1,6 @@
- ## Makefile.am for GTK+
--SRC_SUBDIRS = gdk-pixbuf gdk gtk modules demos tests perf contrib
-+SRC_SUBDIRS = gdk-pixbuf gdk gtk modules tests perf contrib
- SUBDIRS = po po-properties $(SRC_SUBDIRS) docs m4macros
- # require automake 1.4
diff --git a/recipes/gtk+/gtk+-2.16.6/no-demos.patch b/recipes/gtk+/gtk+-2.16.6/no-demos.patch
deleted file mode 100644 (file)
index 0fc4c48..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
---- gtk+-2.10.1/Makefile.am.orig       2006-08-08 12:37:30.000000000 +0100
-+++ gtk+-2.10.1/Makefile.am    2006-08-08 12:37:48.000000000 +0100
-@@ -1,6 +1,6 @@
- ## Makefile.am for GTK+
--SRC_SUBDIRS = gdk-pixbuf gdk gtk modules demos tests perf contrib
-+SRC_SUBDIRS = gdk-pixbuf gdk gtk modules tests perf contrib
- SUBDIRS = po po-properties $(SRC_SUBDIRS) docs m4macros
- # require automake 1.4
diff --git a/recipes/gtk+/gtk+-2.18.0/no-demos.patch b/recipes/gtk+/gtk+-2.18.0/no-demos.patch
deleted file mode 100644 (file)
index 0fc4c48..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
---- gtk+-2.10.1/Makefile.am.orig       2006-08-08 12:37:30.000000000 +0100
-+++ gtk+-2.10.1/Makefile.am    2006-08-08 12:37:48.000000000 +0100
-@@ -1,6 +1,6 @@
- ## Makefile.am for GTK+
--SRC_SUBDIRS = gdk-pixbuf gdk gtk modules demos tests perf contrib
-+SRC_SUBDIRS = gdk-pixbuf gdk gtk modules tests perf contrib
- SUBDIRS = po po-properties $(SRC_SUBDIRS) docs m4macros
- # require automake 1.4
diff --git a/recipes/gtk+/gtk+-2.18.3/no-demos.patch b/recipes/gtk+/gtk+-2.18.3/no-demos.patch
deleted file mode 100644 (file)
index 0fc4c48..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
---- gtk+-2.10.1/Makefile.am.orig       2006-08-08 12:37:30.000000000 +0100
-+++ gtk+-2.10.1/Makefile.am    2006-08-08 12:37:48.000000000 +0100
-@@ -1,6 +1,6 @@
- ## Makefile.am for GTK+
--SRC_SUBDIRS = gdk-pixbuf gdk gtk modules demos tests perf contrib
-+SRC_SUBDIRS = gdk-pixbuf gdk gtk modules tests perf contrib
- SUBDIRS = po po-properties $(SRC_SUBDIRS) docs m4macros
- # require automake 1.4
diff --git a/recipes/gtk+/gtk+-2.18.6/no-demos.patch b/recipes/gtk+/gtk+-2.18.6/no-demos.patch
deleted file mode 100644 (file)
index 0fc4c48..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
---- gtk+-2.10.1/Makefile.am.orig       2006-08-08 12:37:30.000000000 +0100
-+++ gtk+-2.10.1/Makefile.am    2006-08-08 12:37:48.000000000 +0100
-@@ -1,6 +1,6 @@
- ## Makefile.am for GTK+
--SRC_SUBDIRS = gdk-pixbuf gdk gtk modules demos tests perf contrib
-+SRC_SUBDIRS = gdk-pixbuf gdk gtk modules tests perf contrib
- SUBDIRS = po po-properties $(SRC_SUBDIRS) docs m4macros
- # require automake 1.4
index e619a6a..e6a0684 100644 (file)
@@ -11,19 +11,22 @@ PROVIDES = "gdk-pixbuf"
 MAJ_VER = "${@bb.data.getVar('PV',d,1).split('.')[0]}.${@bb.data.getVar('PV',d,1).split('.')[1]}"
 SRC_URI = "http://download.gnome.org/sources/gtk+/${MAJ_VER}/gtk+-${PV}.tar.bz2 \
        file://hardcoded_libtool.patch;patch=1 \
-       file://no-demos.patch;patch=1 \
        file://run-iconcache.patch;patch=1 \
        file://toggle-font.diff;patch=1;pnum=0 \
        file://xsettings.patch;patch=1 \
        "
 
-INC_PR = "r7"
+INC_PR = "r8"
 
 inherit autotools pkgconfig
 
 LEAD_SONAME = "libgtk-x11-2.0.so"
 LIBV = "2.10.0"
 
+PACKAGES =+ "${PN}-demo ${PN}-demo-source"
+FILES_${PN}-demo = "${bindir}/gtk-demo"
+FILES_${PN}-demo-source = "${datadir}/gtk-2.0/demo"
+
 FILES_${PN} = "${bindir}/gdk-pixbuf-query-loaders \
        ${bindir}/gtk-update-icon-cache \
        ${bindir}/gtk-query-immodules-2.0 \