gtk+-directfb-2.10.9 r0: Added directfb support to gtk+
authorShane Volpe <shanevolpe@gmail.com>
Mon, 19 Mar 2007 17:36:12 +0000 (17:36 +0000)
committerShane Volpe <shanevolpe@gmail.com>
Mon, 19 Mar 2007 17:36:12 +0000 (17:36 +0000)
modified gtk-2.10.inc to work with gtk+-directfb

packages/gtk+/gtk+-directfb_2.10.9.bb [new file with mode: 0644]
packages/gtk+/gtk-2.10.inc

diff --git a/packages/gtk+/gtk+-directfb_2.10.9.bb b/packages/gtk+/gtk+-directfb_2.10.9.bb
new file mode 100644 (file)
index 0000000..f8062f3
--- /dev/null
@@ -0,0 +1,38 @@
+require gtk-2.10.inc
+
+PR = "r0"
+
+# disable per default - untested and not all patches included.
+DEFAULT_PREFERENCE = "-1"
+S = "${WORKDIR}/gtk+-${PV}"
+
+LDFLAGS_append += " -ldirectfb"
+CFLAGS_append  += " -I${STAGING_INCDIR}/directfb"
+
+SRC_URI = "ftp://ftp.gtk.org/pub/gtk/v2.10/gtk+-${PV}.tar.bz2 \
+           file://no-xwc.patch;patch=1 \
+           file://automake-lossage.patch;patch=1 \
+           file://disable-tooltips.patch;patch=1 \
+           file://gtklabel-resize-patch;patch=1 \
+           file://menu-deactivate.patch;patch=1 \
+           file://xsettings.patch;patch=1 \
+           file://scroll-timings.patch;patch=1 \
+           file://small-gtkfilesel.patch;patch=1 \
+           file://migration.patch;patch=1;pnum=0 \
+           file://run-iconcache.patch;patch=1 \
+           file://hardcoded_libtool.patch;patch=1 \
+           file://no-demos.patch;patch=1 \
+           file://single-click.patch;patch=1 \
+           file://spinbutton.patch;patch=1 \
+           file://gtk+-handhelds.patch;patch=1 \
+          file://directfb_pixbuf_deprecated_fix.patch;patch=1 \
+#         file://gtk-doc.patch;patch=1 \
+"
+EXTRA_OECONF =" \
+                --prefix=${STAGING_DIR} \
+                --with-gdktarget=directfb \
+                --without-x \
+                --without-libtiff \
+                "
+GDKTARGET="directfb"
+
index 0a5860f..6f90350 100644 (file)
@@ -33,11 +33,13 @@ RRECOMMENDS_${PN}_openzaurus = "glibc-gconv-iso8859-1 ttf-dejavu-sans gdk-pixbuf
 
 EXTRA_OECONF = "--without-libtiff --disable-xkb --disable-glibtest --enable-display-migration"
 
+export GDKTARGET="x11"
+
 LIBV = "2.10.0"
 
 do_stage () {
-       oe_libinstall -so -C gtk libgtk-x11-2.0 ${STAGING_LIBDIR}
-       oe_libinstall -so -C gdk libgdk-x11-2.0 ${STAGING_LIBDIR}
+       oe_libinstall -so -C gtk libgtk-$GDKTARGET-2.0 ${STAGING_LIBDIR}
+       oe_libinstall -so -C gdk libgdk-$GDKTARGET-2.0 ${STAGING_LIBDIR}
        oe_libinstall -so -C contrib/gdk-pixbuf-xlib libgdk_pixbuf_xlib-2.0 ${STAGING_LIBDIR}
        oe_libinstall -so -C gdk-pixbuf libgdk_pixbuf-2.0 ${STAGING_LIBDIR}