diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-27 15:14:24 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-27 15:29:45 +0100 |
commit | 29d6678fd546377459ef75cf54abeef5b969b5cf (patch) | |
tree | 8edd65790e37a00d01c3f203f773fe4b5012db18 /meta/recipes-graphics | |
parent | da49de6885ee1bc424e70bc02f21f6ab920efb55 (diff) | |
download | poky-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.gz |
Major layout change to the packages directory
Having one monolithic packages directory makes it hard to find things
and is generally overwhelming. This commit splits it into several
logical sections roughly based on function, recipes.txt gives more
information about the classifications used.
The opportunity is also used to switch from "packages" to "recipes"
as used in OpenEmbedded as the term "packages" can be confusing to
people and has many different meanings.
Not all recipes have been classified yet, this is just a first pass
at separating things out. Some packages are moved to meta-extras as
they're no longer actively used or maintained.
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-graphics')
466 files changed, 15104 insertions, 0 deletions
diff --git a/meta/recipes-graphics/cairo/cairo-1.8.10/hardcoded_libtool.patch b/meta/recipes-graphics/cairo/cairo-1.8.10/hardcoded_libtool.patch new file mode 100644 index 0000000000..afdf2c8f08 --- /dev/null +++ b/meta/recipes-graphics/cairo/cairo-1.8.10/hardcoded_libtool.patch | |||
@@ -0,0 +1,17 @@ | |||
1 | Index: cairo-1.8.2/build/aclocal.dolt.m4 | ||
2 | =================================================================== | ||
3 | --- cairo-1.8.2.orig/build/aclocal.dolt.m4 | ||
4 | +++ cairo-1.8.2/build/aclocal.dolt.m4 | ||
5 | @@ -163,7 +163,11 @@ done | ||
6 | if $modeok && $tagok ; then | ||
7 | . ${top_builddir_slash}doltcompile "${args@<:@@@:>@}" | ||
8 | else | ||
9 | - exec ${top_builddir_slash}libtool "$[]@" | ||
10 | +__DOLTLIBTOOL__EOF__ | ||
11 | + | ||
12 | +echo ' exec ${top_builddir_slash}'${host_alias}-libtool' "$[]@"' >> doltlibtool | ||
13 | + | ||
14 | + cat << '__DOLTLIBTOOL__EOF__' >> doltlibtool | ||
15 | fi | ||
16 | __DOLTLIBTOOL__EOF__ | ||
17 | |||
diff --git a/meta/recipes-graphics/cairo/cairo-fpu.inc b/meta/recipes-graphics/cairo/cairo-fpu.inc new file mode 100644 index 0000000000..bdaf789799 --- /dev/null +++ b/meta/recipes-graphics/cairo/cairo-fpu.inc | |||
@@ -0,0 +1,6 @@ | |||
1 | |||
2 | def get_cairo_fpu_setting(bb, d): | ||
3 | if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]: | ||
4 | return "--disable-some-floating-point" | ||
5 | return "" | ||
6 | |||
diff --git a/meta/recipes-graphics/cairo/cairo.inc b/meta/recipes-graphics/cairo/cairo.inc new file mode 100644 index 0000000000..e73a839671 --- /dev/null +++ b/meta/recipes-graphics/cairo/cairo.inc | |||
@@ -0,0 +1,13 @@ | |||
1 | DESCRIPTION = "Cairo graphics library" | ||
2 | HOMEPAGE = "http://cairographics.org" | ||
3 | BUGTRACKER = "http://bugs.freedesktop.org" | ||
4 | SECTION = "libs" | ||
5 | PRIORITY = "optional" | ||
6 | LICENSE = "MPLv1.1 & LGPLv2.1" | ||
7 | DEPENDS = "virtual/libx11 libsm libpng fontconfig libxrender pixman" | ||
8 | |||
9 | #check for TARGET_FPU=soft and inform configure of the result so it can disable some floating points | ||
10 | require cairo-fpu.inc | ||
11 | EXTRA_OECONF += "${@get_cairo_fpu_setting(bb, d)}" | ||
12 | |||
13 | inherit autotools pkgconfig | ||
diff --git a/meta/recipes-graphics/cairo/cairo_1.8.10.bb b/meta/recipes-graphics/cairo/cairo_1.8.10.bb new file mode 100644 index 0000000000..9e7e7a3bf6 --- /dev/null +++ b/meta/recipes-graphics/cairo/cairo_1.8.10.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | require cairo.inc | ||
2 | |||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=7d7cc3410ae869ed913ebd30d7f45941" | ||
4 | |||
5 | PR = "r0" | ||
6 | |||
7 | SRC_URI = "http://cairographics.org/releases/cairo-${PV}.tar.gz \ | ||
8 | file://hardcoded_libtool.patch" | ||
diff --git a/meta/recipes-graphics/clutter/aaina.inc b/meta/recipes-graphics/clutter/aaina.inc new file mode 100644 index 0000000000..afbc022cdb --- /dev/null +++ b/meta/recipes-graphics/clutter/aaina.inc | |||
@@ -0,0 +1,7 @@ | |||
1 | DESCRIPTION = "Aaina Clutter Demo" | ||
2 | HOMEPAGE = "http://www.clutter-project.org/" | ||
3 | LICENSE = "GPL" | ||
4 | |||
5 | DEPENDS = "clutter-0.6 libxml2 gtk+ neon" | ||
6 | |||
7 | inherit autotools pkgconfig | ||
diff --git a/meta/recipes-graphics/clutter/aaina_git.bb b/meta/recipes-graphics/clutter/aaina_git.bb new file mode 100644 index 0000000000..a348cd3d4d --- /dev/null +++ b/meta/recipes-graphics/clutter/aaina_git.bb | |||
@@ -0,0 +1,7 @@ | |||
1 | require aaina.inc | ||
2 | |||
3 | PV = "0.3.0+git${SRCPV}" | ||
4 | |||
5 | SRC_URI = "git://git.clutter-project.org/toys.git;protocol=git" | ||
6 | |||
7 | S = "${WORKDIR}/git/aaina" | ||
diff --git a/meta/recipes-graphics/clutter/clutter-0.6_git.bb b/meta/recipes-graphics/clutter/clutter-0.6_git.bb new file mode 100644 index 0000000000..5a8ccec164 --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-0.6_git.bb | |||
@@ -0,0 +1,15 @@ | |||
1 | require clutter.inc | ||
2 | |||
3 | PV = "0.6.0+gitr${SRCPV}" | ||
4 | PR = "r5" | ||
5 | |||
6 | PACKAGES =+ "clutter-examples-0.6" | ||
7 | FILES_clutter-examples-0.6 = "${bindir}/test-* ${pkgdatadir}/redhand.png" | ||
8 | |||
9 | |||
10 | SRC_URI = "git://git.clutter-project.org/clutter.git;protocol=git;branch=clutter-0-6 \ | ||
11 | file://symconflict.patch;patch=1 \ | ||
12 | file://enable_tests-0.6.patch;patch=1 " | ||
13 | |||
14 | S = "${WORKDIR}/git" | ||
15 | |||
diff --git a/meta/recipes-graphics/clutter/clutter-0.8_git.bb b/meta/recipes-graphics/clutter/clutter-0.8_git.bb new file mode 100644 index 0000000000..71e6198030 --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-0.8_git.bb | |||
@@ -0,0 +1,13 @@ | |||
1 | require clutter.inc | ||
2 | |||
3 | PV = "0.8.0+gitr${SRCREV}" | ||
4 | PR = "r2" | ||
5 | |||
6 | PACKAGES =+ "clutter-examples-0.8" | ||
7 | FILES_clutter-examples-0.8 = "${bindir}/test-* ${pkgdatadir}/redhand.png" | ||
8 | |||
9 | SRC_URI = "git://git.clutter-project.org/clutter.git;protocol=git;branch=clutter-0-8 \ | ||
10 | file://enable_tests-0.8.patch;patch=1 \ | ||
11 | file://build-fix.patch;patch=1" | ||
12 | |||
13 | S = "${WORKDIR}/git" | ||
diff --git a/meta/recipes-graphics/clutter/clutter-1.0_git.bb b/meta/recipes-graphics/clutter/clutter-1.0_git.bb new file mode 100644 index 0000000000..7e62954ee5 --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-1.0_git.bb | |||
@@ -0,0 +1,20 @@ | |||
1 | require clutter.inc | ||
2 | |||
3 | PV = "1.0+git${SRCPV}" | ||
4 | PR = "r3" | ||
5 | |||
6 | PACKAGES =+ "clutter-examples-1.0" | ||
7 | FILES_clutter-examples-1.0 = "${bindir}/test-* ${pkgdatadir}/redhand.png" | ||
8 | |||
9 | SRC_URI = "git://git.clutter-project.org/clutter.git;protocol=git;branch=clutter-1.0 \ | ||
10 | file://enable_tests-1.0.patch;patch=1 " | ||
11 | |||
12 | S = "${WORKDIR}/git" | ||
13 | |||
14 | BASE_CONF += "--disable-introspection" | ||
15 | |||
16 | |||
17 | do_configure_prepend () { | ||
18 | # Disable DOLT | ||
19 | sed -i -e 's/^DOLT//' ${S}/configure.ac | ||
20 | } | ||
diff --git a/meta/recipes-graphics/clutter/clutter-box2d.inc b/meta/recipes-graphics/clutter/clutter-box2d.inc new file mode 100644 index 0000000000..1a107c3993 --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-box2d.inc | |||
@@ -0,0 +1,15 @@ | |||
1 | DESCRIPTION = "Clutter Box2D" | ||
2 | HOMEPAGE = "http://www.clutter-project.org/" | ||
3 | LICENSE = "GPLv2" | ||
4 | |||
5 | DEPENDS = "clutter-0.8" | ||
6 | |||
7 | # The main clutter lib is machine specific so we need to be too | ||
8 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
9 | |||
10 | inherit autotools pkgconfig gtk-doc | ||
11 | |||
12 | do_install_append () { | ||
13 | install -d ${D}${bindir} | ||
14 | install ${S}/examples/.libs/blockbox ${D}${bindir} | ||
15 | } | ||
diff --git a/meta/recipes-graphics/clutter/clutter-box2d_git.bb b/meta/recipes-graphics/clutter/clutter-box2d_git.bb new file mode 100644 index 0000000000..4c74ffeb44 --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-box2d_git.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | require clutter-box2d.inc | ||
2 | |||
3 | PV = "0.0+git${SRCPV}" | ||
4 | PR = "r3" | ||
5 | |||
6 | SRC_URI = "git://git.clutter-project.org/clutter-box2d.git;protocol=git" | ||
7 | |||
8 | S = "${WORKDIR}/git" | ||
9 | |||
10 | |||
diff --git a/meta/recipes-graphics/clutter/clutter-cairo-0.6_git.bb b/meta/recipes-graphics/clutter/clutter-cairo-0.6_git.bb new file mode 100644 index 0000000000..3b7f6a9be5 --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-cairo-0.6_git.bb | |||
@@ -0,0 +1,13 @@ | |||
1 | require clutter-cairo.inc | ||
2 | |||
3 | PV = "0.6.0+git${SRCREV}" | ||
4 | PR = "r1" | ||
5 | |||
6 | DEPENDS += "clutter-0.6" | ||
7 | |||
8 | SRC_URI = "git://git.clutter-project.org/clutter-cairo.git;protocol=git;branch=clutter-cairo-0-6 \ | ||
9 | file://enable_examples-0.6.patch;patch=1" | ||
10 | |||
11 | S = "${WORKDIR}/git" | ||
12 | |||
13 | |||
diff --git a/meta/recipes-graphics/clutter/clutter-cairo-0.8_git.bb b/meta/recipes-graphics/clutter/clutter-cairo-0.8_git.bb new file mode 100644 index 0000000000..cb8482b742 --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-cairo-0.8_git.bb | |||
@@ -0,0 +1,12 @@ | |||
1 | require clutter-cairo.inc | ||
2 | |||
3 | PV = "0.8.0+git${SRCPV}" | ||
4 | |||
5 | DEPENDS += "clutter-0.8" | ||
6 | |||
7 | SRC_URI = "git://git.clutter-project.org/clutter-cairo.git;protocol=git;branch=clutter-cairo-0-8 \ | ||
8 | file://enable_examples.patch;patch=1" | ||
9 | |||
10 | S = "${WORKDIR}/git" | ||
11 | |||
12 | |||
diff --git a/meta/recipes-graphics/clutter/clutter-cairo.inc b/meta/recipes-graphics/clutter/clutter-cairo.inc new file mode 100644 index 0000000000..ff889899e7 --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-cairo.inc | |||
@@ -0,0 +1,13 @@ | |||
1 | DESCRIPTION = "Clutter Cairo" | ||
2 | HOMEPAGE = "http://www.clutter-project.org/" | ||
3 | LICENSE = "LGPL" | ||
4 | |||
5 | DEPENDS = "cairo" | ||
6 | |||
7 | FILESPATH = "${FILE_DIRNAME}/clutter-cairo" | ||
8 | |||
9 | PACKAGES =+ "${PN}-examples" | ||
10 | FILES_${PN}-examples = "${bindir}/flowers ${bindir}/clock" | ||
11 | |||
12 | inherit autotools pkgconfig | ||
13 | |||
diff --git a/meta/recipes-graphics/clutter/clutter-cairo/enable_examples-0.6.patch b/meta/recipes-graphics/clutter/clutter-cairo/enable_examples-0.6.patch new file mode 100644 index 0000000000..3baea4c5c9 --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-cairo/enable_examples-0.6.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | Index: clutter-cairo-0-6/examples/Makefile.am | ||
2 | =================================================================== | ||
3 | --- clutter-cairo-0-6.orig/examples/Makefile.am 2008-10-02 22:03:18.000000000 +0100 | ||
4 | +++ clutter-cairo-0-6/examples/Makefile.am 2008-10-02 22:03:31.000000000 +0100 | ||
5 | @@ -1,4 +1,4 @@ | ||
6 | -noinst_PROGRAMS = clock flowers | ||
7 | +bin_PROGRAMS = clock flowers | ||
8 | |||
9 | INCLUDES = -I$(top_srcdir)/ @GCC_FLAGS@ @DEPS_CFLAGS@ | ||
10 | AM_LDFLAGS = @DEPS_LIBS@ $(top_builddir)/libclutter-cairo-@CLUTTER_CAIRO_MAJORMINOR@.la | ||
11 | Index: clutter-cairo-0-6/examples/flowers.c | ||
12 | =================================================================== | ||
13 | --- clutter-cairo-0-6.orig/examples/flowers.c 2008-10-02 22:03:23.000000000 +0100 | ||
14 | +++ clutter-cairo-0-6/examples/flowers.c 2008-10-02 22:03:39.000000000 +0100 | ||
15 | @@ -11,7 +11,7 @@ | ||
16 | |||
17 | #define PETAL_MIN 20 | ||
18 | #define PETAL_VAR 40 | ||
19 | -#define N_FLOWERS 40 /* reduce if you have a small card */ | ||
20 | +#define N_FLOWERS 8 /* reduce if you have a small card */ | ||
21 | |||
22 | typedef struct Flower | ||
23 | { | ||
diff --git a/meta/recipes-graphics/clutter/clutter-cairo/enable_examples.patch b/meta/recipes-graphics/clutter/clutter-cairo/enable_examples.patch new file mode 100644 index 0000000000..c5ed63ff12 --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-cairo/enable_examples.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | --- | ||
2 | examples/Makefile.am | 2 +- | ||
3 | examples/flowers.c | 2 +- | ||
4 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
5 | |||
6 | Index: clutter-cairo/examples/Makefile.am | ||
7 | =================================================================== | ||
8 | --- clutter-cairo.orig/examples/Makefile.am 2008-08-11 16:30:04.000000000 +0100 | ||
9 | +++ clutter-cairo/examples/Makefile.am 2008-08-11 16:30:24.000000000 +0100 | ||
10 | @@ -1,4 +1,4 @@ | ||
11 | -noinst_PROGRAMS = clock flowers bubbles | ||
12 | +bin_PROGRAMS = clock flowers bubbles | ||
13 | |||
14 | INCLUDES = -I$(top_srcdir)/ @GCC_FLAGS@ @DEPS_CFLAGS@ | ||
15 | AM_LDFLAGS = @DEPS_LIBS@ $(top_builddir)/libclutter-cairo-@CLUTTER_CAIRO_MAJORMINOR@.la | ||
16 | Index: clutter-cairo/examples/flowers.c | ||
17 | =================================================================== | ||
18 | --- clutter-cairo.orig/examples/flowers.c 2008-08-11 16:30:04.000000000 +0100 | ||
19 | +++ clutter-cairo/examples/flowers.c 2008-08-11 16:30:10.000000000 +0100 | ||
20 | @@ -11,7 +11,7 @@ | ||
21 | |||
22 | #define PETAL_MIN 20 | ||
23 | #define PETAL_VAR 40 | ||
24 | -#define N_FLOWERS 40 /* reduce if you have a small card */ | ||
25 | +#define N_FLOWERS 8 /* reduce if you have a small card */ | ||
26 | |||
27 | typedef struct Flower | ||
28 | { | ||
diff --git a/meta/recipes-graphics/clutter/clutter-fpu.inc b/meta/recipes-graphics/clutter/clutter-fpu.inc new file mode 100644 index 0000000000..21a16feac2 --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-fpu.inc | |||
@@ -0,0 +1,6 @@ | |||
1 | |||
2 | def get_clutter_fpu_setting(bb, d): | ||
3 | if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]: | ||
4 | return "--without-fpu" | ||
5 | return "" | ||
6 | |||
diff --git a/meta/recipes-graphics/clutter/clutter-gst-0.10_git.bb b/meta/recipes-graphics/clutter/clutter-gst-0.10_git.bb new file mode 100644 index 0000000000..a0f874db25 --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-gst-0.10_git.bb | |||
@@ -0,0 +1,14 @@ | |||
1 | require clutter-gst.inc | ||
2 | |||
3 | PV = "0.10.0+git${SRCPV}" | ||
4 | |||
5 | DEPENDS += "clutter-1.0" | ||
6 | |||
7 | SRC_URI = "git://git.clutter-project.org/clutter-gst.git;protocol=git;branch=clutter-gst-0.10" | ||
8 | |||
9 | S = "${WORKDIR}/git" | ||
10 | |||
11 | do_configure_prepend () { | ||
12 | # Disable DOLT | ||
13 | sed -i -e 's/^DOLT//' ${S}/configure.ac | ||
14 | } | ||
diff --git a/meta/recipes-graphics/clutter/clutter-gst-0.6_git.bb b/meta/recipes-graphics/clutter/clutter-gst-0.6_git.bb new file mode 100644 index 0000000000..09979f9e0c --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-gst-0.6_git.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | require clutter-gst.inc | ||
2 | |||
3 | PV = "0.6.0+git${SRCPV}" | ||
4 | |||
5 | DEPENDS += "clutter-0.6" | ||
6 | |||
7 | SRC_URI = "git://git.clutter-project.org/clutter-gst.git;protocol=git;branch=clutter-gst-0-6" | ||
8 | |||
9 | S = "${WORKDIR}/git" | ||
diff --git a/meta/recipes-graphics/clutter/clutter-gst-0.8_git.bb b/meta/recipes-graphics/clutter/clutter-gst-0.8_git.bb new file mode 100644 index 0000000000..c5348ecefe --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-gst-0.8_git.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | require clutter-gst.inc | ||
2 | |||
3 | PV = "0.8.0+git${SRCPV}" | ||
4 | |||
5 | DEPENDS += "clutter-0.8" | ||
6 | |||
7 | SRC_URI = "git://git.clutter-project.org/clutter-gst.git;protocol=git;branch=clutter-gst-0-8" | ||
8 | |||
9 | S = "${WORKDIR}/git" | ||
diff --git a/meta/recipes-graphics/clutter/clutter-gst-1.0_git.bb b/meta/recipes-graphics/clutter/clutter-gst-1.0_git.bb new file mode 100644 index 0000000000..5580596f09 --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-gst-1.0_git.bb | |||
@@ -0,0 +1,14 @@ | |||
1 | require clutter-gst.inc | ||
2 | |||
3 | PV = "0.11.0+git${SRCPV}" | ||
4 | |||
5 | DEPENDS += "clutter-1.0" | ||
6 | |||
7 | SRC_URI = "git://git.clutter-project.org/clutter-gst.git;protocol=git;branch=master" | ||
8 | |||
9 | S = "${WORKDIR}/git" | ||
10 | |||
11 | do_configure_prepend () { | ||
12 | # Disable DOLT | ||
13 | sed -i -e 's/^DOLT//' ${S}/configure.ac | ||
14 | } | ||
diff --git a/meta/recipes-graphics/clutter/clutter-gst.inc b/meta/recipes-graphics/clutter/clutter-gst.inc new file mode 100644 index 0000000000..0a2f261531 --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-gst.inc | |||
@@ -0,0 +1,13 @@ | |||
1 | DESCRIPTION = "Clutter GStreamer" | ||
2 | HOMEPAGE = "http://www.clutter-project.org/" | ||
3 | LICENSE = "LGPL" | ||
4 | |||
5 | DEPENDS = "clutter-1.0 gstreamer gst-plugins-base" | ||
6 | |||
7 | FILESPATH = "${FILE_DIRNAME}/clutter-gst" | ||
8 | |||
9 | PACKAGES =+ "${PN}-examples" | ||
10 | FILES_${PN}-examples = "${bindir}/video-player ${bindir}/video-sink ${bindir}/audio" | ||
11 | |||
12 | inherit autotools pkgconfig gtk-doc | ||
13 | |||
diff --git a/meta/recipes-graphics/clutter/clutter-gst/autofoo-0.4.patch b/meta/recipes-graphics/clutter/clutter-gst/autofoo-0.4.patch new file mode 100644 index 0000000000..54df63d297 --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-gst/autofoo-0.4.patch | |||
@@ -0,0 +1,15 @@ | |||
1 | --- | ||
2 | doc/reference/Makefile.am | 2 +- | ||
3 | examples/Makefile.am | 2 +- | ||
4 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
5 | |||
6 | Index: clutter-gst/examples/Makefile.am | ||
7 | =================================================================== | ||
8 | --- clutter-gst.orig/examples/Makefile.am 2007-11-06 12:31:36.000000000 +0000 | ||
9 | +++ clutter-gst/examples/Makefile.am 2007-11-06 18:53:59.000000000 +0000 | ||
10 | @@ -1,4 +1,4 @@ | ||
11 | -noinst_PROGRAMS = video-player video-sink audio | ||
12 | +bin_PROGRAMS = video-player video-sink audio | ||
13 | |||
14 | INCLUDES = -I$(top_srcdir)/ | ||
15 | |||
diff --git a/meta/recipes-graphics/clutter/clutter-gst/autofoo-9db4a61a25677764bb927369c5c68ada958fb65c.patch b/meta/recipes-graphics/clutter/clutter-gst/autofoo-9db4a61a25677764bb927369c5c68ada958fb65c.patch new file mode 100644 index 0000000000..569b0d8be9 --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-gst/autofoo-9db4a61a25677764bb927369c5c68ada958fb65c.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | --- | ||
2 | doc/reference/Makefile.am | 2 +- | ||
3 | examples/Makefile.am | 2 +- | ||
4 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
5 | |||
6 | Index: clutter-gst/examples/Makefile.am | ||
7 | =================================================================== | ||
8 | --- clutter-gst.orig/examples/Makefile.am 2007-11-06 12:31:36.000000000 +0000 | ||
9 | +++ clutter-gst/examples/Makefile.am 2007-11-06 18:53:59.000000000 +0000 | ||
10 | @@ -1,4 +1,4 @@ | ||
11 | -noinst_PROGRAMS = video-player video-sink audio | ||
12 | +bin_PROGRAMS = video-player video-sink audio | ||
13 | |||
14 | INCLUDES = -I$(top_srcdir)/ | ||
15 | |||
16 | Index: clutter-gst/doc/reference/Makefile.am | ||
17 | =================================================================== | ||
18 | --- clutter-gst.orig/doc/reference/Makefile.am 2007-11-06 19:36:56.000000000 +0000 | ||
19 | +++ clutter-gst/doc/reference/Makefile.am 2007-11-06 19:37:02.000000000 +0000 | ||
20 | @@ -77,4 +77,4 @@ include $(top_srcdir)/gtk-doc.make | ||
21 | |||
22 | # Other files to distribute | ||
23 | # e.g. EXTRA_DIST += version.xml.in | ||
24 | -EXTRA_DIST += version.xml.in | ||
25 | +EXTRA_DIST = version.xml.in | ||
diff --git a/meta/recipes-graphics/clutter/clutter-gst/autofoo.patch b/meta/recipes-graphics/clutter/clutter-gst/autofoo.patch new file mode 100644 index 0000000000..ad77d636c1 --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-gst/autofoo.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | --- | ||
2 | doc/reference/Makefile.am | 2 +- | ||
3 | examples/Makefile.am | 2 +- | ||
4 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
5 | |||
6 | Index: git/examples/Makefile.am | ||
7 | =================================================================== | ||
8 | --- git.orig/examples/Makefile.am 2009-06-30 16:41:53.000000000 +0100 | ||
9 | +++ git/examples/Makefile.am 2009-06-30 16:43:00.000000000 +0100 | ||
10 | @@ -1,6 +1,6 @@ | ||
11 | NULL = # | ||
12 | |||
13 | -noinst_PROGRAMS = video-player video-sink audio-player | ||
14 | +bin_PROGRAMS = video-player video-sink audio-player | ||
15 | |||
16 | INCLUDES = -I$(top_srcdir) \ | ||
17 | $(MAINTAINER_CFLAGS) \ | ||
18 | Index: git/doc/reference/Makefile.am | ||
19 | =================================================================== | ||
20 | --- git.orig/doc/reference/Makefile.am 2009-06-30 16:41:53.000000000 +0100 | ||
21 | +++ git/doc/reference/Makefile.am 2009-06-30 16:41:53.000000000 +0100 | ||
22 | @@ -77,4 +77,4 @@ | ||
23 | |||
24 | # Other files to distribute | ||
25 | # e.g. EXTRA_DIST += version.xml.in | ||
26 | -EXTRA_DIST += version.xml.in | ||
27 | +EXTRA_DIST = version.xml.in | ||
diff --git a/meta/recipes-graphics/clutter/clutter-gtk-0.10_git.bb b/meta/recipes-graphics/clutter/clutter-gtk-0.10_git.bb new file mode 100644 index 0000000000..d0613277a7 --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-gtk-0.10_git.bb | |||
@@ -0,0 +1,12 @@ | |||
1 | require clutter-gtk.inc | ||
2 | |||
3 | PV = "0.10.3+git${SRCPV}" | ||
4 | PR = "r1" | ||
5 | |||
6 | SRC_URI = "git://git.clutter-project.org/clutter-gtk.git;protocol=git;branch=clutter-gtk-0.10" | ||
7 | |||
8 | S = "${WORKDIR}/git" | ||
9 | |||
10 | DEPENDS += "clutter-1.0" | ||
11 | |||
12 | EXTRA_OECONF += "--disable-introspection" | ||
diff --git a/meta/recipes-graphics/clutter/clutter-gtk-0.6_git.bb b/meta/recipes-graphics/clutter/clutter-gtk-0.6_git.bb new file mode 100644 index 0000000000..d2633ff2d4 --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-gtk-0.6_git.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | require clutter-gtk.inc | ||
2 | |||
3 | PV = "0.6.0+git${SRCPV}" | ||
4 | |||
5 | DEPENDS += "clutter-0.6" | ||
6 | |||
7 | SRC_URI = "git://git.clutter-project.org/clutter-gtk.git;protocol=git;branch=clutter-gtk-0-6" | ||
8 | |||
9 | S = "${WORKDIR}/git" | ||
diff --git a/meta/recipes-graphics/clutter/clutter-gtk-0.8_git.bb b/meta/recipes-graphics/clutter/clutter-gtk-0.8_git.bb new file mode 100644 index 0000000000..506d3fb156 --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-gtk-0.8_git.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | require clutter-gtk.inc | ||
2 | |||
3 | PV = "0.8.0+git${SRCPV}" | ||
4 | |||
5 | DEPENDS += "clutter-0.8" | ||
6 | |||
7 | SRC_URI = "git://git.clutter-project.org/clutter-gtk.git;protocol=git;branch=clutter-gtk-0-8" | ||
8 | |||
9 | S = "${WORKDIR}/git" | ||
diff --git a/meta/recipes-graphics/clutter/clutter-gtk-1.0_git.bb b/meta/recipes-graphics/clutter/clutter-gtk-1.0_git.bb new file mode 100644 index 0000000000..dfabbd56cc --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-gtk-1.0_git.bb | |||
@@ -0,0 +1,12 @@ | |||
1 | require clutter-gtk.inc | ||
2 | |||
3 | PV = "0.90.0+git${SRCPV}" | ||
4 | PR = "r1" | ||
5 | |||
6 | SRC_URI = "git://git.clutter-project.org/clutter-gtk.git;protocol=git;branch=master" | ||
7 | |||
8 | S = "${WORKDIR}/git" | ||
9 | |||
10 | DEPENDS += "clutter-1.0" | ||
11 | |||
12 | EXTRA_OECONF += "--disable-introspection" | ||
diff --git a/meta/recipes-graphics/clutter/clutter-gtk.inc b/meta/recipes-graphics/clutter/clutter-gtk.inc new file mode 100644 index 0000000000..89ae3e53ca --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-gtk.inc | |||
@@ -0,0 +1,13 @@ | |||
1 | DESCRIPTION = "Clutter GTK+" | ||
2 | HOMEPAGE = "http://www.clutter-project.org/" | ||
3 | LICENSE = "LGPL" | ||
4 | |||
5 | DEPENDS = "gtk+" | ||
6 | |||
7 | FILESPATH = "${FILE_DIRNAME}/clutter-gtk" | ||
8 | |||
9 | PACKAGES =+ "${PN}-examples" | ||
10 | FILES_${PN}-examples = "${bindir}/gtk-clutter-test ${bindir}/gtk-clutter-events ${bindir}/gtk-clutter-multistage" | ||
11 | |||
12 | inherit autotools pkgconfig gtk-doc | ||
13 | |||
diff --git a/meta/recipes-graphics/clutter/clutter-helix.inc b/meta/recipes-graphics/clutter/clutter-helix.inc new file mode 100644 index 0000000000..6bbbb244d7 --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-helix.inc | |||
@@ -0,0 +1,15 @@ | |||
1 | DESCRIPTION = "Clutter Helix" | ||
2 | HOMEPAGE = "http://www.clutter-project.org/" | ||
3 | LICENSE = "LGPL" | ||
4 | |||
5 | DEPENDS = "helix-libs" | ||
6 | |||
7 | FILESPATH = "${FILE_DIRNAME}/clutter-helix" | ||
8 | |||
9 | COMPATIBLE_HOST = '(x86_64|i.86.*)-linux' | ||
10 | |||
11 | PACKAGES =+ "${PN}-examples" | ||
12 | FILES_${PN}-examples = "${bindir}/video-player ${bindir}/audio-player" | ||
13 | |||
14 | inherit autotools pkgconfig gtk-doc | ||
15 | |||
diff --git a/meta/recipes-graphics/clutter/clutter-helix_git.bb b/meta/recipes-graphics/clutter/clutter-helix_git.bb new file mode 100644 index 0000000000..1c272306bf --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-helix_git.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | require clutter-helix.inc | ||
2 | |||
3 | PV = "0.8.0+git${SRCPV}" | ||
4 | PR = "r0" | ||
5 | |||
6 | SRC_URI = "git://git.clutter-project.org/clutter-helix.git;protocol=git" | ||
7 | |||
8 | S = "${WORKDIR}/git" | ||
diff --git a/meta/recipes-graphics/clutter/clutter-mozembed.inc b/meta/recipes-graphics/clutter/clutter-mozembed.inc new file mode 100644 index 0000000000..72c9412d04 --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-mozembed.inc | |||
@@ -0,0 +1,14 @@ | |||
1 | DESCRIPTION = "Clutter Mozilla Embedded" | ||
2 | HOMEPAGE = "http://www.clutter-project.org/" | ||
3 | LICENSE = "LGPL" | ||
4 | |||
5 | DEPENDS = "mozilla-headless mozilla-headless-services clutter-1.0" | ||
6 | |||
7 | FILESPATH = "${FILE_DIRNAME}/clutter-mozembed" | ||
8 | |||
9 | FILES_${PN} =+ "${datadir}/cluttermozembed/chrome/" | ||
10 | |||
11 | EXTRA_OECONF = "--enable-plugins" | ||
12 | |||
13 | inherit autotools pkgconfig gtk-doc | ||
14 | |||
diff --git a/meta/recipes-graphics/clutter/clutter-mozembed/link-with-g++-da7632f3e2c8d1a70ab01cc7adb63760d8718b41.patch b/meta/recipes-graphics/clutter/clutter-mozembed/link-with-g++-da7632f3e2c8d1a70ab01cc7adb63760d8718b41.patch new file mode 100644 index 0000000000..135b9e79f0 --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-mozembed/link-with-g++-da7632f3e2c8d1a70ab01cc7adb63760d8718b41.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | Index: git/cluttermozembed/Makefile.am | ||
2 | =================================================================== | ||
3 | --- git.orig/cluttermozembed/Makefile.am 2009-06-10 15:04:54.000000000 +0100 | ||
4 | +++ git/cluttermozembed/Makefile.am 2009-06-10 15:10:12.000000000 +0100 | ||
5 | @@ -61,7 +61,7 @@ | ||
6 | clutter-mozembed-private.h | ||
7 | source_c = \ | ||
8 | clutter-mozembed.c \ | ||
9 | - clutter-mozembed-download.c | ||
10 | + clutter-mozembed-download.c dummy.cpp | ||
11 | |||
12 | bin_PROGRAMS = clutter-mozheadless | ||
13 | |||
diff --git a/meta/recipes-graphics/clutter/clutter-mozembed/link-with-g++.patch b/meta/recipes-graphics/clutter/clutter-mozembed/link-with-g++.patch new file mode 100644 index 0000000000..cc9d43a674 --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-mozembed/link-with-g++.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | Index: git/cluttermozembed/Makefile.am | ||
2 | =================================================================== | ||
3 | --- git.orig/clutter-mozembed/Makefile.am 2009-07-24 16:58:24.000000000 +0100 | ||
4 | +++ git/clutter-mozembed/Makefile.am 2009-07-24 17:00:53.000000000 +0100 | ||
5 | @@ -66,7 +66,7 @@ | ||
6 | clutter-mozembed.c \ | ||
7 | clutter-mozembed-comms.c \ | ||
8 | clutter-mozembed-comms.h \ | ||
9 | - clutter-mozembed-download.c | ||
10 | + clutter-mozembed-download.c dummy.cpp | ||
11 | |||
12 | bin_PROGRAMS = clutter-mozheadless | ||
13 | |||
diff --git a/meta/recipes-graphics/clutter/clutter-mozembed_git.bb b/meta/recipes-graphics/clutter/clutter-mozembed_git.bb new file mode 100644 index 0000000000..e2da2d6a7d --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-mozembed_git.bb | |||
@@ -0,0 +1,14 @@ | |||
1 | require clutter-mozembed.inc | ||
2 | |||
3 | PV = "0.8.0+git${SRCPV}" | ||
4 | PR = "r7" | ||
5 | |||
6 | SRC_URI = "git://git.clutter-project.org/clutter-mozembed.git;protocol=git \ | ||
7 | file://link-with-g++-da7632f3e2c8d1a70ab01cc7adb63760d8718b41.patch;patch=1;rev=da7632f3e2c8d1a70ab01cc7adb63760d8718b41 \ | ||
8 | file://link-with-g++.patch;patch=1;notrev=da7632f3e2c8d1a70ab01cc7adb63760d8718b41" | ||
9 | S = "${WORKDIR}/git" | ||
10 | |||
11 | do_configure_prepend () { | ||
12 | touch ${S}/clutter-mozembed/dummy.cpp | ||
13 | touch ${S}/clutter-mozembed/dummy2.cpp | ||
14 | } | ||
diff --git a/meta/recipes-graphics/clutter/clutter-package.inc b/meta/recipes-graphics/clutter/clutter-package.inc new file mode 100644 index 0000000000..22993ffd01 --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter-package.inc | |||
@@ -0,0 +1,2 @@ | |||
1 | PACKAGES =+ "clutter-examples" | ||
2 | FILES_clutter-examples = "${bindir}/test-* ${pkgdatadir}/redhand.png" | ||
diff --git a/meta/recipes-graphics/clutter/clutter.inc b/meta/recipes-graphics/clutter/clutter.inc new file mode 100644 index 0000000000..c099309bbb --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter.inc | |||
@@ -0,0 +1,57 @@ | |||
1 | DESCRIPTION = "Clutter graphics library" | ||
2 | HOMEPAGE = "http://www.clutter-project.org/" | ||
3 | LICENSE = "LGPL" | ||
4 | |||
5 | COMPATIBLE_MACHINE = "(zylonite|mx31litekit|omap-3430ldp|omap-3430sdp|mx31ads|qemuarm|qemux86|ipodtouch|netbook|menlow)" | ||
6 | |||
7 | STDDEPENDS = "virtual/libx11 gtk-doc-native pango glib-2.0 libxfixes gtk+ libxi" | ||
8 | BASE_CONF = "--disable-gtk-doc ${@get_clutter_fpu_setting(bb, d)}" | ||
9 | |||
10 | DEPENDS = "${STDDEPENDS} virtual/libgl" | ||
11 | EXTRA_OECONF = "${BASE_CONF} --with-flavour=glx" | ||
12 | |||
13 | DEPENDS_zylonite = "${STDDEPENDS} libgles-zylonite tslib" | ||
14 | EXTRA_OECONF_zylonite = "${BASE_CONF} --with-flavour=eglnative" | ||
15 | PACKAGE_ARCH_zylonite = "${MACHINE_ARCH}" | ||
16 | LDFLAGS_append_zylonite = " -lnws -lstdc++ " | ||
17 | |||
18 | DEPENDS_mx31litekit = "${STDDEPENDS} libgles-mx31 tslib" | ||
19 | EXTRA_OECONF_mx31litekit = "${BASE_CONF} --with-flavour=eglnative" | ||
20 | PACKAGE_ARCH_mx31litekit = "${MACHINE_ARCH}" | ||
21 | LDFLAGS_append_mx31litekit = " -lpvrNULLWSEGL -lstdc++ " | ||
22 | |||
23 | DEPENDS_omap-3430ldp = "${STDDEPENDS} libgles-omap3 tslib" | ||
24 | # The eglx drivers are pretty dire, use eglnative | ||
25 | EXTRA_OECONF_omap-3430ldp = "${BASE_CONF} --with-flavour=eglnative" | ||
26 | PACKAGE_ARCH_omap-3430ldp = "${MACHINE_ARCH}" | ||
27 | |||
28 | DEPENDS_omap-3430sdp = "${STDDEPENDS} libgles-omap3 tslib" | ||
29 | # The eglx drivers are pretty dire, use eglnative | ||
30 | EXTRA_OECONF_omap-3430sdp = "${BASE_CONF} --with-flavour=eglnative" | ||
31 | PACKAGE_ARCH_omap-3430sdp = "${MACHINE_ARCH}" | ||
32 | |||
33 | DEPENDS_mx31ads = "${STDDEPENDS} libgles-mx31 tslib" | ||
34 | EXTRA_OECONF_mx31ads = "${BASE_CONF} --with-flavour=eglnative" | ||
35 | PACKAGE_ARCH_mx31ads = "${MACHINE_ARCH}" | ||
36 | LDFLAGS_append_mx31ads = " -lpvrNULLWSEGL -lstdc++ " | ||
37 | |||
38 | DEPENDS_netbook = "${STDDEPENDS} virtual/xserver-xf86 virtual/libgl" | ||
39 | EXTRA_OECONF_netbook = "${BASE_CONF} --with-flavour=glx" | ||
40 | PACKAGE_ARCH_netbook = "${MACHINE_ARCH}" | ||
41 | |||
42 | DEPENDS_menlow = "${STDDEPENDS} virtual/xserver-xf86 virtual/libgl" | ||
43 | EXTRA_OECONF_menlow = "${BASE_CONF} --with-flavour=glx" | ||
44 | PACKAGE_ARCH_menlow = "${MACHINE_ARCH}" | ||
45 | |||
46 | FILESPATH = "${FILE_DIRNAME}/clutter" | ||
47 | |||
48 | inherit autotools pkgconfig gtk-doc | ||
49 | |||
50 | #check for TARGET_FPU=soft and inform configure of the result so it can disable some floating points | ||
51 | require clutter-fpu.inc | ||
52 | |||
53 | #Fix up some weirdness in the docs | ||
54 | do_configure_prepend() { | ||
55 | sed -i s:doc/reference/Makefile::g ${S}/configure.ac | ||
56 | sed -i s:doc::g ${S}/Makefile.am | ||
57 | } | ||
diff --git a/meta/recipes-graphics/clutter/clutter/build-fix.patch b/meta/recipes-graphics/clutter/clutter/build-fix.patch new file mode 100644 index 0000000000..68cf84ec22 --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter/build-fix.patch | |||
@@ -0,0 +1,16 @@ | |||
1 | Installing the same file twice causes an error in Automake 1.11 | ||
2 | |||
3 | JL 19/03/10 | ||
4 | |||
5 | Index: git/clutter/Makefile.am | ||
6 | =================================================================== | ||
7 | --- git.orig/clutter/Makefile.am 2010-03-19 11:37:51.000000000 +0000 | ||
8 | +++ git/clutter/Makefile.am 2010-03-19 11:50:46.744042007 +0000 | ||
9 | @@ -219,7 +219,6 @@ | ||
10 | $(source_h) \ | ||
11 | clutter-json.h \ | ||
12 | clutter-enum-types.h \ | ||
13 | - clutter-version.h \ | ||
14 | clutter.h | ||
15 | |||
16 | DISTCLEANFILES = \ | ||
diff --git a/meta/recipes-graphics/clutter/clutter/enable_tests-0.6.patch b/meta/recipes-graphics/clutter/clutter/enable_tests-0.6.patch new file mode 100644 index 0000000000..544a7e588c --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter/enable_tests-0.6.patch | |||
@@ -0,0 +1,40 @@ | |||
1 | --- | ||
2 | tests/Makefile.am | 7 ++++++- | ||
3 | tests/test-actors.c | 2 +- | ||
4 | tests/test-text.c | 2 +- | ||
5 | 3 files changed, 8 insertions(+), 3 deletions(-) | ||
6 | |||
7 | Index: clutter-0-6/tests/Makefile.am | ||
8 | =================================================================== | ||
9 | --- clutter.orig/tests/Makefile.am 2007-11-06 12:29:17.000000000 +0000 | ||
10 | +++ clutter-0-6/tests/Makefile.am 2007-11-06 12:30:11.000000000 +0000 | ||
11 | @@ -1,4 +1,4 @@ | ||
12 | -noinst_PROGRAMS = test-textures test-events test-offscreen test-scale \ | ||
13 | +bin_PROGRAMS = test-textures test-events test-offscreen test-scale \ | ||
14 | test-actors test-behave test-text test-entry test-project \ | ||
15 | test-boxes test-perspective test-rotate test-depth \ | ||
16 | test-threads test-timeline test-score test-script | ||
17 | @@ -26,4 +26,9 @@ test_timeline_SOURCES = test-timeline.c | ||
18 | test_score_SOURCES = test-score.c | ||
19 | test_script_SOURCES = test-script.c | ||
20 | |||
21 | +test_textdir = $(pkgdatadir) | ||
22 | +test_text_DATA = test-text.c | ||
23 | +test_actorsdir = $(pkgdatadir) | ||
24 | +test_actors_DATA = redhand.png | ||
25 | + | ||
26 | EXTRA_DIST = redhand.png test-script.json | ||
27 | Index: clutter-0-6/tests/test-actors.c | ||
28 | =================================================================== | ||
29 | --- clutter.orig/tests/test-actors.c 2007-11-06 12:29:17.000000000 +0000 | ||
30 | +++ clutter-0-6/tests/test-actors.c 2007-11-06 12:29:21.000000000 +0000 | ||
31 | @@ -143,7 +143,7 @@ main (int argc, char *argv[]) | ||
32 | stage = clutter_stage_get_default (); | ||
33 | clutter_actor_set_size (stage, 800, 600); | ||
34 | |||
35 | - pixbuf = gdk_pixbuf_new_from_file ("redhand.png", NULL); | ||
36 | + pixbuf = gdk_pixbuf_new_from_file ("/usr/share/clutter/redhand.png", NULL); | ||
37 | |||
38 | if (!pixbuf) | ||
39 | g_error("pixbuf load failed"); | ||
40 | |||
diff --git a/meta/recipes-graphics/clutter/clutter/enable_tests-0.8.patch b/meta/recipes-graphics/clutter/clutter/enable_tests-0.8.patch new file mode 100644 index 0000000000..4f449b1177 --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter/enable_tests-0.8.patch | |||
@@ -0,0 +1,50 @@ | |||
1 | --- | ||
2 | tests/Makefile.am | 7 ++++++- | ||
3 | tests/test-actors.c | 2 +- | ||
4 | tests/test-text.c | 2 +- | ||
5 | 3 files changed, 8 insertions(+), 3 deletions(-) | ||
6 | |||
7 | Index: clutter/tests/Makefile.am | ||
8 | =================================================================== | ||
9 | --- clutter.orig/tests/Makefile.am 2008-06-26 16:46:26.000000000 +0100 | ||
10 | +++ clutter/tests/Makefile.am 2008-06-26 16:46:50.000000000 +0100 | ||
11 | @@ -1,4 +1,4 @@ | ||
12 | -noinst_PROGRAMS = test-textures test-events test-offscreen test-scale \ | ||
13 | +bin_PROGRAMS = test-textures test-events test-offscreen test-scale \ | ||
14 | test-actors test-behave test-text test-entry test-project \ | ||
15 | test-perspective test-rotate test-depth \ | ||
16 | test-threads test-timeline test-timeline-dup-frames \ | ||
17 | @@ -17,8 +17,8 @@ | ||
18 | test-invariants | ||
19 | |||
20 | if X11_TESTS | ||
21 | -noinst_PROGRAMS += test-pixmap | ||
22 | -noinst_PROGRAMS += test-devices | ||
23 | +bin_PROGRAMS += test-pixmap | ||
24 | +bin_PROGRAMS += test-devices | ||
25 | endif | ||
26 | |||
27 | INCLUDES = -I$(top_srcdir)/ -I$(top_srcdir)/clutter -I$(top_builddir)/clutter | ||
28 | @@ -73,4 +73,9 @@ | ||
29 | test_invariants_SOURCES = test-invariants.c | ||
30 | test_devices_SOURCES = test-devices.c | ||
31 | |||
32 | +test_textdir = $(pkgdatadir) | ||
33 | +test_text_DATA = test-text.c | ||
34 | +test_actorsdir = $(pkgdatadir) | ||
35 | +test_actors_DATA = redhand.png | ||
36 | + | ||
37 | EXTRA_DIST = redhand.png test-script.json | ||
38 | Index: clutter/tests/test-actors.c | ||
39 | =================================================================== | ||
40 | --- clutter.orig/tests/test-actors.c 2008-06-26 16:46:26.000000000 +0100 | ||
41 | +++ clutter/tests/test-actors.c 2008-06-26 16:46:31.000000000 +0100 | ||
42 | @@ -195,7 +195,7 @@ | ||
43 | /* Create a texture from file, then clone in to same resources */ | ||
44 | if (i == 0) | ||
45 | { | ||
46 | - if ((oh->hand[i] = clutter_texture_new_from_file ("redhand.png", | ||
47 | + if ((oh->hand[i] = clutter_texture_new_from_file ("/usr/share/clutter/redhand.png", | ||
48 | &error)) == NULL) | ||
49 | { | ||
50 | g_error ("image load failed: %s", error->message); | ||
diff --git a/meta/recipes-graphics/clutter/clutter/enable_tests-1.0.patch b/meta/recipes-graphics/clutter/clutter/enable_tests-1.0.patch new file mode 100644 index 0000000000..953edf6bbc --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter/enable_tests-1.0.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | --- | ||
2 | tests/Makefile.am | 7 ++++++- | ||
3 | tests/test-actors.c | 2 +- | ||
4 | tests/test-text.c | 2 +- | ||
5 | 3 files changed, 8 insertions(+), 3 deletions(-) | ||
6 | |||
7 | Index: git/tests/interactive/Makefile.am | ||
8 | =================================================================== | ||
9 | --- git.orig/tests/interactive/Makefile.am 2009-03-12 11:01:36.000000000 +0000 | ||
10 | +++ git/tests/interactive/Makefile.am 2009-03-12 11:04:12.000000000 +0000 | ||
11 | @@ -77,7 +77,7 @@ | ||
12 | AM_CFLAGS = $(CLUTTER_CFLAGS) $(MAINTAINER_CFLAGS) | ||
13 | AM_LDFLAGS = $(CLUTTER_LIBS) | ||
14 | |||
15 | -noinst_PROGRAMS = test-interactive | ||
16 | +bin_PROGRAMS = test-interactive | ||
17 | |||
18 | test_interactive_SOURCES = \ | ||
19 | test-main.c \ | ||
20 | Index: git/tests/interactive/test-actors.c | ||
21 | =================================================================== | ||
22 | --- git.orig/tests/interactive/test-actors.c 2009-03-12 11:01:36.000000000 +0000 | ||
23 | +++ git/tests/interactive/test-actors.c 2009-03-12 11:06:32.000000000 +0000 | ||
24 | @@ -182,7 +182,7 @@ | ||
25 | oh->scaler_1 = clutter_behaviour_scale_new (alpha, 0.5, 0.5, 1.0, 1.0); | ||
26 | oh->scaler_2 = clutter_behaviour_scale_new (alpha, 1.0, 1.0, 0.5, 0.5); | ||
27 | |||
28 | - real_hand = clutter_texture_new_from_file ("redhand.png", &error); | ||
29 | + real_hand = clutter_texture_new_from_file ("/usr/share/clutter/redhand.png", &error); | ||
30 | if (real_hand == NULL) | ||
31 | { | ||
32 | g_error ("image load failed: %s", error->message); | ||
diff --git a/meta/recipes-graphics/clutter/clutter/enable_tests-654c26a1301c9bc5f8e3e5e3b68af5eb1b2e0673.patch b/meta/recipes-graphics/clutter/clutter/enable_tests-654c26a1301c9bc5f8e3e5e3b68af5eb1b2e0673.patch new file mode 100644 index 0000000000..953edf6bbc --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter/enable_tests-654c26a1301c9bc5f8e3e5e3b68af5eb1b2e0673.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | --- | ||
2 | tests/Makefile.am | 7 ++++++- | ||
3 | tests/test-actors.c | 2 +- | ||
4 | tests/test-text.c | 2 +- | ||
5 | 3 files changed, 8 insertions(+), 3 deletions(-) | ||
6 | |||
7 | Index: git/tests/interactive/Makefile.am | ||
8 | =================================================================== | ||
9 | --- git.orig/tests/interactive/Makefile.am 2009-03-12 11:01:36.000000000 +0000 | ||
10 | +++ git/tests/interactive/Makefile.am 2009-03-12 11:04:12.000000000 +0000 | ||
11 | @@ -77,7 +77,7 @@ | ||
12 | AM_CFLAGS = $(CLUTTER_CFLAGS) $(MAINTAINER_CFLAGS) | ||
13 | AM_LDFLAGS = $(CLUTTER_LIBS) | ||
14 | |||
15 | -noinst_PROGRAMS = test-interactive | ||
16 | +bin_PROGRAMS = test-interactive | ||
17 | |||
18 | test_interactive_SOURCES = \ | ||
19 | test-main.c \ | ||
20 | Index: git/tests/interactive/test-actors.c | ||
21 | =================================================================== | ||
22 | --- git.orig/tests/interactive/test-actors.c 2009-03-12 11:01:36.000000000 +0000 | ||
23 | +++ git/tests/interactive/test-actors.c 2009-03-12 11:06:32.000000000 +0000 | ||
24 | @@ -182,7 +182,7 @@ | ||
25 | oh->scaler_1 = clutter_behaviour_scale_new (alpha, 0.5, 0.5, 1.0, 1.0); | ||
26 | oh->scaler_2 = clutter_behaviour_scale_new (alpha, 1.0, 1.0, 0.5, 0.5); | ||
27 | |||
28 | - real_hand = clutter_texture_new_from_file ("redhand.png", &error); | ||
29 | + real_hand = clutter_texture_new_from_file ("/usr/share/clutter/redhand.png", &error); | ||
30 | if (real_hand == NULL) | ||
31 | { | ||
32 | g_error ("image load failed: %s", error->message); | ||
diff --git a/meta/recipes-graphics/clutter/clutter/enable_tests.patch b/meta/recipes-graphics/clutter/clutter/enable_tests.patch new file mode 100644 index 0000000000..f4af7c94f6 --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter/enable_tests.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | --- | ||
2 | tests/Makefile.am | 7 ++++++- | ||
3 | tests/test-actors.c | 2 +- | ||
4 | tests/test-text.c | 2 +- | ||
5 | 3 files changed, 8 insertions(+), 3 deletions(-) | ||
6 | |||
7 | Index: git/tests/interactive/Makefile.am | ||
8 | =================================================================== | ||
9 | --- git.orig/tests/interactive/Makefile.am 2009-11-30 17:39:46.000000000 +0000 | ||
10 | +++ git/tests/interactive/Makefile.am 2009-11-30 17:42:30.000000000 +0000 | ||
11 | @@ -88,7 +88,7 @@ | ||
12 | |||
13 | common_ldadd = $(top_builddir)/clutter/libclutter-@CLUTTER_WINSYS@-@CLUTTER_API_VERSION@.la | ||
14 | |||
15 | -noinst_PROGRAMS = test-interactive | ||
16 | +bin_PROGRAMS = test-interactive | ||
17 | |||
18 | test_interactive_SOURCES = test-main.c $(UNIT_TESTS) | ||
19 | test_interactive_CFLAGS = $(CLUTTER_CFLAGS) $(MAINTAINER_CFLAGS) | ||
20 | Index: git/tests/interactive/test-actors.c | ||
21 | =================================================================== | ||
22 | --- git.orig/tests/interactive/test-actors.c 2009-11-30 17:39:46.000000000 +0000 | ||
23 | +++ git/tests/interactive/test-actors.c 2009-11-30 17:43:03.000000000 +0000 | ||
24 | @@ -178,7 +178,7 @@ | ||
25 | oh->scaler_1 = clutter_behaviour_scale_new (alpha, 0.5, 0.5, 1.0, 1.0); | ||
26 | oh->scaler_2 = clutter_behaviour_scale_new (alpha, 1.0, 1.0, 0.5, 0.5); | ||
27 | |||
28 | - file = g_build_filename (TESTS_DATADIR, "redhand.png", NULL); | ||
29 | + file = g_build_filename (TESTS_DATADIR, "/usr/share/clutter/redhand.png", NULL); | ||
30 | real_hand = clutter_texture_new_from_file (file, &error); | ||
31 | if (real_hand == NULL) | ||
32 | g_error ("image load failed: %s", error->message); | ||
diff --git a/meta/recipes-graphics/clutter/clutter/symconflict.patch b/meta/recipes-graphics/clutter/clutter/symconflict.patch new file mode 100644 index 0000000000..7685c21161 --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter/symconflict.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | Index: git/tests/test-depth.c | ||
2 | =================================================================== | ||
3 | --- git.orig/tests/test-depth.c 2009-05-24 14:54:40.000000000 +0100 | ||
4 | +++ git/tests/test-depth.c 2009-05-24 14:55:13.000000000 +0100 | ||
5 | @@ -11,13 +11,13 @@ | ||
6 | clutter_timeline_start (timeline); | ||
7 | } | ||
8 | |||
9 | -static ClutterActor *raise[2]; | ||
10 | +static ClutterActor *clutterraise[2]; | ||
11 | static gboolean raise_no = 0; | ||
12 | |||
13 | static gboolean | ||
14 | raise_top (gpointer ignored) | ||
15 | { | ||
16 | - clutter_actor_raise_top (raise[raise_no]); | ||
17 | + clutter_actor_raise_top (clutterraise[raise_no]); | ||
18 | raise_no = !raise_no; | ||
19 | return TRUE; | ||
20 | } | ||
21 | @@ -202,8 +202,8 @@ | ||
22 | |||
23 | clutter_timeline_start (timeline); | ||
24 | |||
25 | - raise[0] = rect; | ||
26 | - raise[1] = hand; | ||
27 | + clutterraise[0] = rect; | ||
28 | + clutterraise[1] = hand; | ||
29 | g_timeout_add (2000, raise_top, NULL); | ||
30 | |||
31 | clutter_main (); | ||
diff --git a/meta/recipes-graphics/clutter/clutter_git.bb b/meta/recipes-graphics/clutter/clutter_git.bb new file mode 100644 index 0000000000..a20515ec5e --- /dev/null +++ b/meta/recipes-graphics/clutter/clutter_git.bb | |||
@@ -0,0 +1,17 @@ | |||
1 | require clutter.inc | ||
2 | require clutter-package.inc | ||
3 | |||
4 | PV = "1.0.0+git${SRCPV}" | ||
5 | PR = "r8" | ||
6 | |||
7 | SRC_URI = "git://git.clutter-project.org/clutter.git;protocol=git;branch=master \ | ||
8 | file://enable_tests-654c26a1301c9bc5f8e3e5e3b68af5eb1b2e0673.patch;patch=1;rev=654c26a1301c9bc5f8e3e5e3b68af5eb1b2e0673 \ | ||
9 | file://enable_tests.patch;patch=1;notrev=654c26a1301c9bc5f8e3e5e3b68af5eb1b2e0673 " | ||
10 | S = "${WORKDIR}/git" | ||
11 | |||
12 | BASE_CONF += "--disable-introspection" | ||
13 | |||
14 | do_configure_prepend () { | ||
15 | # Disable DOLT | ||
16 | sed -i -e 's/^DOLT//' ${S}/configure.ac | ||
17 | } \ No newline at end of file | ||
diff --git a/meta/recipes-graphics/clutter/moblin-proto/fix-shader-and-callbacks.patch b/meta/recipes-graphics/clutter/moblin-proto/fix-shader-and-callbacks.patch new file mode 100644 index 0000000000..4a3eddb8cd --- /dev/null +++ b/meta/recipes-graphics/clutter/moblin-proto/fix-shader-and-callbacks.patch | |||
@@ -0,0 +1,44 @@ | |||
1 | diff --git a/Makefile b/Makefile | ||
2 | index e05b5b7..c348a1e 100644 | ||
3 | --- a/Makefile | ||
4 | +++ b/Makefile | ||
5 | @@ -64,7 +64,7 @@ HFILES = $(wildcard *.h) | ||
6 | %.o: %.c $(HFILES) | ||
7 | $(CC) -g $(CFLAGS) $(INCS) -c $< -o$@ | ||
8 | $(BINARY): $(OBJECTS) | ||
9 | - $(CXX) -o $@ $(OBJECTS) $(LIBS) | ||
10 | + $(CXX) -rdynamic -o $@ $(OBJECTS) $(LIBS) | ||
11 | |||
12 | #$(BINARY): $(CFILES) | ||
13 | # $(LD) $(CFLAGS) $(INCS) $(CFILES) $(LIBS) -o $@ | ||
14 | diff --git a/moblin-desktop.c b/moblin-desktop.c | ||
15 | index 6dd4f2c..fb9d231 100644 | ||
16 | --- a/moblin-desktop.c | ||
17 | +++ b/moblin-desktop.c | ||
18 | @@ -103,6 +103,8 @@ void moblin_blur (void) | ||
19 | if (desktop->maincopy) | ||
20 | return; | ||
21 | |||
22 | + if (clutter_feature_available (CLUTTER_FEATURE_SHADERS_GLSL)) | ||
23 | + { | ||
24 | #if 0 | ||
25 | desktop->maincopy = clutter_texture_new_from_actor (desktop->mainstuff); | ||
26 | #else | ||
27 | @@ -158,6 +160,17 @@ void moblin_blur (void) | ||
28 | 1.0f / moblin_desktop_width ()); | ||
29 | } | ||
30 | clutter_actor_set_shader_param (desktop->maincopy, "radius", 3.0); | ||
31 | + } | ||
32 | + else | ||
33 | + { | ||
34 | + ClutterColor clr= { 0x44, 0x44, 0x44, 0x77 }; | ||
35 | + guint w, h; | ||
36 | + | ||
37 | + desktop->maincopy = clutter_rectangle_new_with_color (&clr); | ||
38 | + clutter_actor_get_size (desktop->mainstuff, &w, &h); | ||
39 | + clutter_actor_set_size (desktop->maincopy, w, h); | ||
40 | + clutter_group_add (desktop->copyholder, desktop->maincopy); | ||
41 | + } | ||
42 | } | ||
43 | |||
44 | void moblin_unblur (void) | ||
diff --git a/meta/recipes-graphics/clutter/moblin-proto/fix.patch b/meta/recipes-graphics/clutter/moblin-proto/fix.patch new file mode 100644 index 0000000000..8bde67762c --- /dev/null +++ b/meta/recipes-graphics/clutter/moblin-proto/fix.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | Index: git/Makefile | ||
2 | =================================================================== | ||
3 | --- git.orig/Makefile 2008-08-11 22:49:48.000000000 +0100 | ||
4 | +++ git/Makefile 2008-08-12 12:16:52.000000000 +0100 | ||
5 | @@ -15,7 +15,7 @@ | ||
6 | |||
7 | SCP_DESTINATION=pug.vpn:tmp | ||
8 | |||
9 | -BINARY=$(shell basename `pwd`)# | ||
10 | +BINARY=moblin-proto | ||
11 | PACKAGE=../$(BINARY).tar.bz2 # you can use both .gz and .bz2 as extension here | ||
12 | |||
13 | #CFLAGS= -Wall -I /home/pippin/src/clutter-box2d/clutter-box2d | ||
14 | @@ -61,7 +61,7 @@ | ||
15 | %.o: %.c $(HFILES) | ||
16 | $(CC) -g $(CFLAGS) $(INCS) -c $< -o$@ | ||
17 | $(BINARY): $(OBJECTS) | ||
18 | - $(CC) -o $@ $(OBJECTS) $(LIBS) | ||
19 | + $(CXX) -o $@ $(OBJECTS) $(LIBS) | ||
20 | |||
21 | #$(BINARY): $(CFILES) | ||
22 | # $(LD) $(CFLAGS) $(INCS) $(CFILES) $(LIBS) -o $@ | ||
diff --git a/meta/recipes-graphics/clutter/moblin-proto/paths.patch b/meta/recipes-graphics/clutter/moblin-proto/paths.patch new file mode 100644 index 0000000000..d241c8ff71 --- /dev/null +++ b/meta/recipes-graphics/clutter/moblin-proto/paths.patch | |||
@@ -0,0 +1,15 @@ | |||
1 | diff --git a/moblin-desktop.h b/moblin-desktop.h | ||
2 | index 880a9ad..3d51a14 100644 | ||
3 | --- a/moblin-desktop.h | ||
4 | +++ b/moblin-desktop.h | ||
5 | @@ -29,8 +29,8 @@ | ||
6 | #define __MAIN_H__ | ||
7 | |||
8 | |||
9 | -#define ASSET_ROOT "./assets/" | ||
10 | -#define JSON_ROOT "./layouts/" | ||
11 | +#define ASSET_ROOT "/usr/share/moblin-proto/assets/" | ||
12 | +#define JSON_ROOT "/usr/share/moblin-proto/layouts/" | ||
13 | |||
14 | typedef struct | ||
15 | { | ||
diff --git a/meta/recipes-graphics/clutter/moblin-proto_git.bb b/meta/recipes-graphics/clutter/moblin-proto_git.bb new file mode 100644 index 0000000000..b86d622385 --- /dev/null +++ b/meta/recipes-graphics/clutter/moblin-proto_git.bb | |||
@@ -0,0 +1,19 @@ | |||
1 | DEPENDS = "clutter-box2d" | ||
2 | |||
3 | PV = "0.0+git${SRCPV}" | ||
4 | PR = "r2" | ||
5 | |||
6 | SRC_URI = "git://moblin.org/repos/users/pippin/prototype.git/;protocol=http \ | ||
7 | file://paths.patch;patch=1 \ | ||
8 | file://fix-shader-and-callbacks.patch;patch=1" | ||
9 | |||
10 | S = "${WORKDIR}/git" | ||
11 | |||
12 | do_install () { | ||
13 | install -d ${D}${bindir} | ||
14 | install ${S}/moblin-proto ${D}${bindir} | ||
15 | |||
16 | install -d ${D}${datadir}/moblin-proto/ | ||
17 | cp -a ${S}/assets ${D}${datadir}/moblin-proto/ | ||
18 | cp -a ${S}/layouts ${D}${datadir}/moblin-proto/ | ||
19 | } | ||
diff --git a/meta/recipes-graphics/clutter/table.inc b/meta/recipes-graphics/clutter/table.inc new file mode 100644 index 0000000000..dc949172b5 --- /dev/null +++ b/meta/recipes-graphics/clutter/table.inc | |||
@@ -0,0 +1,13 @@ | |||
1 | DESCRIPTION = "Table Clutter Demo" | ||
2 | HOMEPAGE = "http://www.clutter-project.org/" | ||
3 | LICENSE = "LGPL" | ||
4 | |||
5 | DEPENDS = "clutter-gst-0.6 gnome-vfs" | ||
6 | |||
7 | inherit autotools pkgconfig | ||
8 | |||
9 | do_install() { | ||
10 | install -d ${D}${bindir} | ||
11 | install -m 0755 ${S}/table ${D}${bindir}/table | ||
12 | } | ||
13 | |||
diff --git a/meta/recipes-graphics/clutter/table/fixes.patch b/meta/recipes-graphics/clutter/table/fixes.patch new file mode 100644 index 0000000000..a7cdc43713 --- /dev/null +++ b/meta/recipes-graphics/clutter/table/fixes.patch | |||
@@ -0,0 +1,14 @@ | |||
1 | Index: table/Makefile | ||
2 | =================================================================== | ||
3 | --- table.orig/Makefile 2007-07-10 13:24:18.000000000 +0100 | ||
4 | +++ table/Makefile 2007-07-10 13:28:10.000000000 +0100 | ||
5 | @@ -8,7 +8,7 @@ all: table | ||
6 | |||
7 | |||
8 | table: table.o clutter-dominatrix.o clutter-video-player.o | ||
9 | - $(CC) -g -Wall $(CFLAGS) -o $@ table.o clutter-dominatrix.o clutter-video-player.o $(LIBS) | ||
10 | + $(CC) -g -Wall $(CFLAGS) $(LDFLAGS) -o $@ table.o clutter-dominatrix.o clutter-video-player.o $(LIBS) | ||
11 | |||
12 | clean: | ||
13 | rm -fr *.o table | ||
14 | \ No newline at end of file | ||
diff --git a/meta/recipes-graphics/clutter/table_git.bb b/meta/recipes-graphics/clutter/table_git.bb new file mode 100644 index 0000000000..5aa4153c1a --- /dev/null +++ b/meta/recipes-graphics/clutter/table_git.bb | |||
@@ -0,0 +1,11 @@ | |||
1 | require table.inc | ||
2 | |||
3 | PV = "0.3.0+git${SRCPV}" | ||
4 | PR = "r1" | ||
5 | |||
6 | SRC_URI = "git://git.clutter-project.org/toys.git;protocol=git \ | ||
7 | file://fixes.patch;patch=1" | ||
8 | |||
9 | S = "${WORKDIR}/git/table" | ||
10 | |||
11 | |||
diff --git a/meta/recipes-graphics/clutter/tidy.inc b/meta/recipes-graphics/clutter/tidy.inc new file mode 100644 index 0000000000..3fa387c049 --- /dev/null +++ b/meta/recipes-graphics/clutter/tidy.inc | |||
@@ -0,0 +1,20 @@ | |||
1 | DESCRIPTION = "Tidy library" | ||
2 | HOMEPAGE = "http://www.clutter-project.org/" | ||
3 | LICENSE = "LGPL" | ||
4 | |||
5 | STDDEPENDS = "clutter-0.8" | ||
6 | BASE_CONF = "--disable-gtk-doc" | ||
7 | |||
8 | DEPENDS = "${STDDEPENDS}" | ||
9 | EXTRA_OECONF = "${BASE_CONF}" | ||
10 | |||
11 | inherit autotools pkgconfig | ||
12 | |||
13 | PACKAGES =+ "tidy-examples" | ||
14 | FILES_tidy-examples = "${bindir}/test-*" | ||
15 | |||
16 | do_configure_prepend() { | ||
17 | touch ${S}/gtk-doc.make | ||
18 | sed -i s:docs/reference/Makefile::g ${S}/configure.ac | ||
19 | sed -i s:docs::g ${S}/Makefile.am | ||
20 | } | ||
diff --git a/meta/recipes-graphics/clutter/tidy/autofoo.patch b/meta/recipes-graphics/clutter/tidy/autofoo.patch new file mode 100644 index 0000000000..7f54a3372a --- /dev/null +++ b/meta/recipes-graphics/clutter/tidy/autofoo.patch | |||
@@ -0,0 +1,11 @@ | |||
1 | Index: tidy/doc/reference/Makefile.am | ||
2 | =================================================================== | ||
3 | --- tidy.orig/doc/reference/Makefile.am 2007-11-06 19:36:56.000000000 +0000 | ||
4 | +++ tidy/doc/reference/Makefile.am 2007-11-06 19:37:02.000000000 +0000 | ||
5 | @@ -77,4 +77,4 @@ include $(top_srcdir)/gtk-doc.make | ||
6 | |||
7 | # Other files to distribute | ||
8 | # e.g. EXTRA_DIST += version.xml.in | ||
9 | -EXTRA_DIST += version.xml.in | ||
10 | +EXTRA_DIST = version.xml.in | ||
11 | |||
diff --git a/meta/recipes-graphics/clutter/tidy/tidy-enable-tests.patch b/meta/recipes-graphics/clutter/tidy/tidy-enable-tests.patch new file mode 100644 index 0000000000..c5e1660c54 --- /dev/null +++ b/meta/recipes-graphics/clutter/tidy/tidy-enable-tests.patch | |||
@@ -0,0 +1,20 @@ | |||
1 | Index: trunk/tests/Makefile.am | ||
2 | =================================================================== | ||
3 | --- trunk.orig/tests/Makefile.am 2008-03-04 12:22:10.000000000 +0000 | ||
4 | +++ trunk/tests/Makefile.am 2008-03-04 12:23:46.000000000 +0000 | ||
5 | @@ -1,4 +1,4 @@ | ||
6 | -noinst_PROGRAMS = \ | ||
7 | +bin_PROGRAMS = \ | ||
8 | test-button \ | ||
9 | test-finger-scroll \ | ||
10 | test-list-view \ | ||
11 | @@ -14,6 +14,9 @@ | ||
12 | test-grow \ | ||
13 | test-viewport | ||
14 | |||
15 | +test_texture_framedir = $(pkgdatadir) | ||
16 | +test_texture_frame_DATA = frame.png | ||
17 | + | ||
18 | INCLUDES = -I$(top_srcdir) | ||
19 | LDADD = $(top_builddir)/tidy/libtidy-1.0.la | ||
20 | |||
diff --git a/meta/recipes-graphics/clutter/tidy_git.bb b/meta/recipes-graphics/clutter/tidy_git.bb new file mode 100644 index 0000000000..178526027e --- /dev/null +++ b/meta/recipes-graphics/clutter/tidy_git.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | require tidy.inc | ||
2 | |||
3 | PV = "0.1.0+git${SRCPV}" | ||
4 | PR = "r7" | ||
5 | |||
6 | SRC_URI = "git://git.clutter-project.org/tidy.git;protocol=git \ | ||
7 | file://tidy-enable-tests.patch;patch=1" | ||
8 | |||
9 | S = "${WORKDIR}/git" | ||
10 | |||
diff --git a/meta/recipes-graphics/drm/libdrm-2.4.21/installtests.patch b/meta/recipes-graphics/drm/libdrm-2.4.21/installtests.patch new file mode 100644 index 0000000000..9d6a168bbc --- /dev/null +++ b/meta/recipes-graphics/drm/libdrm-2.4.21/installtests.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | Index: libdrm-2.4.7/tests/Makefile.am | ||
2 | =================================================================== | ||
3 | --- libdrm-2.4.7.orig/tests/Makefile.am 2009-04-09 20:16:35.000000000 +0100 | ||
4 | +++ libdrm-2.4.7/tests/Makefile.am 2009-04-17 12:35:14.000000000 +0100 | ||
5 | @@ -6,10 +6,11 @@ | ||
6 | |||
7 | LDADD = $(top_builddir)/libdrm.la | ||
8 | |||
9 | -check_PROGRAMS = \ | ||
10 | +bin_PROGRAMS = \ | ||
11 | dristat \ | ||
12 | drmstat | ||
13 | |||
14 | +check_PROGRAMS = | ||
15 | SUBDIRS = | ||
16 | |||
17 | if HAVE_LIBKMS | ||
18 | Index: libdrm-2.4.7/tests/modeprint/Makefile.am | ||
19 | =================================================================== | ||
20 | --- libdrm-2.4.7.orig/tests/modeprint/Makefile.am 2009-02-17 19:52:37.000000000 +0000 | ||
21 | +++ libdrm-2.4.7/tests/modeprint/Makefile.am 2009-04-17 12:35:32.000000000 +0100 | ||
22 | @@ -3,7 +3,7 @@ | ||
23 | -I$(top_srcdir)/libdrm/intel/ \ | ||
24 | -I$(top_srcdir)/libdrm | ||
25 | |||
26 | -noinst_PROGRAMS = \ | ||
27 | +bin_PROGRAMS = \ | ||
28 | modeprint | ||
29 | |||
30 | modeprint_SOURCES = \ | ||
31 | Index: libdrm-2.4.7/tests/modetest/Makefile.am | ||
32 | =================================================================== | ||
33 | --- libdrm-2.4.7.orig/tests/modetest/Makefile.am 2009-02-17 19:52:37.000000000 +0000 | ||
34 | +++ libdrm-2.4.7/tests/modetest/Makefile.am 2009-04-17 12:35:42.000000000 +0100 | ||
35 | @@ -4,7 +4,7 @@ | ||
36 | -I$(top_srcdir)/libdrm \ | ||
37 | $(CAIRO_CFLAGS) | ||
38 | |||
39 | -noinst_PROGRAMS = \ | ||
40 | +bin_PROGRAMS = \ | ||
41 | modetest | ||
42 | |||
43 | modetest_SOURCES = \ | ||
diff --git a/meta/recipes-graphics/drm/libdrm.inc b/meta/recipes-graphics/drm/libdrm.inc new file mode 100644 index 0000000000..4f153ff7f7 --- /dev/null +++ b/meta/recipes-graphics/drm/libdrm.inc | |||
@@ -0,0 +1,14 @@ | |||
1 | DESCRIPTION = "userspace library for accessing the DRM(direct rendering manager)" | ||
2 | HOMEPAGE = "http://dri.freedesktop.org" | ||
3 | SECTION = "x11/base" | ||
4 | LICENSE = "MIT" | ||
5 | SRC_URI = "http://dri.freedesktop.org/libdrm/libdrm-${PV}.tar.bz2" | ||
6 | PROVIDES = "drm" | ||
7 | DEPENDS = "libpthread-stubs udev cairo virtual/libx11" | ||
8 | |||
9 | inherit autotools pkgconfig | ||
10 | |||
11 | PACKAGES =+ "libdrm-tests" | ||
12 | FILES_libdrm-tests = "${bindir}/dr* ${bindir}/mode*" | ||
13 | |||
14 | LEAD_SONAME = "libdrm.so" | ||
diff --git a/meta/recipes-graphics/drm/libdrm_2.4.21.bb b/meta/recipes-graphics/drm/libdrm_2.4.21.bb new file mode 100644 index 0000000000..97ca069004 --- /dev/null +++ b/meta/recipes-graphics/drm/libdrm_2.4.21.bb | |||
@@ -0,0 +1,4 @@ | |||
1 | require libdrm.inc | ||
2 | |||
3 | SRC_URI += "file://installtests.patch" | ||
4 | PR = "r0" | ||
diff --git a/meta/recipes-graphics/drm/libdrm_git.bb b/meta/recipes-graphics/drm/libdrm_git.bb new file mode 100644 index 0000000000..d80dd5f433 --- /dev/null +++ b/meta/recipes-graphics/drm/libdrm_git.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | require libdrm.inc | ||
2 | |||
3 | SRC_URI = "git://anongit.freedesktop.org/git/mesa/drm;protocol=git" | ||
4 | |||
5 | S = ${WORKDIR}/git | ||
6 | |||
7 | PV = "2.4.15+git${SRCREV}" | ||
8 | PR = "r0" | ||
diff --git a/meta/recipes-graphics/fontconfig/fontconfig-2.8.0/97_fontconfig b/meta/recipes-graphics/fontconfig/fontconfig-2.8.0/97_fontconfig new file mode 100644 index 0000000000..2993959dbb --- /dev/null +++ b/meta/recipes-graphics/fontconfig/fontconfig-2.8.0/97_fontconfig | |||
@@ -0,0 +1 @@ | |||
d root root 0755 /var/cache/fontconfig none | |||
diff --git a/meta/recipes-graphics/fontconfig/fontconfig-2.8.0/fix-pkgconfig.patch b/meta/recipes-graphics/fontconfig/fontconfig-2.8.0/fix-pkgconfig.patch new file mode 100644 index 0000000000..7fec1e9104 --- /dev/null +++ b/meta/recipes-graphics/fontconfig/fontconfig-2.8.0/fix-pkgconfig.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | --- | ||
2 | fontconfig.pc.in | 2 +- | ||
3 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
4 | |||
5 | --- fontconfig-2.8.0.orig/fontconfig.pc.in | ||
6 | +++ fontconfig-2.8.0/fontconfig.pc.in | ||
7 | @@ -7,5 +7,5 @@ | ||
8 | Description: Font configuration and customization library | ||
9 | Version: @VERSION@ | ||
10 | Libs: -L${libdir} -lfontconfig | ||
11 | -Libs.private: @LIBXML2_LIBS@ @EXPAT_LIBS@ @FREETYPE_LIBS@ @ICONV_LIBS@ | ||
12 | +Libs.private: @LIBXML2_LIBS@ @EXPAT_LIBS@ -L{libdir} -lfreetype @ICONV_LIBS@ | ||
13 | Cflags: -I${includedir} | ||
diff --git a/meta/recipes-graphics/fontconfig/fontconfig-native_2.8.0.bb b/meta/recipes-graphics/fontconfig/fontconfig-native_2.8.0.bb new file mode 100644 index 0000000000..03a1bc86c2 --- /dev/null +++ b/meta/recipes-graphics/fontconfig/fontconfig-native_2.8.0.bb | |||
@@ -0,0 +1,12 @@ | |||
1 | require fontconfig_${PV}.bb | ||
2 | inherit native | ||
3 | DEPENDS = "freetype-native expat-native zlib-native" | ||
4 | |||
5 | EXTRA_OEMAKE = "" | ||
6 | EXTRA_OECONF = "${@[' --disable-docs',' --disable-docs --with-freetype-config=%s/freetype-config' % bb.data.getVar('STAGING_BINDIR', d, 1)][os.path.isfile('%s/freetype-config' % bb.data.getVar('STAGING_BINDIR', d, 1))]}" | ||
7 | |||
8 | do_install_append () { | ||
9 | install -d ${D}${bindir}/ | ||
10 | install fc-lang/fc-lang ${D}${bindir}/ | ||
11 | install fc-glyphname/fc-glyphname ${D}${bindir}/ | ||
12 | } | ||
diff --git a/meta/recipes-graphics/fontconfig/fontconfig_2.8.0.bb b/meta/recipes-graphics/fontconfig/fontconfig_2.8.0.bb new file mode 100644 index 0000000000..e0403ecb3c --- /dev/null +++ b/meta/recipes-graphics/fontconfig/fontconfig_2.8.0.bb | |||
@@ -0,0 +1,81 @@ | |||
1 | DESCRIPTION = "A library for configuring and customizing font access." | ||
2 | HOMEPAGE = "http://www.fontconfig.org" | ||
3 | BUGTRACKER = "https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig" | ||
4 | |||
5 | LICENSE = "MIT-style & MIT & Public Domain" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=f3ad4145dea6ca7efa2f1bee8165a7a1 \ | ||
7 | file://src/fcfreetype.c;endline=45;md5=bc3dd139e2f7245a02fde5545b203a6f \ | ||
8 | file://src/fccache.c;beginline=1020;endline=1035;md5=0326cfeb4a7333dd4dd25fbbc4b9f27f" | ||
9 | |||
10 | SECTION = "libs" | ||
11 | |||
12 | DEPENDS = "expat freetype zlib" | ||
13 | |||
14 | PR = "r1" | ||
15 | |||
16 | SRC_URI = "http://fontconfig.org/release/fontconfig-${PV}.tar.gz \ | ||
17 | file://fix-pkgconfig.patch \ | ||
18 | file://97_fontconfig" | ||
19 | |||
20 | PACKAGES =+ "fontconfig-utils-dbg fontconfig-utils " | ||
21 | FILES_fontconfig-utils-dbg = "${bindir}/*.dbg" | ||
22 | FILES_fontconfig-utils = "${bindir}/*" | ||
23 | |||
24 | # Work around past breakage in debian.bbclass | ||
25 | RPROVIDES_fontconfig-utils = "libfontconfig-utils" | ||
26 | RREPLACES_fontconfig-utils = "libfontconfig-utils" | ||
27 | RCONFLICTS_fontconfig-utils = "libfontconfig-utils" | ||
28 | DEBIAN_NOAUTONAME_fontconfig-utils = "1" | ||
29 | |||
30 | PARALLEL_MAKE = "" | ||
31 | |||
32 | inherit autotools pkgconfig | ||
33 | |||
34 | export HASDOCBOOK="no" | ||
35 | |||
36 | EXTRA_OECONF = " --disable-docs --with-arch=${HOST_ARCH}" | ||
37 | EXTRA_OEMAKE = "FC_LANG=fc-lang FC_GLYPHNAME=fc-glyphname" | ||
38 | |||
39 | # The tarball has some of the patched files as read only, which | ||
40 | # patch doesn't like at all | ||
41 | |||
42 | fontconfig_do_unpack() { | ||
43 | chmod -R u+rw ${S} | ||
44 | } | ||
45 | |||
46 | python do_unpack () { | ||
47 | bb.build.exec_func('base_do_unpack', d) | ||
48 | bb.build.exec_func('fontconfig_do_unpack', d) | ||
49 | } | ||
50 | |||
51 | BUILD_CFLAGS += " -I${STAGING_INCDIR}/freetype2" | ||
52 | |||
53 | do_configure_append () { | ||
54 | sed -i 's|LDFLAGS =.*|LDFLAGS =|' fc-case/Makefile | ||
55 | sed -i 's|LDFLAGS =.*|LDFLAGS =|' fc-glyphname/Makefile | ||
56 | sed -i 's|LDFLAGS =.*|LDFLAGS =|' fc-lang/Makefile | ||
57 | sed -i 's|LDFLAGS =.*|LDFLAGS =|' fc-arch/Makefile | ||
58 | |||
59 | sed -i 's|CFLAGS =.*|CFLAGS =${BUILD_CFLAGS}|' fc-case/Makefile | ||
60 | sed -i 's|CFLAGS =.*|CFLAGS =${BUILD_CFLAGS}|' fc-glyphname/Makefile | ||
61 | sed -i 's|CFLAGS =.*|CFLAGS =${BUILD_CFLAGS}|' fc-lang/Makefile | ||
62 | sed -i 's|CFLAGS =.*|CFLAGS =${BUILD_CFLAGS}|' fc-arch/Makefile | ||
63 | |||
64 | sed -i 's|CPPFLAGS =.*|CPPFLAGS =${BUILD_CPPFLAGS}|' fc-case/Makefile | ||
65 | sed -i 's|CPPFLAGS =.*|CPPFLAGS =${BUILD_CPPFLAGS}|' fc-glyphname/Makefile | ||
66 | sed -i 's|CPPFLAGS =.*|CPPFLAGS =${BUILD_CPPFLAGS}|' fc-lang/Makefile | ||
67 | sed -i 's|CPPFLAGS =.*|CPPFLAGS =${BUILD_CPPFLAGS}|' fc-arch/Makefile | ||
68 | |||
69 | sed -i 's|CXXFLAGS =.*|CFLAGS =${BUILD_CXXFLAGS}|' fc-case/Makefile | ||
70 | sed -i 's|CXXFLAGS =.*|CFLAGS =${BUILD_CXXFLAGS}|' fc-glyphname/Makefile | ||
71 | sed -i 's|CXXFLAGS =.*|CFLAGS =${BUILD_CXXFLAGS}|' fc-lang/Makefile | ||
72 | sed -i 's|CXXFLAGS =.*|CFLAGS =${BUILD_CXXFLAGS}|' fc-arch/Makefile | ||
73 | |||
74 | } | ||
75 | |||
76 | do_install_append() { | ||
77 | install -d ${D}${sysconfdir}/default/volatiles | ||
78 | install -m 0644 ${WORKDIR}/97_fontconfig ${D}${sysconfdir}/default/volatiles | ||
79 | rmdir ${D}${localstatedir}/cache/fontconfig | ||
80 | rmdir ${D}${localstatedir}/cache/ | ||
81 | } | ||
diff --git a/meta/recipes-graphics/freetype/freetype-2.3.12/no-hardcode.patch b/meta/recipes-graphics/freetype/freetype-2.3.12/no-hardcode.patch new file mode 100644 index 0000000000..44ae450a14 --- /dev/null +++ b/meta/recipes-graphics/freetype/freetype-2.3.12/no-hardcode.patch | |||
@@ -0,0 +1,11 @@ | |||
1 | --- freetype-2.1.10/builds/unix/freetype-config.in.old 2006-05-01 12:39:20.000000000 +0100 | ||
2 | +++ freetype-2.1.10/builds/unix/freetype-config.in 2006-05-01 12:39:34.000000000 +0100 | ||
3 | @@ -16,7 +16,7 @@ | ||
4 | libdir=@libdir@ | ||
5 | enable_shared=@enable_shared@ | ||
6 | wl=@wl@ | ||
7 | -hardcode_libdir_flag_spec='@hardcode_libdir_flag_spec@' | ||
8 | +hardcode_libdir_flag_spec='' | ||
9 | |||
10 | usage() | ||
11 | { | ||
diff --git a/meta/recipes-graphics/freetype/freetype_2.3.12.bb b/meta/recipes-graphics/freetype/freetype_2.3.12.bb new file mode 100644 index 0000000000..da62ffb3b2 --- /dev/null +++ b/meta/recipes-graphics/freetype/freetype_2.3.12.bb | |||
@@ -0,0 +1,49 @@ | |||
1 | DESCRIPTION = "Freetype font rendering library" | ||
2 | HOMEPAGE = "http://www.freetype.org/" | ||
3 | BUGTRACKER = "https://savannah.nongnu.org/bugs/?group=freetype" | ||
4 | |||
5 | LICENSE = "FreeTypeLicense | GPLv2+" | ||
6 | LIC_FILES_CHKSUM = "file://docs/LICENSE.TXT;md5=8bc1a580aeb518100d00a2dd29e68edf \ | ||
7 | file://docs/FTL.TXT;md5=d479e83797f699fe873b38dadd0fcd4c \ | ||
8 | file://docs/GPL.TXT;md5=8ef380476f642c20ebf40fecb0add2ec" | ||
9 | |||
10 | SECTION = "libs" | ||
11 | |||
12 | PR = "r0" | ||
13 | |||
14 | SRC_URI = "${SOURCEFORGE_MIRROR}/freetype/freetype-${PV}.tar.bz2 \ | ||
15 | file://no-hardcode.patch" | ||
16 | |||
17 | S = "${WORKDIR}/freetype-${PV}" | ||
18 | |||
19 | inherit autotools pkgconfig binconfig | ||
20 | |||
21 | LIBTOOL = "${S}/builds/unix/${HOST_SYS}-libtool" | ||
22 | EXTRA_OEMAKE = "'LIBTOOL=${LIBTOOL}'" | ||
23 | EXTRA_OEMAKE_virtclass-native = "" | ||
24 | EXTRA_OECONF = "--without-zlib" | ||
25 | |||
26 | do_configure() { | ||
27 | cd builds/unix | ||
28 | libtoolize --force --copy | ||
29 | aclocal -I . | ||
30 | gnu-configize --force | ||
31 | autoconf | ||
32 | cd ${S} | ||
33 | oe_runconf | ||
34 | } | ||
35 | |||
36 | do_configure_virtclass-native() { | ||
37 | (cd builds/unix && gnu-configize) || die "failure running gnu-configize" | ||
38 | oe_runconf | ||
39 | } | ||
40 | |||
41 | do_compile_prepend() { | ||
42 | ${BUILD_CC} -o objs/apinames src/tools/apinames.c | ||
43 | } | ||
44 | |||
45 | FILES_${PN} = "${libdir}/lib*${SOLIBS}" | ||
46 | FILES_${PN}-dev += "${bindir}" | ||
47 | |||
48 | BBCLASSEXTEND = "native" | ||
49 | |||
diff --git a/meta/recipes-graphics/libfakekey/libfakekey_svn.bb b/meta/recipes-graphics/libfakekey/libfakekey_svn.bb new file mode 100644 index 0000000000..634fd4ea0f --- /dev/null +++ b/meta/recipes-graphics/libfakekey/libfakekey_svn.bb | |||
@@ -0,0 +1,16 @@ | |||
1 | DESCRIPTION = "libfakekey" | ||
2 | HOMEPAGE = "http://matchbox-project.org/" | ||
3 | BUGTRACKER = "http://bugzilla.openedhand.com/" | ||
4 | |||
5 | LICENSE = "LGPLv2+" | ||
6 | |||
7 | DEPENDS = "libxtst" | ||
8 | SECTION = "x11/wm" | ||
9 | PV = "0.0+svnr${SRCREV}" | ||
10 | PR = "r1" | ||
11 | |||
12 | SRC_URI = "svn://svn.o-hand.com/repos/matchbox/trunk;module=${PN};proto=http" | ||
13 | |||
14 | S = "${WORKDIR}/${PN}" | ||
15 | |||
16 | inherit autotools pkgconfig gettext | ||
diff --git a/meta/recipes-graphics/libmatchbox/files/16bppfixes-2.patch b/meta/recipes-graphics/libmatchbox/files/16bppfixes-2.patch new file mode 100644 index 0000000000..ab9cdc74a5 --- /dev/null +++ b/meta/recipes-graphics/libmatchbox/files/16bppfixes-2.patch | |||
@@ -0,0 +1,258 @@ | |||
1 | --- libmatchbox/libmb/mbpixbuf.c.orig 2007-05-04 14:41:55.000000000 +0100 | ||
2 | +++ libmatchbox/libmb/mbpixbuf.c 2007-05-04 14:41:55.000000000 +0100 | ||
3 | @@ -710,46 +710,19 @@ | ||
4 | return colnum; | ||
5 | } | ||
6 | |||
7 | - | ||
8 | -static unsigned long | ||
9 | -mb_pixbuf_get_pixel(MBPixbuf *pb, int r, int g, int b, int a) | ||
10 | +/* | ||
11 | + * Split the mb_pixbuf_get_pixel() function into several specialized | ||
12 | + * functions which we will inline; this allows us to optimize | ||
13 | + * mb_pixbuf_img_render_to_drawable_with_gc () by taking some of the | ||
14 | + * decision taking outside of the double loop | ||
15 | + */ | ||
16 | + | ||
17 | +/* | ||
18 | + * Get pixel value for rgb values and pixel depth <= 8 | ||
19 | + */ | ||
20 | +static inline unsigned long | ||
21 | +mb_pixbuf_get_pixel_le8_rgb (MBPixbuf *pb, int r, int g, int b) | ||
22 | { | ||
23 | - if (pb->depth > 8) | ||
24 | - { | ||
25 | - switch (pb->depth) | ||
26 | - { | ||
27 | - case 15: | ||
28 | - return ((r & 0xf8) << 7) | ((g & 0xf8) << 2) | ((b & 0xf8) >> 3); | ||
29 | - case 16: | ||
30 | - return ((r & 0xf8) << 8) | ((g & 0xfc) << 3) | ((b & 0xf8) >> 3); | ||
31 | - case 24: | ||
32 | - case 32: | ||
33 | - switch (pb->byte_order) | ||
34 | - { | ||
35 | - case BYTE_ORD_24_RGB: | ||
36 | - return ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff); | ||
37 | - case BYTE_ORD_24_RBG: | ||
38 | - return ((r & 0xff) << 16) | ((b & 0xff) << 8) | (g & 0xff); | ||
39 | - case BYTE_ORD_24_BRG: | ||
40 | - return ((b & 0xff) << 16) | ((r & 0xff) << 8) | (g & 0xff); | ||
41 | - case BYTE_ORD_24_BGR: | ||
42 | - return ((b & 0xff) << 16) | ((g & 0xff) << 8) | (r & 0xff); | ||
43 | - case BYTE_ORD_24_GRB: | ||
44 | - return ((g & 0xff) << 16) | ((r & 0xff) << 8) | (b & 0xff); | ||
45 | - case BYTE_ORD_24_GBR: | ||
46 | - return ((g & 0xff) << 16) | ((b & 0xff) << 8) | (r & 0xff); | ||
47 | - case BYTE_ORD_32_ARGB: | ||
48 | - return (a << 24) | (r << 16) | (g << 8) | b; | ||
49 | - default: | ||
50 | - return 0; | ||
51 | - } | ||
52 | - default: | ||
53 | - return 0; | ||
54 | - } | ||
55 | - return 0; | ||
56 | - } | ||
57 | - | ||
58 | - /* pb->depth <= 8 */ | ||
59 | switch(pb->vis->class) | ||
60 | { | ||
61 | case PseudoColor: | ||
62 | @@ -794,6 +767,111 @@ | ||
63 | return 0; | ||
64 | } | ||
65 | |||
66 | +/* | ||
67 | + * Get pixel value from a pointer to 16bbp value for pixel depth <= 8 | ||
68 | + * and advance the pointer | ||
69 | + */ | ||
70 | +static inline unsigned long | ||
71 | +mb_pixbuf_get_pixel_le8_16bpp_advance (MBPixbuf *pb, unsigned char ** p) | ||
72 | +{ | ||
73 | + unsigned short s = SHORT_FROM_2BYTES(*p); | ||
74 | + int r, b, g; | ||
75 | + | ||
76 | + r = (s & 0xf800) >> 8; | ||
77 | + g = (s & 0x07e0) >> 3; | ||
78 | + b = (s & 0x001f) << 3; | ||
79 | + | ||
80 | + *p += 2; | ||
81 | + | ||
82 | + return mb_pixbuf_get_pixel_le8_rgb (pb, r, g, b); | ||
83 | +} | ||
84 | + | ||
85 | +/* | ||
86 | + * Get pixel value for rgba values and pixel depth > 8 | ||
87 | + * | ||
88 | + */ | ||
89 | +static inline unsigned long | ||
90 | +mb_pixbuf_get_pixel_gt8_rgba (MBPixbuf *pb, int r, int g, int b, int a) | ||
91 | +{ | ||
92 | + switch (pb->depth) | ||
93 | + { | ||
94 | + case 15: | ||
95 | + switch (pb->byte_order) | ||
96 | + { | ||
97 | + case BYTE_ORD_24_RGB: | ||
98 | + return ((r & 0xf8) << 7) | ((g & 0xf8) << 2) | ((b & 0xf8) >> 3); | ||
99 | + case BYTE_ORD_24_BGR: | ||
100 | + return ((b & 0xf8) << 7) | ((g & 0xf8) << 2) | ((r & 0xf8) >> 3); | ||
101 | + } | ||
102 | + case 16: | ||
103 | + switch (pb->byte_order) | ||
104 | + { | ||
105 | + case BYTE_ORD_24_RGB: | ||
106 | + return ((r & 0xf8) << 8) | ((g & 0xfc) << 3) | ((b & 0xf8) >> 3); | ||
107 | + case BYTE_ORD_24_BGR: | ||
108 | + return ((b & 0xf8) << 8) | ((g & 0xfc) << 3) | ((r & 0xf8) >> 3); | ||
109 | + } | ||
110 | + case 24: | ||
111 | + case 32: | ||
112 | + switch (pb->byte_order) | ||
113 | + { | ||
114 | + case BYTE_ORD_24_RGB: | ||
115 | + return ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff); | ||
116 | + case BYTE_ORD_24_RBG: | ||
117 | + return ((r & 0xff) << 16) | ((b & 0xff) << 8) | (g & 0xff); | ||
118 | + case BYTE_ORD_24_BRG: | ||
119 | + return ((b & 0xff) << 16) | ((r & 0xff) << 8) | (g & 0xff); | ||
120 | + case BYTE_ORD_24_BGR: | ||
121 | + return ((b & 0xff) << 16) | ((g & 0xff) << 8) | (r & 0xff); | ||
122 | + case BYTE_ORD_24_GRB: | ||
123 | + return ((g & 0xff) << 16) | ((r & 0xff) << 8) | (b & 0xff); | ||
124 | + case BYTE_ORD_24_GBR: | ||
125 | + return ((g & 0xff) << 16) | ((b & 0xff) << 8) | (r & 0xff); | ||
126 | + case BYTE_ORD_32_ARGB: | ||
127 | + return (a << 24) | (r << 16) | (g << 8) | b; | ||
128 | + default: | ||
129 | + return 0; | ||
130 | + } | ||
131 | + default: | ||
132 | + return 0; | ||
133 | + } | ||
134 | +} | ||
135 | + | ||
136 | +/* | ||
137 | + * Get pixel value from pointer to 16bpp data for pixel depth > 8 | ||
138 | + * and advance the pointer | ||
139 | + * | ||
140 | + * TODO ? We could take the 32bit case out of here, which would allow | ||
141 | + * to ignore the alpha value for <15, 24>, but we might not gain that | ||
142 | + * much by this on arm due to the conditional execution. | ||
143 | + */ | ||
144 | +static inline unsigned long | ||
145 | +mb_pixbuf_get_pixel_gt8_16bpp_advance (MBPixbuf *pb, unsigned char ** p, | ||
146 | + int has_alpha) | ||
147 | +{ | ||
148 | + unsigned short s = SHORT_FROM_2BYTES(*p); | ||
149 | + int r, b, g, a; | ||
150 | + | ||
151 | + r = (s & 0xf800) >> 8; | ||
152 | + g = (s & 0x07e0) >> 3; | ||
153 | + b = (s & 0x001f) << 3; | ||
154 | + | ||
155 | + *p += 2; | ||
156 | + | ||
157 | + a = has_alpha ? *(*p)++ : 0xff; | ||
158 | + | ||
159 | + return mb_pixbuf_get_pixel_gt8_rgba (pb, r, g, b, a); | ||
160 | +} | ||
161 | + | ||
162 | +static inline unsigned long | ||
163 | +mb_pixbuf_get_pixel(MBPixbuf *pb, int r, int g, int b, int a) | ||
164 | +{ | ||
165 | + if (pb->depth > 8) | ||
166 | + return mb_pixbuf_get_pixel_gt8_rgba (pb, r, g, b, a); | ||
167 | + | ||
168 | + return mb_pixbuf_get_pixel_le8_rgb (pb, r, g, b); | ||
169 | +} | ||
170 | + | ||
171 | unsigned long | ||
172 | mb_pixbuf_lookup_x_pixel(MBPixbuf *pb, int r, int g, int b, int a) | ||
173 | { | ||
174 | @@ -1825,7 +1903,6 @@ | ||
175 | mb_pixbuf_img_render_to_drawable_with_gc(pb, img, drw, drw_x, drw_y, pb->gc); | ||
176 | } | ||
177 | |||
178 | - | ||
179 | void | ||
180 | mb_pixbuf_img_render_to_drawable_with_gc(MBPixbuf *pb, | ||
181 | MBPixbufImage *img, | ||
182 | @@ -1883,31 +1960,57 @@ | ||
183 | |||
184 | if (pb->internal_bytespp == 2) | ||
185 | { | ||
186 | - for(y=0; y<img->height; y++) | ||
187 | - for(x=0; x<img->width; x++) | ||
188 | - { | ||
189 | - /* Below is potentially dangerous. | ||
190 | - */ | ||
191 | - pixel = ( *p | (*(p+1) << 8)); | ||
192 | - | ||
193 | - p += ((img->has_alpha) ? 3 : 2); | ||
194 | - | ||
195 | - XPutPixel(img->ximg, x, y, pixel); | ||
196 | - } | ||
197 | + if (pb->depth > 8) | ||
198 | + { | ||
199 | + for(y=0; y<img->height; y++) | ||
200 | + for(x=0; x<img->width; x++) | ||
201 | + { | ||
202 | + pixel = mb_pixbuf_get_pixel_gt8_16bpp_advance(pb, &p, | ||
203 | + img->has_alpha); | ||
204 | + XPutPixel(img->ximg, x, y, pixel); | ||
205 | + } | ||
206 | + } | ||
207 | + else | ||
208 | + { | ||
209 | + for(y=0; y<img->height; y++) | ||
210 | + for(x=0; x<img->width; x++) | ||
211 | + { | ||
212 | + pixel = mb_pixbuf_get_pixel_le8_16bpp_advance(pb, &p); | ||
213 | + XPutPixel(img->ximg, x, y, pixel); | ||
214 | + } | ||
215 | + } | ||
216 | } | ||
217 | else | ||
218 | { | ||
219 | - for(y=0; y<img->height; y++) | ||
220 | + if (pb->depth > 8) | ||
221 | { | ||
222 | - for(x=0; x<img->width; x++) | ||
223 | + for(y=0; y<img->height; y++) | ||
224 | { | ||
225 | - r = ( *p++ ); | ||
226 | - g = ( *p++ ); | ||
227 | - b = ( *p++ ); | ||
228 | - a = ((img->has_alpha) ? *p++ : 0xff); | ||
229 | + for(x=0; x<img->width; x++) | ||
230 | + { | ||
231 | + r = ( *p++ ); | ||
232 | + g = ( *p++ ); | ||
233 | + b = ( *p++ ); | ||
234 | + a = ((img->has_alpha) ? *p++ : 0xff); | ||
235 | |||
236 | - pixel = mb_pixbuf_get_pixel(pb, r, g, b, a); | ||
237 | - XPutPixel(img->ximg, x, y, pixel); | ||
238 | + pixel = mb_pixbuf_get_pixel_gt8_rgba(pb, r, g, b, a); | ||
239 | + XPutPixel(img->ximg, x, y, pixel); | ||
240 | + } | ||
241 | + } | ||
242 | + } | ||
243 | + else | ||
244 | + { | ||
245 | + for(y=0; y<img->height; y++) | ||
246 | + { | ||
247 | + for(x=0; x<img->width; x++) | ||
248 | + { | ||
249 | + r = ( *p++ ); | ||
250 | + g = ( *p++ ); | ||
251 | + b = ( *p++ ); | ||
252 | + | ||
253 | + pixel = mb_pixbuf_get_pixel_le8_rgb(pb, r, g, b); | ||
254 | + XPutPixel(img->ximg, x, y, pixel); | ||
255 | + } | ||
256 | } | ||
257 | } | ||
258 | } | ||
diff --git a/meta/recipes-graphics/libmatchbox/files/16bppfixes.patch b/meta/recipes-graphics/libmatchbox/files/16bppfixes.patch new file mode 100644 index 0000000000..09a0347809 --- /dev/null +++ b/meta/recipes-graphics/libmatchbox/files/16bppfixes.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | Index: libmb/mbpixbuf.c | ||
2 | =================================================================== | ||
3 | --- libmatchbox/libmb.orig/mbpixbuf.c 2006-02-01 12:45:55.000000000 +0000 | ||
4 | +++ libmatchbox/libmb/mbpixbuf.c 2006-03-11 15:20:47.000000000 +0000 | ||
5 | @@ -716,7 +716,13 @@ | ||
6 | case 15: | ||
7 | return ((r & 0xf8) << 7) | ((g & 0xf8) << 2) | ((b & 0xf8) >> 3); | ||
8 | case 16: | ||
9 | - return ((r & 0xf8) << 8) | ((g & 0xfc) << 3) | ((b & 0xf8) >> 3); | ||
10 | + switch (pb->byte_order) | ||
11 | + { | ||
12 | + case BYTE_ORD_24_RGB: | ||
13 | + return ((r & 0xf8) << 8) | ((g & 0xfc) << 3) | ((b & 0xf8) >> 3); | ||
14 | + case BYTE_ORD_24_BGR: | ||
15 | + return ((b & 0xf8) << 8) | ((g & 0xfc) << 3) | ((r & 0xf8) >> 3); | ||
16 | + } | ||
17 | case 24: | ||
18 | case 32: | ||
19 | switch (pb->byte_order) | ||
20 | @@ -1880,12 +1886,11 @@ | ||
21 | for(y=0; y<img->height; y++) | ||
22 | for(x=0; x<img->width; x++) | ||
23 | { | ||
24 | - /* Below is potentially dangerous. | ||
25 | - */ | ||
26 | - pixel = ( *p | (*(p+1) << 8)); | ||
27 | + internal_16bpp_pixel_to_rgb(p, r, g, b); | ||
28 | + internal_16bpp_pixel_next(p); | ||
29 | + a = ((img->has_alpha) ? *p++ : 0xff); | ||
30 | |||
31 | - p += ((img->has_alpha) ? 3 : 2); | ||
32 | - | ||
33 | + pixel = mb_pixbuf_get_pixel(pb, r, g, b, a); | ||
34 | XPutPixel(img->ximg, x, y, pixel); | ||
35 | } | ||
36 | } | ||
diff --git a/meta/recipes-graphics/libmatchbox/files/autofoo.patch b/meta/recipes-graphics/libmatchbox/files/autofoo.patch new file mode 100644 index 0000000000..ad3be578e4 --- /dev/null +++ b/meta/recipes-graphics/libmatchbox/files/autofoo.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | |||
2 | # | ||
3 | # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher | ||
4 | # | ||
5 | |||
6 | --- libmatchbox-1.5/configure.ac~autofoo 2004-12-21 12:56:46.000000000 -0500 | ||
7 | +++ libmatchbox-1.5/configure.ac 2005-01-18 16:40:04.421179624 -0500 | ||
8 | @@ -1,10 +1,10 @@ | ||
9 | AC_PREREQ(2.53) | ||
10 | AC_INIT([libmatchbox], 1.5, [mallum@handhelds.org]) | ||
11 | AC_CONFIG_SRCDIR([libmb/mbtray.c]) | ||
12 | +AC_CONFIG_AUX_DIR(.) | ||
13 | |||
14 | AM_INIT_AUTOMAKE() | ||
15 | AM_CONFIG_HEADER([config.h]) | ||
16 | -AC_CONFIG_AUX_DIR(.) | ||
17 | |||
18 | # Checks for programs. | ||
19 | AC_GNU_SOURCE | ||
diff --git a/meta/recipes-graphics/libmatchbox/files/check.m4 b/meta/recipes-graphics/libmatchbox/files/check.m4 new file mode 100644 index 0000000000..97bfd9c478 --- /dev/null +++ b/meta/recipes-graphics/libmatchbox/files/check.m4 | |||
@@ -0,0 +1,133 @@ | |||
1 | dnl AM_PATH_CHECK([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) | ||
2 | dnl Test for check, and define CHECK_CFLAGS and CHECK_LIBS | ||
3 | dnl | ||
4 | |||
5 | AC_DEFUN(AM_PATH_CHECK, | ||
6 | [ | ||
7 | AC_ARG_WITH(check, | ||
8 | [ --with-check=PATH prefix where check is installed [default=auto]]) | ||
9 | |||
10 | min_check_version=ifelse([$1], ,0.8.2,$1) | ||
11 | |||
12 | AC_MSG_CHECKING(for check - version >= $min_check_version) | ||
13 | |||
14 | if test x$with_check = xno; then | ||
15 | AC_MSG_RESULT(disabled) | ||
16 | ifelse([$3], , AC_MSG_ERROR([disabling check is not supported]), [$3]) | ||
17 | else | ||
18 | if test "x$with_check" != x; then | ||
19 | CHECK_CFLAGS="-I$with_check/include" | ||
20 | CHECK_LIBS="-L$with_check/lib -lcheck" | ||
21 | else | ||
22 | CHECK_CFLAGS="" | ||
23 | CHECK_LIBS="-lcheck" | ||
24 | fi | ||
25 | |||
26 | ac_save_CFLAGS="$CFLAGS" | ||
27 | ac_save_LIBS="$LIBS" | ||
28 | |||
29 | CFLAGS="$CFLAGS $CHECK_CFLAGS" | ||
30 | LIBS="$CHECK_LIBS $LIBS" | ||
31 | |||
32 | rm -f conf.check-test | ||
33 | AC_TRY_RUN([ | ||
34 | #include <stdio.h> | ||
35 | #include <stdlib.h> | ||
36 | |||
37 | #include <check.h> | ||
38 | |||
39 | int main () | ||
40 | { | ||
41 | int major, minor, micro; | ||
42 | char *tmp_version; | ||
43 | |||
44 | system ("touch conf.check-test"); | ||
45 | |||
46 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | ||
47 | tmp_version = strdup("$min_check_version"); | ||
48 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | ||
49 | printf("%s, bad version string\n", "$min_check_version"); | ||
50 | return 1; | ||
51 | } | ||
52 | |||
53 | if ((CHECK_MAJOR_VERSION != check_major_version) || | ||
54 | (CHECK_MINOR_VERSION != check_minor_version) || | ||
55 | (CHECK_MICRO_VERSION != check_micro_version)) | ||
56 | { | ||
57 | printf("\n*** The check header file (version %d.%d.%d) does not match\n", | ||
58 | CHECK_MAJOR_VERSION, CHECK_MINOR_VERSION, CHECK_MICRO_VERSION); | ||
59 | printf("*** the check library (version %d.%d.%d).\n", | ||
60 | check_major_version, check_minor_version, check_micro_version); | ||
61 | return 1; | ||
62 | } | ||
63 | |||
64 | if ((check_major_version > major) || | ||
65 | ((check_major_version == major) && (check_minor_version > minor)) || | ||
66 | ((check_major_version == major) && (check_minor_version == minor) && (check_micro_version >= micro))) | ||
67 | { | ||
68 | return 0; | ||
69 | } | ||
70 | else | ||
71 | { | ||
72 | printf("\n*** An old version of check (%d.%d.%d) was found.\n", | ||
73 | check_major_version, check_minor_version, check_micro_version); | ||
74 | printf("*** You need a version of check being at least %d.%d.%d.\n", major, minor, micro); | ||
75 | printf("***\n"); | ||
76 | printf("*** If you have already installed a sufficiently new version, this error\n"); | ||
77 | printf("*** probably means that the wrong copy of the check library and header\n"); | ||
78 | printf("*** file is being found. Rerun configure with the --with-check=PATH option\n"); | ||
79 | printf("*** to specify the prefix where the correct version was installed.\n"); | ||
80 | } | ||
81 | |||
82 | return 1; | ||
83 | } | ||
84 | ],, no_check=yes, [echo $ac_n "cross compiling; assumed OK... $ac_c"]) | ||
85 | |||
86 | CFLAGS="$ac_save_CFLAGS" | ||
87 | LIBS="$ac_save_LIBS" | ||
88 | |||
89 | if test "x$no_check" = x ; then | ||
90 | AC_MSG_RESULT(yes) | ||
91 | ifelse([$2], , :, [$2]) | ||
92 | else | ||
93 | AC_MSG_RESULT(no) | ||
94 | if test -f conf.check-test ; then | ||
95 | : | ||
96 | else | ||
97 | echo "*** Could not run check test program, checking why..." | ||
98 | CFLAGS="$CFLAGS $CHECK_CFLAGS" | ||
99 | LIBS="$CHECK_LIBS $LIBS" | ||
100 | AC_TRY_LINK([ | ||
101 | #include <stdio.h> | ||
102 | #include <stdlib.h> | ||
103 | |||
104 | #include <check.h> | ||
105 | ], , [ echo "*** The test program compiled, but did not run. This usually means" | ||
106 | echo "*** that the run-time linker is not finding check. You'll need to set your" | ||
107 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | ||
108 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | ||
109 | echo "*** is required on your system" | ||
110 | echo "***" | ||
111 | echo "*** If you have an old version installed, it is best to remove it, although" | ||
112 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"], | ||
113 | [ echo "*** The test program failed to compile or link. See the file config.log for" | ||
114 | echo "*** the exact error that occured." ]) | ||
115 | |||
116 | CFLAGS="$ac_save_CFLAGS" | ||
117 | LIBS="$ac_save_LIBS" | ||
118 | fi | ||
119 | |||
120 | CHECK_CFLAGS="" | ||
121 | CHECK_LIBS="" | ||
122 | |||
123 | rm -f conf.check-test | ||
124 | ifelse([$3], , AC_MSG_ERROR([check not found]), [$3]) | ||
125 | fi | ||
126 | |||
127 | AC_SUBST(CHECK_CFLAGS) | ||
128 | AC_SUBST(CHECK_LIBS) | ||
129 | |||
130 | rm -f conf.check-test | ||
131 | |||
132 | fi | ||
133 | ]) | ||
diff --git a/meta/recipes-graphics/libmatchbox/files/configure_fixes.patch b/meta/recipes-graphics/libmatchbox/files/configure_fixes.patch new file mode 100644 index 0000000000..083d32a04f --- /dev/null +++ b/meta/recipes-graphics/libmatchbox/files/configure_fixes.patch | |||
@@ -0,0 +1,79 @@ | |||
1 | --- | ||
2 | configure.ac | 15 +++++++-------- | ||
3 | libmb.pc.in | 2 +- | ||
4 | 2 files changed, 8 insertions(+), 9 deletions(-) | ||
5 | |||
6 | Index: libmatchbox-1.9/configure.ac | ||
7 | =================================================================== | ||
8 | --- libmatchbox-1.9.orig/configure.ac 2007-11-11 22:26:43.000000000 +0000 | ||
9 | +++ libmatchbox-1.9/configure.ac 2007-11-11 22:52:09.000000000 +0000 | ||
10 | @@ -84,6 +84,7 @@ if test $have_libx11pc = yes; then | ||
11 | xft_pkg=xft | ||
12 | SUPPORTS_XFT=1 | ||
13 | AC_DEFINE(USE_XFT, [1], [Use Xft]) | ||
14 | + XFT_REQUIRED="xft" | ||
15 | fi | ||
16 | # XXX : xau is missing from x11.pc - workaround is too add here | ||
17 | PKG_CHECK_MODULES(XLIBS, x11 xext $xft_pkg) | ||
18 | @@ -108,6 +109,7 @@ if test x$enable_xft != xno; then | ||
19 | AC_DEFINE(USE_XFT, [1], [Use Xft]) | ||
20 | SUPPORTS_XFT=1 | ||
21 | AC_MSG_RESULT(yes) | ||
22 | + XFT_REQUIRED="xft" | ||
23 | else | ||
24 | |||
25 | AC_PATH_PROG(XFT_CONFIG, xft-config, no) | ||
26 | @@ -122,21 +124,17 @@ if test x$enable_xft != xno; then | ||
27 | AC_DEFINE(USE_XFT, [1], [Use Xft]) | ||
28 | SUPPORTS_XFT=1 | ||
29 | AC_MSG_RESULT(yes) | ||
30 | + MB_EXTRA_CFLAGS="$MB_EXTRA_CFLAGS $XFT_CFLAGS" | ||
31 | + MB_EXTRA_LIBS="$MB_EXTRA_LIBS $XFT_LIBS" | ||
32 | fi | ||
33 | fi | ||
34 | fi | ||
35 | |||
36 | XLIBS_CFLAGS="$XLIBS_CLAGS $XFT_CFLAGS" | ||
37 | -XLIBS_LIBS="$X_LIBS $XFT_LIBS -lX11 -lXext" | ||
38 | - | ||
39 | -MB_EXTRA_LIBS="$MB_EXTRA_LIBS $XLIBS_LIBS" | ||
40 | +XLIBS_LIBS="$XLIBS_LIBS $XFT_LIBS -lX11 -lXext" | ||
41 | |||
42 | fi | ||
43 | |||
44 | -# do this here for freetype include | ||
45 | -MB_EXTRA_CFLAGS="$MB_EXTRA_CFLAGS $XLIBS_CFLAGS" | ||
46 | - | ||
47 | - | ||
48 | dnl ------ Check for Pango --------------------------------------------------- | ||
49 | |||
50 | if test x$enable_pango != xno; then | ||
51 | @@ -172,7 +170,7 @@ if test x$enable_png != xno; then | ||
52 | AC_DEFINE(USE_PNG, [1], [Use Png]) | ||
53 | SUPPORTS_PNG=1 | ||
54 | PNG_LIBS="-lpng -lz" | ||
55 | - MB_EXTRA_LIBS="$MB_EXTRA_LIBS $XLIBS_LIBS $PNG_LIBS" | ||
56 | + MB_EXTRA_LIBS="$MB_EXTRA_LIBS $PNG_LIBS" | ||
57 | else | ||
58 | AC_MSG_WARN([*** Cannot find PNG, disabling support]) | ||
59 | enable_png=no | ||
60 | @@ -340,6 +338,7 @@ AC_SUBST(MB_EXTRA_CFLAGS) | ||
61 | AC_SUBST(XLIBS_REQUIRED) | ||
62 | AC_SUBST(PANGO_REQUIRED) | ||
63 | AC_SUBST(PNG_REQUIRED) | ||
64 | +AC_SUBST(XFT_REQUIRED) | ||
65 | |||
66 | dnl ------ Below used for mbconfig.h ---------------------------------------- | ||
67 | |||
68 | Index: libmatchbox-1.9/libmb.pc.in | ||
69 | =================================================================== | ||
70 | --- libmatchbox-1.9.orig/libmb.pc.in 2007-11-11 22:30:47.000000000 +0000 | ||
71 | +++ libmatchbox-1.9/libmb.pc.in 2007-11-11 22:31:01.000000000 +0000 | ||
72 | @@ -7,6 +7,6 @@ Name: libmb | ||
73 | Description: Utility Library used by Matchbox utilities. | ||
74 | Version: @VERSION@ | ||
75 | |||
76 | -Requires: @XLIBS_REQUIRED@ @PANGO_REQUIRED@ @PNG_REQUIRED@ | ||
77 | +Requires: @XLIBS_REQUIRED@ @PANGO_REQUIRED@ @PNG_REQUIRED@ @XFT_REQUIRED@ | ||
78 | Libs: -L${libdir} -lmb @MB_EXTRA_LIBS@ | ||
79 | Cflags: -I${includedir} @MB_EXTRA_CFLAGS@ | ||
diff --git a/meta/recipes-graphics/libmatchbox/files/fix-configure-for-1.9.patch b/meta/recipes-graphics/libmatchbox/files/fix-configure-for-1.9.patch new file mode 100644 index 0000000000..990b738e66 --- /dev/null +++ b/meta/recipes-graphics/libmatchbox/files/fix-configure-for-1.9.patch | |||
@@ -0,0 +1,14 @@ | |||
1 | diff -urNd ../libmatchbox-1.6-r1/libmatchbox-1.6/configure.ac libmatchbox-1.6/configure.ac | ||
2 | --- ../libmatchbox-1.6-r1/libmatchbox-1.6/configure.ac 2005-01-11 21:47:39 +00:00 | ||
3 | +++ libmatchbox-1.6/configure.ac 2005-03-14 03:06:25 +00:00 | ||
4 | @@ -2,9 +2,9 @@ | ||
5 | AC_INIT([libmatchbox], 1.6, [mallum@handhelds.org]) | ||
6 | AC_CONFIG_SRCDIR([libmb/mbtray.c]) | ||
7 | |||
8 | +AC_CONFIG_AUX_DIR(.) | ||
9 | AM_INIT_AUTOMAKE() | ||
10 | AM_CONFIG_HEADER([config.h]) | ||
11 | -AC_CONFIG_AUX_DIR(.) | ||
12 | |||
13 | # Checks for programs. | ||
14 | AC_GNU_SOURCE | ||
diff --git a/meta/recipes-graphics/libmatchbox/libmatchbox.inc b/meta/recipes-graphics/libmatchbox/libmatchbox.inc new file mode 100644 index 0000000000..fdc866fe02 --- /dev/null +++ b/meta/recipes-graphics/libmatchbox/libmatchbox.inc | |||
@@ -0,0 +1,17 @@ | |||
1 | DESCRIPTION = "Matchbox window manager core library" | ||
2 | HOMEPAGE = "http://matchbox-project.org/" | ||
3 | BUGTRACKER = "http://bugzilla.openedhand.com/" | ||
4 | |||
5 | LICENSE = "LGPLv2+" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34 \ | ||
7 | file://libmb/mbexp.c;endline=20;md5=28c0aef3b23e308464f5dae6a11b0d2f \ | ||
8 | file://libmb/mbdotdesktop.c;endline=21;md5=5a287156b3207e851c1d68d09c439b51" | ||
9 | |||
10 | SECTION = "x11/libs" | ||
11 | DEPENDS = "virtual/libx11 libxext expat libxft jpeg libpng zlib libxsettings-client startup-notification" | ||
12 | |||
13 | inherit autotools pkgconfig | ||
14 | |||
15 | EXTRA_OECONF = "--enable-jpeg --enable-expat --enable-xsettings --enable-startup-notification" | ||
16 | |||
17 | S = "${WORKDIR}/libmatchbox-${PV}" | ||
diff --git a/meta/recipes-graphics/libmatchbox/libmatchbox_1.9.bb b/meta/recipes-graphics/libmatchbox/libmatchbox_1.9.bb new file mode 100644 index 0000000000..1d7d9c8f44 --- /dev/null +++ b/meta/recipes-graphics/libmatchbox/libmatchbox_1.9.bb | |||
@@ -0,0 +1,12 @@ | |||
1 | require libmatchbox.inc | ||
2 | |||
3 | PR = "r7" | ||
4 | |||
5 | SRC_URI = "http://projects.o-hand.com/matchbox/sources/${PN}/${PV}/${PN}-${PV}.tar.gz \ | ||
6 | file://16bppfixes.patch;patch=1 \ | ||
7 | file://configure_fixes.patch;patch=1 \ | ||
8 | file://check.m4" | ||
9 | |||
10 | do_configure_prepend () { | ||
11 | cp ${WORKDIR}/check.m4 ${S}/ | ||
12 | } | ||
diff --git a/meta/recipes-graphics/libmatchbox/libmatchbox_svn.bb b/meta/recipes-graphics/libmatchbox/libmatchbox_svn.bb new file mode 100644 index 0000000000..3cdcd324f4 --- /dev/null +++ b/meta/recipes-graphics/libmatchbox/libmatchbox_svn.bb | |||
@@ -0,0 +1,16 @@ | |||
1 | require libmatchbox.inc | ||
2 | |||
3 | PV = "1.7+svnr${SRCREV}" | ||
4 | PR = "r4" | ||
5 | DEFAULT_PREFERENCE = "-1" | ||
6 | |||
7 | SRC_URI = "svn://svn.o-hand.com/repos/matchbox/trunk;module=${PN};proto=http \ | ||
8 | file://configure_fixes.patch;patch=1 \ | ||
9 | file://check.m4 \ | ||
10 | file://16bppfixes.patch;patch=1" | ||
11 | |||
12 | S = "${WORKDIR}/libmatchbox" | ||
13 | |||
14 | do_configure_prepend () { | ||
15 | cp ${WORKDIR}/check.m4 ${S}/ | ||
16 | } | ||
diff --git a/meta/recipes-graphics/libxklavier/libxklavier/pkgconfigfix.patch b/meta/recipes-graphics/libxklavier/libxklavier/pkgconfigfix.patch new file mode 100644 index 0000000000..4aaafb2b1e --- /dev/null +++ b/meta/recipes-graphics/libxklavier/libxklavier/pkgconfigfix.patch | |||
@@ -0,0 +1,15 @@ | |||
1 | Index: libxklavier-3.7/libxklavier.pc.in | ||
2 | =================================================================== | ||
3 | --- libxklavier-3.7.orig/libxklavier.pc.in 2009-06-10 15:58:46.000000000 +0100 | ||
4 | +++ libxklavier-3.7/libxklavier.pc.in 2009-06-10 16:00:45.000000000 +0100 | ||
5 | @@ -5,7 +5,7 @@ | ||
6 | |||
7 | Name: libxklavier | ||
8 | Description: libxklavier library | ||
9 | -Requires: libxml-2.0 | ||
10 | +Requires: libxml-2.0 glib-2.0 | ||
11 | Version: @VERSION@ | ||
12 | -Libs: -L${libdir} -lxklavier @GLIB_LIBS@ @XML_LIBS@ | ||
13 | -Cflags: -I${includedir} @GLIB_CFLAGS@ | ||
14 | +Libs: -L${libdir} -lxklavier | ||
15 | +Cflags: -I${includedir} | ||
diff --git a/meta/recipes-graphics/libxklavier/libxklavier_3.9.bb b/meta/recipes-graphics/libxklavier/libxklavier_3.9.bb new file mode 100644 index 0000000000..1d9b6f21a4 --- /dev/null +++ b/meta/recipes-graphics/libxklavier/libxklavier_3.9.bb | |||
@@ -0,0 +1,12 @@ | |||
1 | DESCRIPTION = "Utility library to make using XKB easier" | ||
2 | SECTION = "x11/libs" | ||
3 | PRIORITY = "optional" | ||
4 | DEPENDS = "iso-codes libxml2 glib-2.0 libxkbfile" | ||
5 | LICENSE = "LGPL" | ||
6 | PR = "r2" | ||
7 | |||
8 | SRC_URI = "${SOURCEFORGE_MIRROR}/gswitchit/libxklavier-${PV}.tar.bz2 \ | ||
9 | file://pkgconfigfix.patch;patch=1" | ||
10 | |||
11 | inherit autotools | ||
12 | |||
diff --git a/meta/recipes-graphics/libxsettings-client/libxsettings-client/MIT-style-license b/meta/recipes-graphics/libxsettings-client/libxsettings-client/MIT-style-license new file mode 100644 index 0000000000..628de9830d --- /dev/null +++ b/meta/recipes-graphics/libxsettings-client/libxsettings-client/MIT-style-license | |||
@@ -0,0 +1,22 @@ | |||
1 | /* | ||
2 | * Copyright © 2001 Red Hat, Inc. | ||
3 | * | ||
4 | * Permission to use, copy, modify, distribute, and sell this software and its | ||
5 | * documentation for any purpose is hereby granted without fee, provided that | ||
6 | * the above copyright notice appear in all copies and that both that | ||
7 | * copyright notice and this permission notice appear in supporting | ||
8 | * documentation, and that the name of Red Hat not be used in advertising or | ||
9 | * publicity pertaining to distribution of the software without specific, | ||
10 | * written prior permission. Red Hat makes no representations about the | ||
11 | * suitability of this software for any purpose. It is provided "as is" | ||
12 | * without express or implied warranty. | ||
13 | * | ||
14 | * RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL | ||
15 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL RED HAT | ||
16 | * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
17 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION | ||
18 | * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN | ||
19 | * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
20 | * | ||
21 | * Author: Owen Taylor, Red Hat, Inc. | ||
22 | */ | ||
diff --git a/meta/recipes-graphics/libxsettings-client/libxsettings-client/link-x11.patch b/meta/recipes-graphics/libxsettings-client/libxsettings-client/link-x11.patch new file mode 100644 index 0000000000..ee12f0a5b3 --- /dev/null +++ b/meta/recipes-graphics/libxsettings-client/libxsettings-client/link-x11.patch | |||
@@ -0,0 +1,11 @@ | |||
1 | Index: Xsettings-client-0.10/Makefile.am | ||
2 | =================================================================== | ||
3 | --- Xsettings-client-0.10.orig/Makefile.am 2008-02-07 14:49:54.000000000 +0000 | ||
4 | +++ Xsettings-client-0.10/Makefile.am 2008-02-07 14:50:00.000000000 +0000 | ||
5 | @@ -9,4 +9,4 @@ | ||
6 | |||
7 | libXsettings_client_la_SOURCES= $(source_c) $(source_h) | ||
8 | |||
9 | -libXsettings_client_la_LIBADD = @X_LIBS@ | ||
10 | \ No newline at end of file | ||
11 | +libXsettings_client_la_LIBADD = @X_LIBS@ -lX11 | ||
diff --git a/meta/recipes-graphics/libxsettings-client/libxsettings-client_0.10.bb b/meta/recipes-graphics/libxsettings-client/libxsettings-client_0.10.bb new file mode 100644 index 0000000000..ecd6d181eb --- /dev/null +++ b/meta/recipes-graphics/libxsettings-client/libxsettings-client_0.10.bb | |||
@@ -0,0 +1,30 @@ | |||
1 | DESCRIPTION = "Common code for XSETTINGS" | ||
2 | HOMEPAGE = "http://matchbox-project.org/sources/optional-dependencies/" | ||
3 | BUGTRACKER = "http://bugzilla.openedhand.com/" | ||
4 | SECTION = "x/libs" | ||
5 | LICENSE = "MIT-style" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=7cfac9d2d4dc3694cc7eb605cf32a69b \ | ||
7 | file://xsettings-client.h;endline=22;md5=7cfac9d2d4dc3694cc7eb605cf32a69b \ | ||
8 | file://xsettings-common.h;endline=22;md5=7cfac9d2d4dc3694cc7eb605cf32a69b" | ||
9 | PRIORITY = "optional" | ||
10 | DEPENDS = "virtual/libx11" | ||
11 | |||
12 | PR = "r3" | ||
13 | |||
14 | headers = "xsettings-common.h xsettings-client.h" | ||
15 | |||
16 | SRC_URI = "http://projects.o-hand.com/matchbox/sources/optional-dependencies/Xsettings-client-0.10.tar.gz \ | ||
17 | file://MIT-style-license \ | ||
18 | file://link-x11.patch;apply=yes" | ||
19 | |||
20 | S = "${WORKDIR}/Xsettings-client-0.10" | ||
21 | |||
22 | inherit autotools gettext | ||
23 | |||
24 | do_configure_prepend() { | ||
25 | # This package doesn't ship with its own COPYING file and | ||
26 | # autotools will install a GPLv2 one instead of the actual MIT-style license here. | ||
27 | # Add the correct license here to avoid confusion. | ||
28 | cp -f ${WORKDIR}/MIT-style-license ${S}/COPYING | ||
29 | } | ||
30 | |||
diff --git a/meta/recipes-graphics/matchbox-session/matchbox-session/matchbox-session b/meta/recipes-graphics/matchbox-session/matchbox-session/matchbox-session new file mode 100644 index 0000000000..4d6caa0c5a --- /dev/null +++ b/meta/recipes-graphics/matchbox-session/matchbox-session/matchbox-session | |||
@@ -0,0 +1,24 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | # Very simple session manager for matchbox tools | ||
4 | # | ||
5 | |||
6 | # Uncomment below to enable parsing of debian menu entrys | ||
7 | # export MB_USE_DEB_MENUS=1 | ||
8 | |||
9 | if [ -e $HOME/.matchbox/session ] | ||
10 | then | ||
11 | exec $HOME/.matchbox/session | ||
12 | fi | ||
13 | |||
14 | if [ -e /etc/matchbox/session ] | ||
15 | then | ||
16 | exec /etc/matchbox/session | ||
17 | fi | ||
18 | |||
19 | # Default files to run if $HOME/.matchbox/session or /etc/matchbox/session | ||
20 | # dont exist. | ||
21 | |||
22 | matchbox-desktop & | ||
23 | matchbox-panel & | ||
24 | exec matchbox-window-manager $@ | ||
diff --git a/meta/recipes-graphics/matchbox-session/matchbox-session_0.1.bb b/meta/recipes-graphics/matchbox-session/matchbox-session_0.1.bb new file mode 100644 index 0000000000..df9f2ab603 --- /dev/null +++ b/meta/recipes-graphics/matchbox-session/matchbox-session_0.1.bb | |||
@@ -0,0 +1,24 @@ | |||
1 | DESCRIPTION = "Custom MB session files for poky" | ||
2 | HOMEPAGE = "http://www.matchbox-project.org/" | ||
3 | BUGTRACKER = "http://bugzilla.openedhand.com/" | ||
4 | |||
5 | LICENSE = "GPL" | ||
6 | LIC_FILES_CHKSUM = "file://matchbox-session;endline=20;md5=180f1c169a15d059a56c30094f6fb5ea" | ||
7 | |||
8 | SECTION = "x11" | ||
9 | RCONFLICTS = "matchbox-common" | ||
10 | |||
11 | SRC_URI = "file://matchbox-session" | ||
12 | S = "${WORKDIR}" | ||
13 | |||
14 | inherit update-alternatives | ||
15 | |||
16 | ALTERNATIVE_NAME = "x-session-manager" | ||
17 | ALTERNATIVE_LINK = "${bindir}/x-session-manager" | ||
18 | ALTERNATIVE_PATH = "${bindir}/matchbox-session" | ||
19 | ALTERNATIVE_PRIORITY = "10" | ||
20 | |||
21 | do_install() { | ||
22 | install -d ${D}/${bindir} | ||
23 | install -m 0755 ${S}/matchbox-session ${D}/${bindir} | ||
24 | } | ||
diff --git a/meta/recipes-graphics/matchbox-wm-2/matchbox-wm-2_svn.bb b/meta/recipes-graphics/matchbox-wm-2/matchbox-wm-2_svn.bb new file mode 100644 index 0000000000..f67e06083e --- /dev/null +++ b/meta/recipes-graphics/matchbox-wm-2/matchbox-wm-2_svn.bb | |||
@@ -0,0 +1,42 @@ | |||
1 | SECTION = "x11/wm" | ||
2 | DESCRIPTION = "Matchbox window manager" | ||
3 | LICENSE = "GPL" | ||
4 | DEPENDS = "virtual/libx11 libxext libxrender startup-notification expat gconf pango libxdamage libxcomposite gtk+" | ||
5 | |||
6 | PV = "0.0+svnr${SRCREV}" | ||
7 | PR = "r4" | ||
8 | |||
9 | SRC_URI = "svn://svn.o-hand.com/repos/matchbox/trunk;module=matchbox-window-manager-2;proto=http \ | ||
10 | " | ||
11 | |||
12 | S = "${WORKDIR}/matchbox-window-manager-2" | ||
13 | |||
14 | inherit autotools pkgconfig update-alternatives | ||
15 | |||
16 | # Change this to x-session-manager->matchbox-session and put in | ||
17 | # matchbox-session, then change this to x-window-manager to | ||
18 | # matchbox-window-manager-2. | ||
19 | ALTERNATIVE_NAME = "x-window-manager" | ||
20 | ALTERNATIVE_LINK = "${bindir}/x-window-manager" | ||
21 | ALTERNATIVE_PATH = "${bindir}/matchbox-session" | ||
22 | ALTERNATIVE_PRIORITY = "10" | ||
23 | |||
24 | PACKAGES =+ "libmatchbox2" | ||
25 | |||
26 | FILES_libmatchbox2 = "${libdir}/*${SOLIBS}" | ||
27 | |||
28 | FILES_${PN} += "${datadir}/matchbox-2 \ | ||
29 | ${sysconfdir}/matchbox-2 \ | ||
30 | ${datadir}/themes/*" | ||
31 | |||
32 | EXTRA_OECONF = "--enable-debug \ | ||
33 | --enable-simple-manager \ | ||
34 | --enable-compositing-manager \ | ||
35 | --enable-libmatchbox \ | ||
36 | --enable-png-theme \ | ||
37 | " | ||
38 | |||
39 | do_install_append () { | ||
40 | cd ${D}${bindir} | ||
41 | ln -s matchbox-window-manager-2-simple matchbox-window-manager | ||
42 | } | ||
diff --git a/meta/recipes-graphics/matchbox-wm/matchbox-wm/configure_fix.patch b/meta/recipes-graphics/matchbox-wm/matchbox-wm/configure_fix.patch new file mode 100644 index 0000000000..52cea0e8f7 --- /dev/null +++ b/meta/recipes-graphics/matchbox-wm/matchbox-wm/configure_fix.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | Index: matchbox-window-manager/configure.ac | ||
2 | =================================================================== | ||
3 | --- matchbox-window-manager.orig/configure.ac 2007-11-14 12:02:28.000000000 +0000 | ||
4 | +++ matchbox-window-manager/configure.ac 2007-11-14 12:18:55.000000000 +0000 | ||
5 | @@ -283,7 +283,7 @@ | ||
6 | yes) | ||
7 | |||
8 | case "$expat" in | ||
9 | - yes) | ||
10 | + yes|"") | ||
11 | EXPAT_LIBS="-lexpat" | ||
12 | ;; | ||
13 | *) | ||
diff --git a/meta/recipes-graphics/matchbox-wm/matchbox-wm/gconf-2.m4 b/meta/recipes-graphics/matchbox-wm/matchbox-wm/gconf-2.m4 new file mode 100644 index 0000000000..aca7c7da45 --- /dev/null +++ b/meta/recipes-graphics/matchbox-wm/matchbox-wm/gconf-2.m4 | |||
@@ -0,0 +1,39 @@ | |||
1 | dnl AM_GCONF_SOURCE_2 | ||
2 | dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas | ||
3 | dnl (i.e. pass to gconftool-2 | ||
4 | dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where | ||
5 | dnl you should install foo.schemas files | ||
6 | dnl | ||
7 | |||
8 | AC_DEFUN([AM_GCONF_SOURCE_2], | ||
9 | [ | ||
10 | if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then | ||
11 | GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source` | ||
12 | else | ||
13 | GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE | ||
14 | fi | ||
15 | |||
16 | AC_ARG_WITH(gconf-source, | ||
17 | [ --with-gconf-source=sourceaddress Config database for installing schema files.],GCONF_SCHEMA_CONFIG_SOURCE="$withval",) | ||
18 | |||
19 | AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE) | ||
20 | AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation]) | ||
21 | |||
22 | if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then | ||
23 | GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas' | ||
24 | fi | ||
25 | |||
26 | AC_ARG_WITH(gconf-schema-file-dir, | ||
27 | [ --with-gconf-schema-file-dir=dir Directory for installing schema files.],GCONF_SCHEMA_FILE_DIR="$withval",) | ||
28 | |||
29 | AC_SUBST(GCONF_SCHEMA_FILE_DIR) | ||
30 | AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files]) | ||
31 | |||
32 | AC_ARG_ENABLE(schemas-install, | ||
33 | [ --disable-schemas-install Disable the schemas installation], | ||
34 | [case ${enableval} in | ||
35 | yes|no) ;; | ||
36 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-schemas-install) ;; | ||
37 | esac]) | ||
38 | AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no]) | ||
39 | ]) | ||
diff --git a/meta/recipes-graphics/matchbox-wm/matchbox-wm/kbdconfig b/meta/recipes-graphics/matchbox-wm/matchbox-wm/kbdconfig new file mode 100644 index 0000000000..239da8f57c --- /dev/null +++ b/meta/recipes-graphics/matchbox-wm/matchbox-wm/kbdconfig | |||
@@ -0,0 +1,42 @@ | |||
1 | # | ||
2 | # This is an example keyboard config file for matchbox | ||
3 | # | ||
4 | # You can edit this file or change per user by copying to | ||
5 | # ~/.matchbox/kbdconfig | ||
6 | # | ||
7 | # Se the matchbox manual for more info ( http://projects.o-hand.com/matchbox ) | ||
8 | |||
9 | ### Window operation short cuts | ||
10 | |||
11 | <Alt>n=next | ||
12 | <Alt>p=prev | ||
13 | <Alt>c=close | ||
14 | <Alt>d=desktop | ||
15 | <Alt>m=!matchbox-remote -mbmenu | ||
16 | |||
17 | ### App launching. | ||
18 | |||
19 | <ctrl><alt>x=!xterm | ||
20 | <ctrl><alt>r=!rxvt | ||
21 | |||
22 | ### poky additions | ||
23 | |||
24 | XF86Calendar=!$contacts | ||
25 | telephone=!$dates | ||
26 | XF86Start=!matchbox-remote -desktop | ||
27 | F2=!matchbox-remote -mbmenu | ||
28 | |||
29 | #XF86Mail=!$tasks | ||
30 | #Escape=close | ||
31 | |||
32 | ### windows style key shortcuts | ||
33 | |||
34 | <alt>Tab=next | ||
35 | <alt><shift>Tab=prev | ||
36 | |||
37 | <alt>space=taskmenu | ||
38 | <alt>escape=!matchbox-remote -mbmenu | ||
39 | <alt>f4=close | ||
40 | |||
41 | f11=fullscreen | ||
42 | |||
diff --git a/meta/recipes-graphics/matchbox-wm/matchbox-wm_0.9.5.bb b/meta/recipes-graphics/matchbox-wm/matchbox-wm_0.9.5.bb new file mode 100644 index 0000000000..e09eb00ed1 --- /dev/null +++ b/meta/recipes-graphics/matchbox-wm/matchbox-wm_0.9.5.bb | |||
@@ -0,0 +1,32 @@ | |||
1 | SECTION = "x11/wm" | ||
2 | DESCRIPTION = "Matchbox window manager" | ||
3 | LICENSE = "GPL" | ||
4 | DEPENDS = "libmatchbox virtual/libx11 libxext libxcomposite libxfixes xdamage libxrender startup-notification expat gconf" | ||
5 | PR="r2" | ||
6 | |||
7 | |||
8 | SRC_URI = "http://projects.o-hand.com/matchbox/sources/matchbox-window-manager/0.9/matchbox-window-manager-${PV}.tar.gz \ | ||
9 | file://kbdconfig" | ||
10 | |||
11 | S = "${WORKDIR}/matchbox-window-manager-${PV}" | ||
12 | |||
13 | inherit autotools pkgconfig update-alternatives | ||
14 | |||
15 | FILES_${PN} = "${bindir}/* \ | ||
16 | ${datadir}/matchbox \ | ||
17 | ${sysconfdir}/matchbox \ | ||
18 | ${datadir}/themes/blondie/matchbox \ | ||
19 | ${datadir}/themes/Default/matchbox \ | ||
20 | ${datadir}/themes/MBOpus/matchbox" | ||
21 | |||
22 | ALTERNATIVE_NAME = "x-session-manager" | ||
23 | ALTERNATIVE_LINK = "${bindir}/x-session-manager" | ||
24 | ALTERNATIVE_PATH = "${bindir}/matchbox-session" | ||
25 | ALTERNATIVE_PRIORITY = "10" | ||
26 | |||
27 | EXTRA_OECONF = " --enable-startup-notification --disable-xrm" | ||
28 | |||
29 | do_install_prepend() { | ||
30 | install ${WORKDIR}/kbdconfig ${S}/data/kbdconfig | ||
31 | } | ||
32 | |||
diff --git a/meta/recipes-graphics/matchbox-wm/matchbox-wm_1.1.bb b/meta/recipes-graphics/matchbox-wm/matchbox-wm_1.1.bb new file mode 100644 index 0000000000..ebed31e2a5 --- /dev/null +++ b/meta/recipes-graphics/matchbox-wm/matchbox-wm_1.1.bb | |||
@@ -0,0 +1,37 @@ | |||
1 | SECTION = "x11/wm" | ||
2 | DESCRIPTION = "Matchbox window manager" | ||
3 | LICENSE = "GPL" | ||
4 | DEPENDS = "libmatchbox virtual/libx11 libxext libxcomposite libxfixes xdamage libxrender startup-notification expat" | ||
5 | PR="r4" | ||
6 | |||
7 | |||
8 | SRC_URI = "http://projects.o-hand.com/matchbox/sources/matchbox-window-manager/1.1/matchbox-window-manager-${PV}.tar.gz \ | ||
9 | file://kbdconfig \ | ||
10 | file://gconf-2.m4" | ||
11 | |||
12 | S = "${WORKDIR}/matchbox-window-manager-${PV}" | ||
13 | |||
14 | inherit autotools pkgconfig update-alternatives | ||
15 | |||
16 | FILES_${PN} = "${bindir}/* \ | ||
17 | ${datadir}/matchbox \ | ||
18 | ${sysconfdir}/matchbox \ | ||
19 | ${datadir}/themes/blondie/matchbox \ | ||
20 | ${datadir}/themes/Default/matchbox \ | ||
21 | ${datadir}/themes/MBOpus/matchbox" | ||
22 | |||
23 | ALTERNATIVE_NAME = "x-session-manager" | ||
24 | ALTERNATIVE_LINK = "${bindir}/x-session-manager" | ||
25 | ALTERNATIVE_PATH = "${bindir}/matchbox-session" | ||
26 | ALTERNATIVE_PRIORITY = "10" | ||
27 | |||
28 | EXTRA_OECONF = " --enable-startup-notification --disable-xrm" | ||
29 | |||
30 | do_configure_prepend () { | ||
31 | cp ${WORKDIR}/gconf-2.m4 ${S}/ | ||
32 | } | ||
33 | |||
34 | do_install_prepend() { | ||
35 | install ${WORKDIR}/kbdconfig ${S}/data/kbdconfig | ||
36 | } | ||
37 | |||
diff --git a/meta/recipes-graphics/matchbox-wm/matchbox-wm_1.2.bb b/meta/recipes-graphics/matchbox-wm/matchbox-wm_1.2.bb new file mode 100644 index 0000000000..f68eb2b4ae --- /dev/null +++ b/meta/recipes-graphics/matchbox-wm/matchbox-wm_1.2.bb | |||
@@ -0,0 +1,41 @@ | |||
1 | SECTION = "x11/wm" | ||
2 | DESCRIPTION = "Matchbox window manager" | ||
3 | LICENSE = "GPL" | ||
4 | DEPENDS = "libmatchbox virtual/libx11 libxext libxcomposite libxfixes xdamage libxrender startup-notification expat" | ||
5 | PR = "r4" | ||
6 | |||
7 | SRC_URI = "http://matchbox-project.org/sources/matchbox-window-manager/1.2/matchbox-window-manager-${PV}.tar.bz2 \ | ||
8 | file://configure_fix.patch;patch=1 \ | ||
9 | file://kbdconfig \ | ||
10 | file://gconf-2.m4" | ||
11 | |||
12 | S = "${WORKDIR}/matchbox-window-manager-${PV}" | ||
13 | |||
14 | inherit autotools pkgconfig update-alternatives | ||
15 | |||
16 | FILES_${PN} = "${bindir}/* \ | ||
17 | ${datadir}/matchbox \ | ||
18 | ${sysconfdir}/matchbox \ | ||
19 | ${datadir}/themes/blondie/matchbox \ | ||
20 | ${datadir}/themes/Default/matchbox \ | ||
21 | ${datadir}/themes/MBOpus/matchbox" | ||
22 | |||
23 | ALTERNATIVE_NAME = "x-session-manager" | ||
24 | ALTERNATIVE_LINK = "${bindir}/x-session-manager" | ||
25 | ALTERNATIVE_PATH = "${bindir}/matchbox-session" | ||
26 | ALTERNATIVE_PRIORITY = "10" | ||
27 | |||
28 | EXTRA_OECONF = " --enable-startup-notification \ | ||
29 | --disable-xrm \ | ||
30 | --enable-expat \ | ||
31 | --with-expat-lib=${STAGING_LIBDIR} \ | ||
32 | --with-expat-includes=${STAGING_INCDIR}" | ||
33 | |||
34 | |||
35 | do_configure_prepend () { | ||
36 | cp ${WORKDIR}/gconf-2.m4 ${S}/ | ||
37 | } | ||
38 | |||
39 | do_install_prepend() { | ||
40 | install ${WORKDIR}/kbdconfig ${S}/data/kbdconfig | ||
41 | } | ||
diff --git a/meta/recipes-graphics/matchbox-wm/matchbox-wm_svn.bb b/meta/recipes-graphics/matchbox-wm/matchbox-wm_svn.bb new file mode 100644 index 0000000000..09c0f70f47 --- /dev/null +++ b/meta/recipes-graphics/matchbox-wm/matchbox-wm_svn.bb | |||
@@ -0,0 +1,44 @@ | |||
1 | DESCRIPTION = "Matchbox window manager" | ||
2 | HOMEPAGE = "http://matchbox-project.org" | ||
3 | BUGTRACKER = "http://bugzilla.openedhand.com/" | ||
4 | |||
5 | LICENSE = "GPLv2+" | ||
6 | LIC_FILES_CHKSUM = "file://src/wm.h;endline=21;md5=a7e844465edbcf79c282369f93caa835 \ | ||
7 | file://src/main.c;endline=21;md5=3e5d9f832b527b0d72dbe8e3c4c60b95 \ | ||
8 | file://src/wm.c;endline=21;md5=8dc9d24477d87ef5dfbc2e4927146aab" | ||
9 | |||
10 | SECTION = "x11/wm" | ||
11 | DEPENDS = "libmatchbox virtual/libx11 libxext libxrender startup-notification expat gconf" | ||
12 | |||
13 | PV = "1.2+svnr${SRCREV}" | ||
14 | PR = "r4" | ||
15 | |||
16 | SRC_URI = "svn://svn.o-hand.com/repos/matchbox/trunk;module=matchbox-window-manager;proto=http \ | ||
17 | file://configure_fix.patch;patch=1;maxrev=1818 \ | ||
18 | file://kbdconfig" | ||
19 | |||
20 | S = "${WORKDIR}/matchbox-window-manager" | ||
21 | |||
22 | inherit autotools pkgconfig update-alternatives | ||
23 | |||
24 | ALTERNATIVE_NAME = "x-session-manager" | ||
25 | ALTERNATIVE_LINK = "${bindir}/x-session-manager" | ||
26 | ALTERNATIVE_PATH = "${bindir}/matchbox-session" | ||
27 | ALTERNATIVE_PRIORITY = "10" | ||
28 | |||
29 | FILES_${PN} = "${bindir}/* \ | ||
30 | ${datadir}/matchbox \ | ||
31 | ${sysconfdir}/matchbox \ | ||
32 | ${datadir}/themes/blondie/matchbox \ | ||
33 | ${datadir}/themes/Default/matchbox \ | ||
34 | ${datadir}/themes/MBOpus/matchbox" | ||
35 | |||
36 | EXTRA_OECONF = " --enable-startup-notification \ | ||
37 | --disable-xrm \ | ||
38 | --enable-expat \ | ||
39 | --with-expat-lib=${STAGING_LIBDIR} \ | ||
40 | --with-expat-includes=${STAGING_INCDIR}" | ||
41 | |||
42 | do_install_prepend() { | ||
43 | install ${WORKDIR}/kbdconfig ${S}/data/kbdconfig | ||
44 | } | ||
diff --git a/meta/recipes-graphics/menu-cache/menu-cache_0.3.2.bb b/meta/recipes-graphics/menu-cache/menu-cache_0.3.2.bb new file mode 100644 index 0000000000..90cc5716bb --- /dev/null +++ b/meta/recipes-graphics/menu-cache/menu-cache_0.3.2.bb | |||
@@ -0,0 +1,17 @@ | |||
1 | DESCRIPTION = "A library creating and utilizing caches to speed up freedesktop.org application menus" | ||
2 | HOMEPAGE = "http://lxde.sourceforge.net/" | ||
3 | BUGTRACKER = "" | ||
4 | |||
5 | LICENSE = "GPLv2 & GPLv2+" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | ||
7 | file://libmenu-cache/menu-cache.h;endline=29;md5=ca0101a419b3584963e0c45f2b6b55ef \ | ||
8 | file://menu-cache-daemon/menu-cached.c;endline=22;md5=fcecb7d315c57ef804103fa9cdab7111" | ||
9 | |||
10 | SECTION = "x11/libs" | ||
11 | DEPENDS = "glib-2.0" | ||
12 | |||
13 | SRC_URI = "${SOURCEFORGE_MIRROR}/lxde/menu-cache-${PV}.tar.gz" | ||
14 | |||
15 | PR = "r0" | ||
16 | |||
17 | inherit autotools pkgconfig | ||
diff --git a/meta/recipes-graphics/mesa/mesa-common.inc b/meta/recipes-graphics/mesa/mesa-common.inc new file mode 100644 index 0000000000..240f956b8a --- /dev/null +++ b/meta/recipes-graphics/mesa/mesa-common.inc | |||
@@ -0,0 +1,24 @@ | |||
1 | DESCRIPTION = "An open source implementation of the OpenGL spec" | ||
2 | HOMEPAGE = "http://mesa3d.org" | ||
3 | BUGTRACKER = "https://bugs.freedesktop.org" | ||
4 | SECTION = "x11" | ||
5 | LICENSE = "MIT" | ||
6 | |||
7 | SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/${PV}/MesaLib-${PV}.tar.bz2 \ | ||
8 | ftp://ftp.freedesktop.org/pub/mesa/${PV}/MesaDemos-${PV}.tar.bz2 " | ||
9 | |||
10 | S = "${WORKDIR}/Mesa-${PV}" | ||
11 | |||
12 | PROVIDES = "virtual/libgl" | ||
13 | |||
14 | inherit autotools pkgconfig | ||
15 | |||
16 | EXTRA_OECONF = "--disable-glu \ | ||
17 | --disable-glw \ | ||
18 | --disable-glut \ | ||
19 | --enable-glx-tls" | ||
20 | |||
21 | # Multiple virtual/gl providers being built breaks staging | ||
22 | EXCLUDE_FROM_WORLD = "1" | ||
23 | |||
24 | |||
diff --git a/meta/recipes-graphics/mesa/mesa-dri-glsl-native_7.8.2.bb b/meta/recipes-graphics/mesa/mesa-dri-glsl-native_7.8.2.bb new file mode 100644 index 0000000000..f6121c19a4 --- /dev/null +++ b/meta/recipes-graphics/mesa/mesa-dri-glsl-native_7.8.2.bb | |||
@@ -0,0 +1,24 @@ | |||
1 | DESCRIPTION = "gl shader language specific build from mesa-dri" | ||
2 | HOMEPAGE = "http://mesa3d.org" | ||
3 | BUGTRACKER = "https://bugs.freedesktop.org" | ||
4 | SECTION = "x11" | ||
5 | LICENSE = "MIT" | ||
6 | PR = "r0" | ||
7 | |||
8 | DEPENDS = "makedepend-native" | ||
9 | |||
10 | SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/${PV}/MesaLib-${PV}.tar.bz2" | ||
11 | |||
12 | S = "${WORKDIR}/Mesa-7.8.2/src/glsl/" | ||
13 | |||
14 | inherit native | ||
15 | |||
16 | # use default config for native build | ||
17 | do_configure_prepend() { | ||
18 | ln -s ${S}/../../configs/default ${S}/../../configs/current | ||
19 | } | ||
20 | |||
21 | do_install() { | ||
22 | install -d ${D}/${bindir} | ||
23 | install -m 755 ${S}/apps/compile ${D}/${bindir}/glsl-compile | ||
24 | } | ||
diff --git a/meta/recipes-graphics/mesa/mesa-dri/cross2.patch b/meta/recipes-graphics/mesa/mesa-dri/cross2.patch new file mode 100644 index 0000000000..d2147910ae --- /dev/null +++ b/meta/recipes-graphics/mesa/mesa-dri/cross2.patch | |||
@@ -0,0 +1,44 @@ | |||
1 | Index: git/configure.ac | ||
2 | =================================================================== | ||
3 | --- git.orig/configure.ac 2009-09-01 16:38:26.000000000 +0100 | ||
4 | +++ git/configure.ac 2009-09-01 16:38:47.000000000 +0100 | ||
5 | @@ -269,15 +269,6 @@ | ||
6 | GLAPI_ASM_SOURCES="" | ||
7 | AC_MSG_CHECKING([whether to enable assembly]) | ||
8 | test "x$enable_asm" = xno && AC_MSG_RESULT([no]) | ||
9 | -# disable if cross compiling on x86/x86_64 since we must run gen_matypes | ||
10 | -if test "x$enable_asm" = xyes && test "x$cross_compiling" = xyes; then | ||
11 | - case "$host_cpu" in | ||
12 | - i?86 | x86_64) | ||
13 | - enable_asm=no | ||
14 | - AC_MSG_RESULT([no, cross compiling]) | ||
15 | - ;; | ||
16 | - esac | ||
17 | -fi | ||
18 | # check for supported arches | ||
19 | if test "x$enable_asm" = xyes; then | ||
20 | case "$host_cpu" in | ||
21 | Index: git/src/mesa/x86/Makefile | ||
22 | =================================================================== | ||
23 | --- git.orig/src/mesa/x86/Makefile 2009-09-01 16:40:02.000000000 +0100 | ||
24 | +++ git/src/mesa/x86/Makefile 2009-09-01 16:40:13.000000000 +0100 | ||
25 | @@ -14,19 +14,6 @@ | ||
26 | -I../tnl | ||
27 | |||
28 | |||
29 | -default: gen_matypes matypes.h | ||
30 | - | ||
31 | -clean: | ||
32 | - -rm -f matypes.h gen_matypes | ||
33 | - | ||
34 | - | ||
35 | -gen_matypes: gen_matypes.c | ||
36 | - $(HOST_CC) $(ARCH_FLAGS) $(INCLUDE_DIRS) $(HOST_CFLAGS) gen_matypes.c -o gen_matypes | ||
37 | - | ||
38 | -# need some special rules here, unfortunately | ||
39 | -matypes.h: ../main/mtypes.h ../tnl/t_context.h gen_matypes | ||
40 | - ./gen_matypes > matypes.h | ||
41 | - | ||
42 | common_x86_asm.o: matypes.h | ||
43 | 3dnow_normal.o: matypes.h | ||
44 | 3dnow_xform1.o: matypes.h | ||
diff --git a/meta/recipes-graphics/mesa/mesa-dri/crossfix.patch b/meta/recipes-graphics/mesa/mesa-dri/crossfix.patch new file mode 100644 index 0000000000..84be428c4f --- /dev/null +++ b/meta/recipes-graphics/mesa/mesa-dri/crossfix.patch | |||
@@ -0,0 +1,16 @@ | |||
1 | Index: Mesa-7.5/bin/mklib | ||
2 | =================================================================== | ||
3 | --- Mesa-7.5.orig/bin/mklib 2009-08-12 13:01:34.000000000 +0100 | ||
4 | +++ Mesa-7.5/bin/mklib 2009-08-12 13:04:19.000000000 +0100 | ||
5 | @@ -234,9 +234,9 @@ | ||
6 | if [ "x$LINK" = "x" ] ; then | ||
7 | # -linker was not specified so set default link command now | ||
8 | if [ $CPLUSPLUS = 1 ] ; then | ||
9 | - LINK=g++ | ||
10 | + LINK=$CXX | ||
11 | else | ||
12 | - LINK=gcc | ||
13 | + LINK=$CC | ||
14 | fi | ||
15 | fi | ||
16 | |||
diff --git a/meta/recipes-graphics/mesa/mesa-dri/i586/matypes.h b/meta/recipes-graphics/mesa/mesa-dri/i586/matypes.h new file mode 100644 index 0000000000..98d2188e75 --- /dev/null +++ b/meta/recipes-graphics/mesa/mesa-dri/i586/matypes.h | |||
@@ -0,0 +1,162 @@ | |||
1 | /* | ||
2 | * This file is automatically generated from the Mesa internal type | ||
3 | * definitions. Do not edit directly. | ||
4 | */ | ||
5 | |||
6 | #ifndef __ASM_TYPES_H__ | ||
7 | #define __ASM_TYPES_H__ | ||
8 | |||
9 | |||
10 | |||
11 | /* ============================================================= | ||
12 | * Offsets for GLcontext | ||
13 | */ | ||
14 | |||
15 | #define CTX_DRIVER_CTX 996 | ||
16 | |||
17 | #define CTX_LIGHT_ENABLED 39404 | ||
18 | #define CTX_LIGHT_SHADE_MODEL 39408 | ||
19 | #define CTX_LIGHT_COLOR_MAT_FACE 39412 | ||
20 | #define CTX_LIGHT_COLOR_MAT_MODE 39416 | ||
21 | #define CTX_LIGHT_COLOR_MAT_MASK 39420 | ||
22 | #define CTX_LIGHT_COLOR_MAT_ENABLED 39424 | ||
23 | #define CTX_LIGHT_ENABLED_LIST 39432 | ||
24 | #define CTX_LIGHT_NEED_VERTS 43793 | ||
25 | #define CTX_LIGHT_FLAGS 43796 | ||
26 | #define CTX_LIGHT_BASE_COLOR 43800 | ||
27 | |||
28 | |||
29 | /* ============================================================= | ||
30 | * Offsets for struct vertex_buffer | ||
31 | */ | ||
32 | |||
33 | #define VB_SIZE 0 | ||
34 | #define VB_COUNT 4 | ||
35 | |||
36 | #define VB_ELTS 8 | ||
37 | #define VB_OBJ_PTR 12 | ||
38 | #define VB_EYE_PTR 16 | ||
39 | #define VB_CLIP_PTR 20 | ||
40 | #define VB_PROJ_CLIP_PTR 24 | ||
41 | #define VB_CLIP_OR_MASK 28 | ||
42 | #define VB_CLIP_MASK 32 | ||
43 | #define VB_NORMAL_PTR 36 | ||
44 | #define VB_EDGE_FLAG 44 | ||
45 | #define VB_TEX0_COORD_PTR 48 | ||
46 | #define VB_TEX1_COORD_PTR 52 | ||
47 | #define VB_TEX2_COORD_PTR 56 | ||
48 | #define VB_TEX3_COORD_PTR 60 | ||
49 | #define VB_INDEX_PTR 80 | ||
50 | #define VB_COLOR_PTR 88 | ||
51 | #define VB_SECONDARY_COLOR_PTR 96 | ||
52 | #define VB_FOG_COORD_PTR 104 | ||
53 | #define VB_PRIMITIVE 108 | ||
54 | |||
55 | |||
56 | /* | ||
57 | * Flags for struct vertex_buffer | ||
58 | */ | ||
59 | |||
60 | #define VERT_BIT_OBJ 0x1 | ||
61 | #define VERT_BIT_NORM 0x4 | ||
62 | #define VERT_BIT_RGBA 0x8 | ||
63 | #define VERT_BIT_SPEC_RGB 0x10 | ||
64 | #define VERT_BIT_FOG_COORD 0x20 | ||
65 | #define VERT_BIT_TEX0 0x100 | ||
66 | #define VERT_BIT_TEX1 0x200 | ||
67 | #define VERT_BIT_TEX2 0x400 | ||
68 | #define VERT_BIT_TEX3 0x800 | ||
69 | |||
70 | |||
71 | /* ============================================================= | ||
72 | * Offsets for GLvector4f | ||
73 | */ | ||
74 | |||
75 | #define V4F_DATA 0 | ||
76 | #define V4F_START 4 | ||
77 | #define V4F_COUNT 8 | ||
78 | #define V4F_STRIDE 12 | ||
79 | #define V4F_SIZE 16 | ||
80 | #define V4F_FLAGS 20 | ||
81 | |||
82 | /* | ||
83 | * Flags for GLvector4f | ||
84 | */ | ||
85 | |||
86 | #define VEC_MALLOC 0x10 | ||
87 | #define VEC_NOT_WRITEABLE 0x40 | ||
88 | #define VEC_BAD_STRIDE 0x100 | ||
89 | |||
90 | #define VEC_SIZE_1 0x1 | ||
91 | #define VEC_SIZE_2 0x3 | ||
92 | #define VEC_SIZE_3 0x7 | ||
93 | #define VEC_SIZE_4 0xf | ||
94 | |||
95 | |||
96 | /* ============================================================= | ||
97 | * Offsets for GLmatrix | ||
98 | */ | ||
99 | |||
100 | #define MATRIX_DATA 0 | ||
101 | #define MATRIX_INV 4 | ||
102 | #define MATRIX_FLAGS 8 | ||
103 | #define MATRIX_TYPE 12 | ||
104 | |||
105 | |||
106 | /* ============================================================= | ||
107 | * Offsets for struct gl_light | ||
108 | */ | ||
109 | |||
110 | #define LIGHT_NEXT 0 | ||
111 | #define LIGHT_PREV 4 | ||
112 | |||
113 | #define LIGHT_AMBIENT 8 | ||
114 | #define LIGHT_DIFFUSE 24 | ||
115 | #define LIGHT_SPECULAR 40 | ||
116 | #define LIGHT_EYE_POSITION 56 | ||
117 | #define LIGHT_SPOT_DIRECTION 72 | ||
118 | #define LIGHT_SPOT_EXPONENT 88 | ||
119 | #define LIGHT_SPOT_CUTOFF 92 | ||
120 | #define LIGHT_COS_CUTOFF 100 | ||
121 | #define LIGHT_CONST_ATTEN 104 | ||
122 | #define LIGHT_LINEAR_ATTEN 108 | ||
123 | #define LIGHT_QUADRATIC_ATTEN 112 | ||
124 | #define LIGHT_ENABLED 116 | ||
125 | |||
126 | #define LIGHT_FLAGS 120 | ||
127 | |||
128 | #define LIGHT_POSITION 124 | ||
129 | #define LIGHT_VP_INF_NORM 140 | ||
130 | #define LIGHT_H_INF_NORM 152 | ||
131 | #define LIGHT_NORM_DIRECTION 164 | ||
132 | #define LIGHT_VP_INF_SPOT_ATTEN 180 | ||
133 | |||
134 | #define LIGHT_SPOT_EXP_TABLE 184 | ||
135 | #define LIGHT_MAT_AMBIENT 4280 | ||
136 | #define LIGHT_MAT_DIFFUSE 4304 | ||
137 | #define LIGHT_MAT_SPECULAR 4328 | ||
138 | |||
139 | #define SIZEOF_GL_LIGHT 4360 | ||
140 | |||
141 | /* | ||
142 | * Flags for struct gl_light | ||
143 | */ | ||
144 | |||
145 | #define LIGHT_SPOT 0x1 | ||
146 | #define LIGHT_LOCAL_VIEWER 0x2 | ||
147 | #define LIGHT_POSITIONAL 0x4 | ||
148 | |||
149 | #define LIGHT_NEED_VERTICES 0x6 | ||
150 | |||
151 | |||
152 | /* ============================================================= | ||
153 | * Offsets for struct gl_lightmodel | ||
154 | */ | ||
155 | |||
156 | #define LIGHT_MODEL_AMBIENT 0 | ||
157 | #define LIGHT_MODEL_LOCAL_VIEWER 16 | ||
158 | #define LIGHT_MODEL_TWO_SIDE 17 | ||
159 | #define LIGHT_MODEL_COLOR_CONTROL 20 | ||
160 | |||
161 | |||
162 | #endif /* __ASM_TYPES_H__ */ | ||
diff --git a/meta/recipes-graphics/mesa/mesa-dri_7.5.bb b/meta/recipes-graphics/mesa/mesa-dri_7.5.bb new file mode 100644 index 0000000000..6e9cdc9aa8 --- /dev/null +++ b/meta/recipes-graphics/mesa/mesa-dri_7.5.bb | |||
@@ -0,0 +1,48 @@ | |||
1 | include mesa-common.inc | ||
2 | |||
3 | SRC_URI += "file://crossfix.patch;patch=1" | ||
4 | # file://mesa-DRI2Swapbuffer.patch;patch=1 | ||
5 | |||
6 | PROTO_DEPS = "xf86driproto glproto dri2proto" | ||
7 | LIB_DEPS = "libdrm virtual/libx11 libxext libxxf86vm libxdamage libxfixes expat" | ||
8 | |||
9 | DEPENDS = "${PROTO_DEPS} ${LIB_DEPS}" | ||
10 | |||
11 | PR = "r11" | ||
12 | |||
13 | # most of our targets do not have DRI so will use mesa-xlib | ||
14 | DEFAULT_PREFERENCE = "-1" | ||
15 | |||
16 | # Netbooks have DRI support so use mesa-dri by default | ||
17 | DEFAULT_PREFERENCE_netbook = "1" | ||
18 | |||
19 | PACKAGES =+ "${PN}-xprogs" | ||
20 | PACKAGES_DYNAMIC = "mesa-dri-driver-*" | ||
21 | |||
22 | FILES_${PN}-dbg += "${libdir}/dri/.debug/*" | ||
23 | FILES_${PN}-xprogs = "${bindir}/glxdemo ${bindir}/glxgears ${bindir}/glxheads ${bindir}/glxinfo" | ||
24 | |||
25 | LEAD_SONAME = "libGL.so.1" | ||
26 | |||
27 | EXTRA_OECONF += "--with-driver=dri --disable-egl --disable-gallium" | ||
28 | |||
29 | do_install_append () { | ||
30 | install -d ${D}/usr/bin | ||
31 | install -m 0755 ${S}/progs/xdemos/{glxdemo,glxgears,glxheads,glxinfo} ${D}/usr/bin/ | ||
32 | } | ||
33 | |||
34 | python populate_packages_prepend() { | ||
35 | import os.path | ||
36 | |||
37 | dri_drivers_root = os.path.join(bb.data.getVar('libdir', d, 1), "dri") | ||
38 | |||
39 | do_split_packages(d, dri_drivers_root, '^(.*)_dri\.so$', 'mesa-dri-driver-%s', 'Mesa %s DRI driver', extra_depends='') | ||
40 | } | ||
41 | |||
42 | COMPATIBLE_HOST = '(i.86.*-linux|x86_64.*-linux)' | ||
43 | |||
44 | |||
45 | # | ||
46 | # Header generated by i586-poky-linux-gcc gen_matypes.c -o gen_matypes -I ../../../include/GL -I ../../../include -I .. -I ../main/ -I ../math -I ../glapi/ -I ../tnl | ||
47 | # then run gen_matypes > matypes.h on device | ||
48 | # \ No newline at end of file | ||
diff --git a/meta/recipes-graphics/mesa/mesa-dri_7.7.bb b/meta/recipes-graphics/mesa/mesa-dri_7.7.bb new file mode 100644 index 0000000000..a5899f3892 --- /dev/null +++ b/meta/recipes-graphics/mesa/mesa-dri_7.7.bb | |||
@@ -0,0 +1,49 @@ | |||
1 | include mesa-common.inc | ||
2 | |||
3 | SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/7.7/MesaLib-${PV}.tar.bz2 \ | ||
4 | ftp://ftp.freedesktop.org/pub/mesa/7.7/MesaDemos-${PV}.tar.bz2 \ | ||
5 | file://crossfix.patch;patch=1" | ||
6 | |||
7 | PROTO_DEPS = "xf86driproto glproto dri2proto" | ||
8 | LIB_DEPS = "libdrm virtual/libx11 libxext libxxf86vm libxdamage libxfixes expat" | ||
9 | |||
10 | DEPENDS = "${PROTO_DEPS} ${LIB_DEPS}" | ||
11 | |||
12 | PR = "r11" | ||
13 | |||
14 | # most of our targets do not have DRI so will use mesa-xlib | ||
15 | DEFAULT_PREFERENCE = "-1" | ||
16 | |||
17 | # Netbooks have DRI support so use mesa-dri by default | ||
18 | DEFAULT_PREFERENCE_netbook = "1" | ||
19 | |||
20 | PACKAGES =+ "${PN}-xprogs" | ||
21 | PACKAGES_DYNAMIC = "mesa-dri-driver-*" | ||
22 | |||
23 | FILES_${PN}-dbg += "${libdir}/dri/.debug/*" | ||
24 | FILES_${PN}-xprogs = "${bindir}/glxdemo ${bindir}/glxgears ${bindir}/glxheads ${bindir}/glxinfo" | ||
25 | |||
26 | LEAD_SONAME = "libGL.so.1" | ||
27 | |||
28 | EXTRA_OECONF += "--with-driver=dri --disable-egl --disable-gallium" | ||
29 | |||
30 | do_install_append () { | ||
31 | install -d ${D}/usr/bin | ||
32 | install -m 0755 ${S}/progs/xdemos/{glxdemo,glxgears,glxheads,glxinfo} ${D}/usr/bin/ | ||
33 | } | ||
34 | |||
35 | python populate_packages_prepend() { | ||
36 | import os.path | ||
37 | |||
38 | dri_drivers_root = os.path.join(bb.data.getVar('libdir', d, 1), "dri") | ||
39 | |||
40 | do_split_packages(d, dri_drivers_root, '^(.*)_dri\.so$', 'mesa-dri-driver-%s', 'Mesa %s DRI driver', extra_depends='') | ||
41 | } | ||
42 | |||
43 | COMPATIBLE_HOST = '(i.86.*-linux|x86_64.*-linux)' | ||
44 | |||
45 | |||
46 | # | ||
47 | # Header generated by i586-poky-linux-gcc gen_matypes.c -o gen_matypes -I ../../../include/GL -I ../../../include -I .. -I ../main/ -I ../math -I ../glapi/ -I ../tnl | ||
48 | # then run gen_matypes > matypes.h on device | ||
49 | # \ No newline at end of file | ||
diff --git a/meta/recipes-graphics/mesa/mesa-dri_7.8.2.bb b/meta/recipes-graphics/mesa/mesa-dri_7.8.2.bb new file mode 100644 index 0000000000..ffd885f293 --- /dev/null +++ b/meta/recipes-graphics/mesa/mesa-dri_7.8.2.bb | |||
@@ -0,0 +1,53 @@ | |||
1 | include mesa-common.inc | ||
2 | |||
3 | LIC_FILES_CHKSUM = "file://docs/license.html;md5=7a3373c039b6b925c427755a4f779c1d" | ||
4 | |||
5 | PROTO_DEPS = "xf86driproto glproto dri2proto" | ||
6 | LIB_DEPS = "libdrm virtual/libx11 libxext libxxf86vm libxdamage libxfixes expat" | ||
7 | |||
8 | DEPENDS = "${PROTO_DEPS} ${LIB_DEPS} mesa-dri-glsl-native" | ||
9 | |||
10 | PR = "r1" | ||
11 | |||
12 | SRC_URI += "file://crossfix.patch" | ||
13 | |||
14 | # most of our targets do not have DRI so will use mesa-xlib | ||
15 | DEFAULT_PREFERENCE = "-1" | ||
16 | |||
17 | # Netbooks have DRI support so use mesa-dri by default | ||
18 | DEFAULT_PREFERENCE_netbook = "1" | ||
19 | |||
20 | LEAD_SONAME = "libGL.so.1" | ||
21 | |||
22 | EXTRA_OECONF += "--with-driver=dri --disable-egl --disable-gallium" | ||
23 | |||
24 | # We need glsl-compile built for buildhost arch instead of target (is provided by mesa-dri-glsl-native)" | ||
25 | do_configure_prepend() { | ||
26 | sed -i "s#^GLSL_CL = .*\$#GLSL_CL = ${STAGING_BINDIR_NATIVE}/glsl-compile#g" ${S}/src/mesa/shader/slang/library/Makefile | ||
27 | } | ||
28 | |||
29 | do_install_append () { | ||
30 | install -d ${D}/usr/bin | ||
31 | install -m 0755 ${S}/progs/xdemos/{glxdemo,glxgears,glxheads,glxinfo} ${D}/usr/bin/ | ||
32 | } | ||
33 | |||
34 | python populate_packages_prepend() { | ||
35 | import os.path | ||
36 | |||
37 | dri_drivers_root = os.path.join(bb.data.getVar('libdir', d, 1), "dri") | ||
38 | |||
39 | do_split_packages(d, dri_drivers_root, '^(.*)_dri\.so$', 'mesa-dri-driver-%s', 'Mesa %s DRI driver', extra_depends='') | ||
40 | } | ||
41 | |||
42 | COMPATIBLE_HOST = '(i.86.*-linux|x86_64.*-linux)' | ||
43 | |||
44 | PACKAGES =+ "${PN}-xprogs" | ||
45 | PACKAGES_DYNAMIC = "mesa-dri-driver-*" | ||
46 | |||
47 | FILES_${PN}-dbg += "${libdir}/dri/.debug/*" | ||
48 | FILES_${PN}-xprogs = "${bindir}/glxdemo ${bindir}/glxgears ${bindir}/glxheads ${bindir}/glxinfo" | ||
49 | |||
50 | # | ||
51 | # Header generated by i586-poky-linux-gcc gen_matypes.c -o gen_matypes -I ../../../include/GL -I ../../../include -I .. -I ../main/ -I ../math -I ../glapi/ -I ../tnl | ||
52 | # then run gen_matypes > matypes.h on device | ||
53 | # | ||
diff --git a/meta/recipes-graphics/mesa/mesa-dri_git.bb b/meta/recipes-graphics/mesa/mesa-dri_git.bb new file mode 100644 index 0000000000..fa0a7c8dc2 --- /dev/null +++ b/meta/recipes-graphics/mesa/mesa-dri_git.bb | |||
@@ -0,0 +1,59 @@ | |||
1 | include mesa-common.inc | ||
2 | |||
3 | SRC_URI = "git://anongit.freedesktop.org/git/mesa/mesa;protocol=git \ | ||
4 | file://cross2.patch;patch=1 \ | ||
5 | file://matypes.h" | ||
6 | # file://mesa-DRI2Swapbuffer.patch;patch=1 " | ||
7 | S = "${WORKDIR}/git" | ||
8 | |||
9 | PROTO_DEPS = "xf86driproto glproto dri2proto" | ||
10 | LIB_DEPS = "libdrm virtual/libx11 libxext libxxf86vm libxdamage libxfixes expat" | ||
11 | |||
12 | DEPENDS = "${PROTO_DEPS} ${LIB_DEPS}" | ||
13 | |||
14 | PV = "7.7+git${SRCPV}" | ||
15 | PR = "r0" | ||
16 | |||
17 | # most of our targets do not have DRI so will use mesa-xlib | ||
18 | DEFAULT_PREFERENCE = "-1" | ||
19 | |||
20 | # Netbooks have DRI support so use mesa-dri by default | ||
21 | DEFAULT_PREFERENCE_netbook = "1" | ||
22 | |||
23 | PACKAGES =+ "${PN}-xprogs" | ||
24 | PACKAGES_DYNAMIC = "mesa-dri-driver-*" | ||
25 | |||
26 | FILES_${PN}-dbg += "${libdir}/dri/.debug/*" | ||
27 | FILES_${PN}-xprogs = "${bindir}/glxdemo ${bindir}/glxgears ${bindir}/glxheads ${bindir}/glxinfo" | ||
28 | |||
29 | LEAD_SONAME = "libGL.so.1" | ||
30 | |||
31 | EXTRA_OECONF += "--with-driver=dri --disable-egl --disable-gallium" | ||
32 | |||
33 | do_configure_prepend () { | ||
34 | cp ${WORKDIR}/matypes.h ${S}/src/mesa/x86 | ||
35 | touch ${S}/src/mesa/x86/matypes.h | ||
36 | } | ||
37 | |||
38 | do_compile () { | ||
39 | oe_runmake clean | ||
40 | oe_runmake -C src/glsl CC='${BUILD_CC}' CFLAGS="" | ||
41 | mv ${S}/src/glsl/apps/compile ${S}/host_compile | ||
42 | oe_runmake clean | ||
43 | oe_runmake GLSL_CL="${S}/host_compile" | ||
44 | } | ||
45 | |||
46 | do_install_append () { | ||
47 | install -d ${D}/usr/bin | ||
48 | install -m 0755 ${S}/progs/xdemos/{glxdemo,glxgears,glxheads,glxinfo} ${D}/usr/bin/ | ||
49 | } | ||
50 | |||
51 | python populate_packages_prepend() { | ||
52 | import os.path | ||
53 | |||
54 | dri_drivers_root = os.path.join(bb.data.getVar('libdir', d, 1), "dri") | ||
55 | |||
56 | do_split_packages(d, dri_drivers_root, '^(.*)_dri\.so$', 'mesa-dri-driver-%s', 'Mesa %s DRI driver', extra_depends='') | ||
57 | } | ||
58 | |||
59 | COMPATIBLE_HOST = '(i.86|x86_64).*-linux' | ||
diff --git a/meta/recipes-graphics/mesa/mesa-xlib_7.8.2.bb b/meta/recipes-graphics/mesa/mesa-xlib_7.8.2.bb new file mode 100644 index 0000000000..093ad6ed7c --- /dev/null +++ b/meta/recipes-graphics/mesa/mesa-xlib_7.8.2.bb | |||
@@ -0,0 +1,22 @@ | |||
1 | include mesa-common.inc | ||
2 | |||
3 | LIC_FILES_CHKSUM = "file://docs/license.html;md5=7a3373c039b6b925c427755a4f779c1d" | ||
4 | |||
5 | PROTO_DEPS = "xf86driproto glproto" | ||
6 | LIB_DEPS = "virtual/libx11 libxext libxxf86vm libxdamage libxfixes" | ||
7 | |||
8 | DEPENDS = "${PROTO_DEPS} ${LIB_DEPS}" | ||
9 | |||
10 | PE = "1" | ||
11 | PR = "r0" | ||
12 | |||
13 | EXTRA_OECONF += "--with-driver=xlib" | ||
14 | |||
15 | do_install_append () { | ||
16 | install -d ${D}/${bindir} | ||
17 | install -m 0755 ${S}/progs/xdemos/{glxdemo,glxgears,glxheads,glxinfo} ${D}/${bindir} | ||
18 | } | ||
19 | |||
20 | PACKAGES =+ "${PN}-xprogs" | ||
21 | |||
22 | FILES_${PN}-xprogs = "${bindir}/glxdemo ${bindir}/glxgears ${bindir}/glxheads ${bindir}/glxinfo" | ||
diff --git a/meta/recipes-graphics/mesa/qemugl/versionfix.patch b/meta/recipes-graphics/mesa/qemugl/versionfix.patch new file mode 100644 index 0000000000..a3d33e8303 --- /dev/null +++ b/meta/recipes-graphics/mesa/qemugl/versionfix.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | Index: git/Makefile | ||
2 | =================================================================== | ||
3 | --- git.orig/Makefile 2009-01-19 23:37:36.000000000 +0000 | ||
4 | +++ git/Makefile 2009-06-09 20:30:37.000000000 +0100 | ||
5 | @@ -1,9 +1,9 @@ | ||
6 | GL_CFLAGS := -Wall -g -O2 -fno-strict-aliasing | ||
7 | |||
8 | -all: libGL.so | ||
9 | +all: libGL.so.1.2 | ||
10 | |||
11 | -libGL.so: client_stub.c opengl_client.c glgetv_cst.h opengl_func.h opengl_utils.h opengl_client_xfonts.c mesa_gl.h mesa_glext.h mesa_glx.h mesa_glxext.h | ||
12 | - $(CC) -fPIC $(GL_CFLAGS) opengl_client.c -shared -o libGL.so -lX11 -lXfixes -lm -L$(D)/usr/X11R6/lib -lpthread -I. | ||
13 | +libGL.so.1.2: client_stub.c opengl_client.c glgetv_cst.h opengl_func.h opengl_utils.h opengl_client_xfonts.c mesa_gl.h mesa_glext.h mesa_glx.h mesa_glxext.h | ||
14 | + $(CC) -fPIC $(GL_CFLAGS) opengl_client.c -shared -o libGL.so.1.2 -lX11 -lXfixes -lm -L$(D)/usr/X11R6/lib -lpthread -I. | ||
15 | |||
16 | opengl_func.h: gl_func.h | ||
17 | |||
18 | Index: git/opengl_client.c | ||
19 | =================================================================== | ||
20 | --- git.orig/opengl_client.c 2009-06-09 21:07:15.000000000 +0100 | ||
21 | +++ git/opengl_client.c 2009-06-09 21:07:33.000000000 +0100 | ||
22 | @@ -11578,7 +11578,7 @@ | ||
23 | tab_assoc = calloc(tabSize, sizeof(AssocProcAdress)); | ||
24 | |||
25 | #ifndef WIN32 | ||
26 | - handle = dlopen(getenv("REAL_LIBGL") ? getenv("REAL_LIBGL") : "libGL.so" ,RTLD_LAZY); | ||
27 | + handle = dlopen(getenv("REAL_LIBGL") ? getenv("REAL_LIBGL") : "libGL.so.1.2" ,RTLD_LAZY); | ||
28 | if (!handle) { | ||
29 | log_gl("%s\n", dlerror()); | ||
30 | exit(1); | ||
diff --git a/meta/recipes-graphics/mesa/qemugl_git.bb b/meta/recipes-graphics/mesa/qemugl_git.bb new file mode 100644 index 0000000000..184c782722 --- /dev/null +++ b/meta/recipes-graphics/mesa/qemugl_git.bb | |||
@@ -0,0 +1,37 @@ | |||
1 | DESCRIPTION = "QEMU i386 OpenGL passtrough" | ||
2 | HOMEPAGE = "http://savannah.nongnu.org/projects/qemugl" | ||
3 | SECTION = "x11/drivers" | ||
4 | LICENSE = "GPL" | ||
5 | |||
6 | DEPENDS = "virtual/libx11 xproto glproto libxfixes" | ||
7 | |||
8 | COMPATIBLE_HOST = '(x86_64.*|i.86.*)-(linux|freebsd.*)' | ||
9 | |||
10 | SRC_URI = "git://git.o-hand.com/qemugl.git;protocol=git \ | ||
11 | file://versionfix.patch" | ||
12 | S = "${WORKDIR}/git" | ||
13 | |||
14 | PV = "0.0+git${SRCPV}" | ||
15 | PR = "r6" | ||
16 | |||
17 | DEFAULT_PREFERENCE = "-1" | ||
18 | |||
19 | do_install () { | ||
20 | install -d ${D}${libdir}/ | ||
21 | if [ "${PN}" != "qemugl-nativesdk" ]; then | ||
22 | install -m 0755 ${S}/libGL.so.1.2 ${D}${libdir}/libGL-qemu.so.1.2 | ||
23 | else | ||
24 | install -m 0755 ${S}/libGL.so.1.2 ${D}${libdir}/libGL.so.1.2 | ||
25 | ln -s libGL.so.1.2 ${D}${libdir}/libGL.so.1 | ||
26 | ln -s libGL.so.1 ${D}${libdir}/libGL.so | ||
27 | fi | ||
28 | } | ||
29 | |||
30 | pkg_postinst_${PN} () { | ||
31 | if [ "${PN}" != "qemugl-nativesdk" ]; then | ||
32 | rm -f $D${libdir}/libGL.so.1.2 | ||
33 | ln -s libGL-qemu.so.1.2 $D${libdir}/libGL.so.1.2 | ||
34 | fi | ||
35 | } | ||
36 | |||
37 | BBCLASSEXTEND = "nativesdk" | ||
diff --git a/meta/recipes-graphics/mutter/mutter.inc b/meta/recipes-graphics/mutter/mutter.inc new file mode 100644 index 0000000000..456348754f --- /dev/null +++ b/meta/recipes-graphics/mutter/mutter.inc | |||
@@ -0,0 +1,43 @@ | |||
1 | SECTION = "x11/wm" | ||
2 | DESCRIPTION = "Metacity is the boring window manager for the adult in you. Mutter is metacity + clutter." | ||
3 | LICENSE = "GPLv2" | ||
4 | DEPENDS = "startup-notification gtk+ gconf clutter-1.0 gdk-pixbuf-csource-native intltool glib-2.0-native" | ||
5 | # gobject-introspection | ||
6 | inherit gnome update-alternatives | ||
7 | |||
8 | ALTERNATIVE_NAME = "x-window-manager" | ||
9 | ALTERNATIVE_LINK = "${bindir}/x-window-manager" | ||
10 | ALTERNATIVE_PATH = "${bindir}/mutter" | ||
11 | ALTERNATIVE_PRIORITY = "11" | ||
12 | |||
13 | EXTRA_OECONF += "--disable-verbose \ | ||
14 | --disable-xinerama \ | ||
15 | --without-introspection \ | ||
16 | --with-clutter" | ||
17 | |||
18 | #RDEPENDS_${PN} = "zenity" | ||
19 | |||
20 | FILES_${PN} += "${datadir}/themes ${libdir}/mutter/plugins/*.so ${datadir}/gnome/wm-properties/" | ||
21 | FILES_${PN}-dbg += "${libdir}/mutter/plugins/.debug/*" | ||
22 | |||
23 | export CC_FOR_BUILD = "${BUILD_CC}" | ||
24 | export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS} -I${STAGING_INCDIR_NATIVE}/glib-2.0 -I${STAGING_INCDIR_NATIVE}/glib-2.0/include" | ||
25 | export LDFLAGS_FOR_BUILD = "${BUILD_LDFLAGS} -L${STAGING_LIBDIR_NATIVE} -lglib-2.0" | ||
26 | |||
27 | do_configure_prepend () { | ||
28 | echo "EXTRA_DIST=" > ${S}/gnome-doc-utils.make | ||
29 | } | ||
30 | |||
31 | pkg_postinst_${PN} () { | ||
32 | #!/bin/sh -e | ||
33 | if [ "x$D" != "x" ]; then | ||
34 | exit 1 | ||
35 | fi | ||
36 | |||
37 | . ${sysconfdir}/init.d/functions | ||
38 | |||
39 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type list --list-type string --set /apps/mutter/general/clutter_plugins '[default]' | ||
40 | |||
41 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type bool --set /apps/mutter/general/compositing_manager true | ||
42 | } | ||
43 | |||
diff --git a/meta/recipes-graphics/mutter/mutter/crosscompile.patch b/meta/recipes-graphics/mutter/mutter/crosscompile.patch new file mode 100644 index 0000000000..b27383b09a --- /dev/null +++ b/meta/recipes-graphics/mutter/mutter/crosscompile.patch | |||
@@ -0,0 +1,55 @@ | |||
1 | Index: git/configure.in | ||
2 | =================================================================== | ||
3 | --- git.orig/configure.in 2009-01-27 14:49:10.000000000 +0000 | ||
4 | +++ git/configure.in 2009-01-27 15:29:41.000000000 +0000 | ||
5 | @@ -46,6 +46,32 @@ | ||
6 | AC_LIBTOOL_WIN32_DLL | ||
7 | AM_PROG_LIBTOOL | ||
8 | |||
9 | +if test x"$CC_FOR_BUILD" = x; then | ||
10 | + if test x"$cross_compiling" = xyes; then | ||
11 | + AC_CHECK_PROGS(CC_FOR_BUILD, gcc cc) | ||
12 | + else | ||
13 | + CC_FOR_BUILD="$CC" | ||
14 | + fi | ||
15 | +fi | ||
16 | +AC_SUBST([CC_FOR_BUILD]) | ||
17 | +if test x"$CFLAGS_FOR_BUILD" = x; then | ||
18 | + if test x"$cross_compiling" = xyes; then | ||
19 | + AC_CHECK_PROGS(CFLAGS_FOR_BUILD, gcc cc) | ||
20 | + else | ||
21 | + CFLAGS_FOR_BUILD="$CFLAGS" | ||
22 | + fi | ||
23 | +fi | ||
24 | +AC_SUBST([CFLAGS_FOR_BUILD]) | ||
25 | +if test x"$LDFLAGS_FOR_BUILD" = x; then | ||
26 | + if test x"$cross_compiling" = xyes; then | ||
27 | + AC_CHECK_PROGS(LDFLAGS_FOR_BUILD, gcc cc) | ||
28 | + else | ||
29 | + LDFLAGS_FOR_BUILD="$LDFLAGS" | ||
30 | + fi | ||
31 | +fi | ||
32 | +AC_SUBST([LDFLAGS_FOR_BUILD]) | ||
33 | + | ||
34 | + | ||
35 | #### Integer sizes | ||
36 | |||
37 | AC_CHECK_SIZEOF(char) | ||
38 | Index: git/src/Makefile.am | ||
39 | =================================================================== | ||
40 | --- git.orig/src/Makefile.am 2009-01-27 15:25:31.000000000 +0000 | ||
41 | +++ git/src/Makefile.am 2009-01-27 15:39:54.000000000 +0000 | ||
42 | @@ -168,11 +168,9 @@ | ||
43 | metacity_dialog_SOURCES= \ | ||
44 | ui/metacity-dialog.c | ||
45 | |||
46 | -schema_bindings_SOURCES = \ | ||
47 | - core/schema-bindings.c \ | ||
48 | - metacity.schemas.in.in | ||
49 | +schema_bindings: | ||
50 | + @CC_FOR_BUILD@ core/schema-bindings.c -I./include -I ../ @CFLAGS_FOR_BUILD@ @LDFLAGS_FOR_BUILD@ -o schema_bindings | ||
51 | |||
52 | -schema_bindings_LDADD = @METACITY_LIBS@ | ||
53 | metacity.schemas.in: schema_bindings ${srcdir}/metacity.schemas.in.in | ||
54 | @echo Generating keybinding schemas... ${srcdir}/metacity.schemas.in.in | ||
55 | ${builddir}/schema_bindings ${srcdir}/metacity.schemas.in.in ${builddir}/metacity.schemas.in | ||
diff --git a/meta/recipes-graphics/mutter/mutter/fix_pkgconfig-7adb574bb3fa3880eb85dbc86e580cf3452d57c4.patch b/meta/recipes-graphics/mutter/mutter/fix_pkgconfig-7adb574bb3fa3880eb85dbc86e580cf3452d57c4.patch new file mode 100644 index 0000000000..3714383bc1 --- /dev/null +++ b/meta/recipes-graphics/mutter/mutter/fix_pkgconfig-7adb574bb3fa3880eb85dbc86e580cf3452d57c4.patch | |||
@@ -0,0 +1,10 @@ | |||
1 | Index: git/src/metacity-plugins.pc.in | ||
2 | =================================================================== | ||
3 | --- git.orig/src/metacity-plugins.pc.in 2008-12-17 22:42:19.000000000 +0000 | ||
4 | +++ git/src/metacity-plugins.pc.in 2008-12-17 22:42:25.000000000 +0000 | ||
5 | @@ -14,4 +14,4 @@ | ||
6 | Requires: @CLUTTER_PACKAGE@ | ||
7 | Version: @VERSION@ | ||
8 | Libs: @CLUTTER_LIBS@ | ||
9 | -Cflags: @CLUTTER_CFLAGS@ -DWITH_CLUTTER -I${includedir}/metacity-1/metacity-private -DMETACITY_MAJOR_VERSION=${metacity_major_version} -DMETACITY_MINOR_VERSION=${metacity_minor_version} -DMETACITY_MICRO_VERSION=${metacity_micro_version} -DMETACITY_CLUTTER_PLUGIN_API_VERSION=${metacity_clutter_plugin_api_version} -DMUTTER_PLUGIN_DIR=\"${mutterplugindir}\" | ||
10 | +Cflags: -DWITH_CLUTTER -I${includedir}/metacity-1/metacity-private -DMETACITY_MAJOR_VERSION=${metacity_major_version} -DMETACITY_MINOR_VERSION=${metacity_minor_version} -DMETACITY_MICRO_VERSION=${metacity_micro_version} -DMETACITY_CLUTTER_PLUGIN_API_VERSION=${metacity_clutter_plugin_api_version} -DMUTTER_PLUGIN_DIR=\"${mutterplugindir}\" | ||
diff --git a/meta/recipes-graphics/mutter/mutter/fix_pkgconfig.patch b/meta/recipes-graphics/mutter/mutter/fix_pkgconfig.patch new file mode 100644 index 0000000000..5ac5ecc609 --- /dev/null +++ b/meta/recipes-graphics/mutter/mutter/fix_pkgconfig.patch | |||
@@ -0,0 +1,10 @@ | |||
1 | Index: git/src/mutter-plugins.pc.in | ||
2 | =================================================================== | ||
3 | --- git.orig/src/mutter-plugins.pc.in 2009-07-03 17:30:39.000000000 +0100 | ||
4 | +++ git/src/mutter-plugins.pc.in 2009-07-03 18:03:09.000000000 +0100 | ||
5 | @@ -14,4 +14,4 @@ | ||
6 | Requires: @CLUTTER_PACKAGE@ | ||
7 | Version: @VERSION@ | ||
8 | Libs: @CLUTTER_LIBS@ | ||
9 | -Cflags: @CLUTTER_CFLAGS@ -DWITH_CLUTTER -I${includedir}/mutter/mutter-private -DMUTTER_MAJOR_VERSION=${mutter_major_version} -DMUTTER_MINOR_VERSION=${mutter_minor_version} -DMUTTER_MICRO_VERSION=${mutter_micro_version} -DMUTTER_PLUGIN_API_VERSION=${mutter_plugin_api_version} -DMUTTER_PLUGIN_DIR=\"${plugindir}\" | ||
10 | +Cflags: -DWITH_CLUTTER -I${includedir}/mutter/mutter-private -DMUTTER_MAJOR_VERSION=${mutter_major_version} -DMUTTER_MINOR_VERSION=${mutter_minor_version} -DMUTTER_MICRO_VERSION=${mutter_micro_version} -DMUTTER_PLUGIN_API_VERSION=${mutter_plugin_api_version} -DMUTTER_PLUGIN_DIR=\"${plugindir}\" | ||
diff --git a/meta/recipes-graphics/mutter/mutter/nodocs.patch b/meta/recipes-graphics/mutter/mutter/nodocs.patch new file mode 100644 index 0000000000..98f43be5e8 --- /dev/null +++ b/meta/recipes-graphics/mutter/mutter/nodocs.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | Index: git/Makefile.am | ||
2 | =================================================================== | ||
3 | --- git.orig/Makefile.am 2009-01-27 13:26:12.000000000 +0000 | ||
4 | +++ git/Makefile.am 2009-01-27 14:07:13.000000000 +0000 | ||
5 | @@ -1,5 +1,5 @@ | ||
6 | |||
7 | -SUBDIRS=src po doc | ||
8 | +SUBDIRS=src po | ||
9 | |||
10 | EXTRA_DIST = HACKING MAINTAINERS rationales.txt \ | ||
11 | intltool-extract.in intltool-merge.in intltool-update.in | ||
12 | Index: git/configure.in | ||
13 | =================================================================== | ||
14 | --- git.orig/configure.in 2009-01-27 13:26:12.000000000 +0000 | ||
15 | +++ git/configure.in 2009-01-27 14:11:16.000000000 +0000 | ||
16 | @@ -538,12 +538,9 @@ | ||
17 | |||
18 | # Warnings are there for a reason | ||
19 | if test "x$GCC" = "xyes"; then | ||
20 | - CFLAGS="$CFLAGS -Wall -Werror -ansi" | ||
21 | + CFLAGS="$CFLAGS -Wall -ansi" | ||
22 | fi | ||
23 | |||
24 | -# Use gnome-doc-utils: | ||
25 | -GNOME_DOC_INIT([0.8.0]) | ||
26 | - | ||
27 | AC_CONFIG_FILES([ | ||
28 | Makefile | ||
29 | doc/Makefile | ||
diff --git a/meta/recipes-graphics/mutter/mutter/nozenity.patch b/meta/recipes-graphics/mutter/mutter/nozenity.patch new file mode 100644 index 0000000000..06f5909533 --- /dev/null +++ b/meta/recipes-graphics/mutter/mutter/nozenity.patch | |||
@@ -0,0 +1,16 @@ | |||
1 | Index: git/configure.in | ||
2 | =================================================================== | ||
3 | --- git.orig/configure.in 2009-06-16 13:12:17.000000000 +0100 | ||
4 | +++ git/configure.in 2009-06-16 13:12:33.000000000 +0100 | ||
5 | @@ -575,11 +575,6 @@ | ||
6 | GCONF_SCHEMAS_INSTALL_FALSE= | ||
7 | fi | ||
8 | |||
9 | -AC_PATH_PROG(ZENITY, zenity, no) | ||
10 | -if test x"$ZENITY" = xno; then | ||
11 | - AC_MSG_ERROR([zenity not found in your path - needed for dialogs]) | ||
12 | -fi | ||
13 | - | ||
14 | AC_ARG_ENABLE(debug, | ||
15 | [ --enable-debug enable debugging],, | ||
16 | enable_debug=no) | ||
diff --git a/meta/recipes-graphics/mutter/mutter_2.28.1.bb b/meta/recipes-graphics/mutter/mutter_2.28.1.bb new file mode 100644 index 0000000000..c4b8107899 --- /dev/null +++ b/meta/recipes-graphics/mutter/mutter_2.28.1.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | require mutter.inc | ||
2 | |||
3 | SRC_URI = "http://download.moblin.org/sources/mutter/2.28/mutter-2.28.1_0.0.tar.bz2 \ | ||
4 | file://nodocs.patch;patch=1 \ | ||
5 | file://nozenity.patch;patch=1 \ | ||
6 | file://fix_pkgconfig.patch;patch=1 \ | ||
7 | " | ||
8 | |||
9 | S = "${WORKDIR}/mutter-2.28.1_0.0" \ No newline at end of file | ||
diff --git a/meta/recipes-graphics/mutter/mutter_git.bb b/meta/recipes-graphics/mutter/mutter_git.bb new file mode 100644 index 0000000000..b41bf1e505 --- /dev/null +++ b/meta/recipes-graphics/mutter/mutter_git.bb | |||
@@ -0,0 +1,17 @@ | |||
1 | require mutter.inc | ||
2 | |||
3 | PV = "2.28.1+git${SRCPV}" | ||
4 | PR = "r18" | ||
5 | |||
6 | # Gnome is the upstream but moblin is under more active development atm | ||
7 | # git://git.gnome.org/mutter.git;protocol=git;branch=master | ||
8 | # | ||
9 | SRC_URI = "git://git.moblin.org/mutter.git;protocol=git;branch=master \ | ||
10 | file://nodocs.patch;patch=1 \ | ||
11 | file://nozenity.patch;patch=1 \ | ||
12 | file://crosscompile.patch;patch=1;rev=7adb574bb3fa3880eb85dbc86e580cf3452d57c4 \ | ||
13 | file://fix_pkgconfig-7adb574bb3fa3880eb85dbc86e580cf3452d57c4.patch;patch=1;rev=7adb574bb3fa3880eb85dbc86e580cf3452d57c4 \ | ||
14 | file://fix_pkgconfig.patch;patch=1;notrev=7adb574bb3fa3880eb85dbc86e580cf3452d57c4 \ | ||
15 | " | ||
16 | S = "${WORKDIR}/git" | ||
17 | |||
diff --git a/meta/recipes-graphics/pango/pango-1.28.0/no-tests.patch b/meta/recipes-graphics/pango/pango-1.28.0/no-tests.patch new file mode 100644 index 0000000000..4a74d8c4d6 --- /dev/null +++ b/meta/recipes-graphics/pango/pango-1.28.0/no-tests.patch | |||
@@ -0,0 +1,12 @@ | |||
1 | Index: pango-1.22.2/Makefile.am | ||
2 | =================================================================== | ||
3 | --- pango-1.22.2.orig/Makefile.am | ||
4 | +++ pango-1.22.2/Makefile.am | ||
5 | @@ -1,6 +1,6 @@ | ||
6 | ## Process this file with automake to create Makefile.in. | ||
7 | |||
8 | -SUBDIRS= pango modules pango-view examples docs tools tests | ||
9 | +SUBDIRS= pango modules pango-view examples docs tools | ||
10 | |||
11 | EXTRA_DIST = \ | ||
12 | autogen.sh \ | ||
diff --git a/meta/recipes-graphics/pango/pango.inc b/meta/recipes-graphics/pango/pango.inc new file mode 100644 index 0000000000..fa22fa578e --- /dev/null +++ b/meta/recipes-graphics/pango/pango.inc | |||
@@ -0,0 +1,46 @@ | |||
1 | DESCRIPTION = "The goal of the Pango project is to provide an \ | ||
2 | Open Source framework for the layout and rendering of \ | ||
3 | internationalized text." | ||
4 | HOMEPAGE = "http://www.pango.org/" | ||
5 | BUGTRACKER = "http://bugzilla.gnome.org" | ||
6 | SECTION = "x11/libs" | ||
7 | LICENSE = "LGPL" | ||
8 | |||
9 | DEPENDS = "glib-2.0 fontconfig freetype zlib virtual/libiconv virtual/libx11 libxft gtk-doc-native cairo" | ||
10 | |||
11 | PACKAGES_DYNAMIC = "pango-module-*" | ||
12 | |||
13 | RRECOMMENDS_${PN} = "pango-module-basic-x pango-module-basic-fc" | ||
14 | |||
15 | inherit gnome | ||
16 | |||
17 | EXTRA_AUTORECONF = "" | ||
18 | |||
19 | # seems to go wrong with default cflags | ||
20 | FULL_OPTIMIZATION_arm = "-O2" | ||
21 | |||
22 | EXTRA_OECONF = "--disable-glibtest \ | ||
23 | --enable-explicit-deps=no \ | ||
24 | --disable-debug" | ||
25 | |||
26 | LEAD_SONAME = "libpango-1.0*" | ||
27 | LIBV = "1.6.0" | ||
28 | |||
29 | postinst_prologue() { | ||
30 | if [ "x$D" != "x" ]; then | ||
31 | exit 1 | ||
32 | fi | ||
33 | |||
34 | } | ||
35 | |||
36 | python populate_packages_prepend () { | ||
37 | prologue = bb.data.getVar("postinst_prologue", d, 1) | ||
38 | |||
39 | modules_root = bb.data.expand('${libdir}/pango/${LIBV}/modules', d) | ||
40 | |||
41 | do_split_packages(d, modules_root, '^pango-(.*)\.so$', 'pango-module-%s', 'Pango module %s', prologue + 'pango-querymodules > /etc/pango/pango.modules') | ||
42 | } | ||
43 | |||
44 | FILES_${PN} = "/etc ${bindir}/* ${libdir}/libpango*${SOLIBS}" | ||
45 | FILES_${PN}-dbg += "${libdir}/pango/${LIBV}/modules/.debug" | ||
46 | FILES_${PN}-dev += "${libdir}/pango/${LIBV}/modules/*.la" | ||
diff --git a/meta/recipes-graphics/pango/pango_1.28.0.bb b/meta/recipes-graphics/pango/pango_1.28.0.bb new file mode 100644 index 0000000000..ae914ffc53 --- /dev/null +++ b/meta/recipes-graphics/pango/pango_1.28.0.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | require pango.inc | ||
2 | |||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7" | ||
4 | |||
5 | PR = "r0" | ||
6 | |||
7 | SRC_URI += "file://no-tests.patch" | ||
8 | |||
9 | PARALLEL_MAKE = "" | ||
diff --git a/meta/recipes-graphics/startup-notification/startup-notification_0.10.bb b/meta/recipes-graphics/startup-notification/startup-notification_0.10.bb new file mode 100644 index 0000000000..8b349821f5 --- /dev/null +++ b/meta/recipes-graphics/startup-notification/startup-notification_0.10.bb | |||
@@ -0,0 +1,23 @@ | |||
1 | DESCRIPTION = "Startup-notification contains a reference implementation of the startup notification protocol." | ||
2 | HOMEPAGE = "http://www.freedesktop.org/wiki/software/startup-notification/" | ||
3 | BUGTRACKER = "https://bugs.freedesktop.org/enter_bug.cgi?product=Specifications" | ||
4 | |||
5 | # most files are under MIT, but libsn/sn-util.c is under LGPL, the | ||
6 | # effective license is LGPL | ||
7 | LICENSE = "LGPLv2+" | ||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=a2ae2cd47d6d2f238410f5364dfbc0f2 \ | ||
9 | file://libsn/sn-util.c;endline=18;md5=18a14dc1825d38e741d772311fea9ee1 \ | ||
10 | file://libsn/sn-common.h;endline=23;md5=6d05bc0ebdcf5513a6e77cb26e8cd7e2 \ | ||
11 | file://test/test-boilerplate.h;endline=23;md5=923e706b2a70586176eead261cc5bb98" | ||
12 | |||
13 | PR = "r0" | ||
14 | |||
15 | SECTION = "libs" | ||
16 | |||
17 | PRIORITY = "optional" | ||
18 | |||
19 | DEPENDS = "virtual/libx11 libsm xcb-util" | ||
20 | |||
21 | inherit autotools pkgconfig | ||
22 | |||
23 | SRC_URI = "http://www.freedesktop.org/software/startup-notification/releases/${PN}-${PV}.tar.gz" | ||
diff --git a/meta/recipes-graphics/tslib/tslib/a780/tslib.sh b/meta/recipes-graphics/tslib/tslib/a780/tslib.sh new file mode 100644 index 0000000000..51cd0f1f36 --- /dev/null +++ b/meta/recipes-graphics/tslib/tslib/a780/tslib.sh | |||
@@ -0,0 +1,6 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | TSLIB_TSDEVICE=/dev/input/event1 | ||
4 | TSLIB_CONFFILE=/etc/ts.conf | ||
5 | |||
6 | export TSLIB_TSDEVICE TSLIB_CONFFILE | ||
diff --git a/meta/recipes-graphics/tslib/tslib/collie/ts.conf b/meta/recipes-graphics/tslib/tslib/collie/ts.conf new file mode 100644 index 0000000000..2099b9b414 --- /dev/null +++ b/meta/recipes-graphics/tslib/tslib/collie/ts.conf | |||
@@ -0,0 +1,5 @@ | |||
1 | module_raw collie | ||
2 | module pthres pmin=1 | ||
3 | module variance delta=30 | ||
4 | module dejitter delta=100 | ||
5 | module linear | ||
diff --git a/meta/recipes-graphics/tslib/tslib/collie/tslib.sh b/meta/recipes-graphics/tslib/tslib/collie/tslib.sh new file mode 100644 index 0000000000..664bda426a --- /dev/null +++ b/meta/recipes-graphics/tslib/tslib/collie/tslib.sh | |||
@@ -0,0 +1,13 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | TSLIB_TSDEVICE=/dev/input/touchscreen0 | ||
4 | TSLIB_CONFFILE=/etc/ts.conf | ||
5 | |||
6 | case `uname -r` in | ||
7 | 2.4*) | ||
8 | TSLIB_TSDEVICE=/dev/ts | ||
9 | TSLIB_CONFFILE=/usr/share/tslib/ts.conf-collie-2.4 | ||
10 | ;; | ||
11 | esac | ||
12 | |||
13 | export TSLIB_TSDEVICE TSLIB_CONFFILE | ||
diff --git a/meta/recipes-graphics/tslib/tslib/devfs.patch b/meta/recipes-graphics/tslib/tslib/devfs.patch new file mode 100644 index 0000000000..d7ef0a9589 --- /dev/null +++ b/meta/recipes-graphics/tslib/tslib/devfs.patch | |||
@@ -0,0 +1,18 @@ | |||
1 | |||
2 | # | ||
3 | # Patch managed by http://www.holgerschurig.de/patcher.html | ||
4 | # | ||
5 | |||
6 | --- tslib/tests/fbutils.c~devfs.patch | ||
7 | +++ tslib/tests/fbutils.c | ||
8 | @@ -44,8 +44,8 @@ | ||
9 | static unsigned colormap [256]; | ||
10 | int xres, yres; | ||
11 | |||
12 | -static char *defaultfbdevice = "/dev/fb0"; | ||
13 | -static char *defaultconsoledevice = "/dev/tty"; | ||
14 | +static char *defaultfbdevice = "/dev/fb/0"; | ||
15 | +static char *defaultconsoledevice = "/dev/vc/"; | ||
16 | static char *fbdevice = NULL; | ||
17 | static char *consoledevice = NULL; | ||
18 | |||
diff --git a/meta/recipes-graphics/tslib/tslib/e680/tslib.sh b/meta/recipes-graphics/tslib/tslib/e680/tslib.sh new file mode 100644 index 0000000000..51cd0f1f36 --- /dev/null +++ b/meta/recipes-graphics/tslib/tslib/e680/tslib.sh | |||
@@ -0,0 +1,6 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | TSLIB_TSDEVICE=/dev/input/event1 | ||
4 | TSLIB_CONFFILE=/etc/ts.conf | ||
5 | |||
6 | export TSLIB_TSDEVICE TSLIB_CONFFILE | ||
diff --git a/meta/recipes-graphics/tslib/tslib/event1.patch b/meta/recipes-graphics/tslib/tslib/event1.patch new file mode 100644 index 0000000000..88cc3f3a2a --- /dev/null +++ b/meta/recipes-graphics/tslib/tslib/event1.patch | |||
@@ -0,0 +1,80 @@ | |||
1 | |||
2 | # | ||
3 | # Patch managed by http://www.holgerschurig.de/patcher.html | ||
4 | # | ||
5 | |||
6 | --- tslib/tests/ts_calibrate.c~event1 | ||
7 | +++ tslib/tests/ts_calibrate.c | ||
8 | @@ -179,11 +179,7 @@ | ||
9 | if( (tsdevice = getenv("TSLIB_TSDEVICE")) != NULL ) { | ||
10 | ts = ts_open(tsdevice,0); | ||
11 | } else { | ||
12 | -#ifdef USE_INPUT_API | ||
13 | - ts = ts_open("/dev/input/event0", 0); | ||
14 | -#else | ||
15 | - ts = ts_open("/dev/touchscreen/ucb1x00", 0); | ||
16 | -#endif /* USE_INPUT_API */ | ||
17 | + ts = ts_open("/dev/input/event1", 0); | ||
18 | } | ||
19 | |||
20 | if (!ts) { | ||
21 | --- tslib/tests/ts_print.c~event1 | ||
22 | +++ tslib/tests/ts_print.c | ||
23 | @@ -28,11 +28,7 @@ | ||
24 | if( (tsdevice = getenv("TSLIB_TSDEVICE")) != NULL ) { | ||
25 | ts = ts_open(tsdevice,0); | ||
26 | } else { | ||
27 | -#ifdef USE_INPUT_API | ||
28 | - ts = ts_open("/dev/input/event0", 0); | ||
29 | -#else | ||
30 | - ts = ts_open("/dev/touchscreen/ucb1x00", 0); | ||
31 | -#endif /* USE_INPUT_API */ | ||
32 | + ts = ts_open("/dev/input/event1", 0); | ||
33 | } | ||
34 | |||
35 | if (!ts) { | ||
36 | --- tslib/tests/ts_test.c~event1 | ||
37 | +++ tslib/tests/ts_test.c | ||
38 | @@ -120,11 +120,7 @@ | ||
39 | signal(SIGTERM, sig); | ||
40 | |||
41 | if ((tsdevice = getenv("TSLIB_TSDEVICE")) == NULL) { | ||
42 | -#ifdef USE_INPUT_API | ||
43 | - tsdevice = strdup ("/dev/input/event0"); | ||
44 | -#else | ||
45 | - tsdevice = strdup ("/dev/touchscreen/ucb1x00"); | ||
46 | -#endif /* USE_INPUT_API */ | ||
47 | + tsdevice = strdup ("/dev/input/event1"); | ||
48 | } | ||
49 | |||
50 | ts = ts_open (tsdevice, 0); | ||
51 | --- tslib/tests/ts_print_raw.c~event1 | ||
52 | +++ tslib/tests/ts_print_raw.c | ||
53 | @@ -28,11 +28,7 @@ | ||
54 | if( (tsdevice = getenv("TSLIB_TSDEVICE")) != NULL ) { | ||
55 | ts = ts_open(tsdevice,0); | ||
56 | } else { | ||
57 | -#ifdef USE_INPUT_API | ||
58 | - ts = ts_open("/dev/input/event0", 0); | ||
59 | -#else | ||
60 | - ts = ts_open("/dev/touchscreen/ucb1x00", 0); | ||
61 | -#endif /* USE_INPUT_API */ | ||
62 | + ts = ts_open("/dev/input/event1", 0); | ||
63 | } | ||
64 | |||
65 | if (!ts) { | ||
66 | --- tslib/tests/ts_harvest.c~event1 | ||
67 | +++ tslib/tests/ts_harvest.c | ||
68 | @@ -75,11 +75,7 @@ | ||
69 | signal(SIGTERM, sig); | ||
70 | |||
71 | if ((tsdevice = getenv("TSLIB_TSDEVICE")) == NULL) { | ||
72 | -#ifdef USE_INPUT_API | ||
73 | - tsdevice = strdup ("/dev/input/event0"); | ||
74 | -#else | ||
75 | - tsdevice = strdup ("/dev/touchscreen/ucb1x00"); | ||
76 | -#endif /* USE_INPUT_API */ | ||
77 | + tsdevice = strdup ("/dev/input/event1"); | ||
78 | } | ||
79 | |||
80 | ts = ts_open (tsdevice, 0); | ||
diff --git a/meta/recipes-graphics/tslib/tslib/fix_version.patch b/meta/recipes-graphics/tslib/tslib/fix_version.patch new file mode 100644 index 0000000000..d6a0ebd0f3 --- /dev/null +++ b/meta/recipes-graphics/tslib/tslib/fix_version.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | --- | ||
2 | configure.ac | 10 +++++----- | ||
3 | 1 file changed, 5 insertions(+), 5 deletions(-) | ||
4 | |||
5 | Index: tslib-1.0/configure.ac | ||
6 | =================================================================== | ||
7 | --- tslib-1.0.orig/configure.ac 2006-08-24 22:02:55.000000000 +0100 | ||
8 | +++ tslib-1.0/configure.ac 2007-07-09 21:04:38.000000000 +0100 | ||
9 | @@ -2,7 +2,7 @@ | ||
10 | # Process this file with autoconf to produce a configure script. | ||
11 | |||
12 | AC_PREREQ(2.57) | ||
13 | -AC_INIT(tslib, 0.0.2, kergoth@handhelds.org) | ||
14 | +AC_INIT(tslib, 1.0.0, kergoth@handhelds.org) | ||
15 | # AC_CONFIG_AUX_DIR(config) | ||
16 | AM_INIT_AUTOMAKE(dist-bzip2) | ||
17 | AC_CONFIG_SRCDIR([src/ts_close.c]) | ||
18 | @@ -193,10 +193,10 @@ TS_CONF='${sysconfdir}/ts.conf' | ||
19 | AC_SUBST(TS_CONF) | ||
20 | |||
21 | # Library versioning | ||
22 | -LT_RELEASE=0.0 | ||
23 | -LT_CURRENT=1 | ||
24 | -LT_REVISION=1 | ||
25 | -LT_AGE=1 | ||
26 | +LT_RELEASE=1.0 | ||
27 | +LT_CURRENT=0 | ||
28 | +LT_REVISION=0 | ||
29 | +LT_AGE=0 | ||
30 | AC_SUBST(LT_RELEASE) | ||
31 | AC_SUBST(LT_CURRENT) | ||
32 | AC_SUBST(LT_REVISION) | ||
diff --git a/meta/recipes-graphics/tslib/tslib/jornada56x/ts.conf b/meta/recipes-graphics/tslib/tslib/jornada56x/ts.conf new file mode 100644 index 0000000000..20729b6154 --- /dev/null +++ b/meta/recipes-graphics/tslib/tslib/jornada56x/ts.conf | |||
@@ -0,0 +1,5 @@ | |||
1 | module_raw h3600 | ||
2 | module pthres pmin=1 | ||
3 | module variance delta=30 | ||
4 | module dejitter delta=100 | ||
5 | module linear | ||
diff --git a/meta/recipes-graphics/tslib/tslib/jornada56x/tslib.sh b/meta/recipes-graphics/tslib/tslib/jornada56x/tslib.sh new file mode 100644 index 0000000000..8f907b0755 --- /dev/null +++ b/meta/recipes-graphics/tslib/tslib/jornada56x/tslib.sh | |||
@@ -0,0 +1,5 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | TSLIB_TSDEVICE=/dev/input/tsraw0 | ||
4 | |||
5 | export TSLIB_TSDEVICE | ||
diff --git a/meta/recipes-graphics/tslib/tslib/jornada6xx/ts.conf b/meta/recipes-graphics/tslib/tslib/jornada6xx/ts.conf new file mode 100644 index 0000000000..20729b6154 --- /dev/null +++ b/meta/recipes-graphics/tslib/tslib/jornada6xx/ts.conf | |||
@@ -0,0 +1,5 @@ | |||
1 | module_raw h3600 | ||
2 | module pthres pmin=1 | ||
3 | module variance delta=30 | ||
4 | module dejitter delta=100 | ||
5 | module linear | ||
diff --git a/meta/recipes-graphics/tslib/tslib/jornada6xx/tslib.sh b/meta/recipes-graphics/tslib/tslib/jornada6xx/tslib.sh new file mode 100644 index 0000000000..1b5db781c1 --- /dev/null +++ b/meta/recipes-graphics/tslib/tslib/jornada6xx/tslib.sh | |||
@@ -0,0 +1,5 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | TSLIB_TSDEVICE=/dev/input/ts0 | ||
4 | |||
5 | export TSLIB_TSDEVICE | ||
diff --git a/meta/recipes-graphics/tslib/tslib/jornada7xx/ts.conf b/meta/recipes-graphics/tslib/tslib/jornada7xx/ts.conf new file mode 100644 index 0000000000..09309719f2 --- /dev/null +++ b/meta/recipes-graphics/tslib/tslib/jornada7xx/ts.conf | |||
@@ -0,0 +1,5 @@ | |||
1 | module_raw input | ||
2 | module pthres pmin=1 | ||
3 | module variance delta=30 | ||
4 | module dejitter delta=100 | ||
5 | module linear | ||
diff --git a/meta/recipes-graphics/tslib/tslib/jornada7xx/tslib.sh b/meta/recipes-graphics/tslib/tslib/jornada7xx/tslib.sh new file mode 100644 index 0000000000..040f4de3d5 --- /dev/null +++ b/meta/recipes-graphics/tslib/tslib/jornada7xx/tslib.sh | |||
@@ -0,0 +1,5 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | TSLIB_TSDEVICE=/dev/input/event1 | ||
4 | |||
5 | export TSLIB_TSDEVICE | ||
diff --git a/meta/recipes-graphics/tslib/tslib/mnci/ts.conf b/meta/recipes-graphics/tslib/tslib/mnci/ts.conf new file mode 100644 index 0000000000..adff17717b --- /dev/null +++ b/meta/recipes-graphics/tslib/tslib/mnci/ts.conf | |||
@@ -0,0 +1,5 @@ | |||
1 | module_raw input | ||
2 | module pthres pmin=600 | ||
3 | module variance delta=30 | ||
4 | module dejitter delta=100 | ||
5 | module linear | ||
diff --git a/meta/recipes-graphics/tslib/tslib/mnci/tslib.sh b/meta/recipes-graphics/tslib/tslib/mnci/tslib.sh new file mode 100644 index 0000000000..07928f226d --- /dev/null +++ b/meta/recipes-graphics/tslib/tslib/mnci/tslib.sh | |||
@@ -0,0 +1 @@ | |||
export TSLIB_TSDEVICE=/dev/input/event1 | |||
diff --git a/meta/recipes-graphics/tslib/tslib/multievent.patch b/meta/recipes-graphics/tslib/tslib/multievent.patch new file mode 100644 index 0000000000..854e7af5dd --- /dev/null +++ b/meta/recipes-graphics/tslib/tslib/multievent.patch | |||
@@ -0,0 +1,843 @@ | |||
1 | --- tslib/plugins/linear.c~multievent | ||
2 | +++ tslib/plugins/linear.c | ||
3 | @@ -39,14 +39,12 @@ | ||
4 | linear_read(struct tslib_module_info *info, struct ts_sample *samp, int nr) | ||
5 | { | ||
6 | struct tslib_linear *lin = (struct tslib_linear *)info; | ||
7 | - int ret; | ||
8 | + int ret, i = 0; | ||
9 | int xtemp,ytemp; | ||
10 | |||
11 | ret = info->next->ops->read(info->next, samp, nr); | ||
12 | if (ret >= 0) { | ||
13 | - int nr; | ||
14 | - | ||
15 | - for (nr = 0; nr < ret; nr++, samp++) { | ||
16 | + for (i = 0; i < ret; i++, samp++) { | ||
17 | #ifdef DEBUG | ||
18 | fprintf(stderr,"BEFORE CALIB--------------------> %d %d %d\n",samp->x, samp->y, samp->pressure); | ||
19 | #endif /*DEBUG*/ | ||
20 | @@ -66,6 +64,7 @@ | ||
21 | samp->y = tmp; | ||
22 | } | ||
23 | } | ||
24 | + ret = i; | ||
25 | } | ||
26 | |||
27 | return ret; | ||
28 | --- tslib/plugins/dejitter.c~multievent | ||
29 | +++ tslib/plugins/dejitter.c | ||
30 | @@ -24,7 +24,6 @@ | ||
31 | |||
32 | struct tslib_threshold { | ||
33 | struct tslib_module_info module; | ||
34 | - int pthreshold; | ||
35 | int xdelta; | ||
36 | int ydelta; | ||
37 | int delta2; | ||
38 | @@ -36,40 +35,28 @@ | ||
39 | static int threshold_read(struct tslib_module_info *info, struct ts_sample *samp, int nr) | ||
40 | { | ||
41 | struct tslib_threshold *thr = (struct tslib_threshold *)info; | ||
42 | - struct ts_sample *s; | ||
43 | - int ret; | ||
44 | + struct ts_sample *src = samp, *dest = samp; | ||
45 | + int ret, i = 0; | ||
46 | |||
47 | ret = info->next->ops->read(info->next, samp, nr); | ||
48 | if (ret >= 0) { | ||
49 | - int nr = 0; | ||
50 | - | ||
51 | - for (s = samp; s < samp + ret; s++) { | ||
52 | + for (i = 0; i < ret; i++, samp++) { | ||
53 | int dr2; | ||
54 | #ifdef DEBUG | ||
55 | - fprintf(stderr,"BEFORE DEJITTER---------------> %d %d %d\n",s->x,s->y,s->pressure); | ||
56 | + fprintf(stderr,"BEFORE DEJITTER---------------> %d %d %d\n", samp->x, samp->y, samp->pressure); | ||
57 | #endif /*DEBUG*/ | ||
58 | - thr->down = (s->pressure >= thr->pthreshold); | ||
59 | - if (thr->down) { | ||
60 | - dr2 = (thr->x - s->x)*(thr->x - s->x) | ||
61 | - + (thr->y - s->y)*(thr->y - s->y); | ||
62 | - if(dr2 < thr->delta2) { | ||
63 | - s->x = thr->x; | ||
64 | - s->y = thr->y; | ||
65 | - } else { | ||
66 | - thr->x = s->x; | ||
67 | - thr->y = s->y; | ||
68 | - } | ||
69 | - | ||
70 | + dr2 = (thr->x - samp->x)*(thr->x - samp->x) | ||
71 | + + (thr->y - samp->y)*(thr->y - samp->y); | ||
72 | + if(dr2 < thr->delta2) { | ||
73 | + samp->x = thr->x; | ||
74 | + samp->y = thr->y; | ||
75 | } else { | ||
76 | - s->x = thr->x; | ||
77 | - s->y = thr->y; | ||
78 | + thr->x = samp->x; | ||
79 | + thr->y = samp->y; | ||
80 | } | ||
81 | - | ||
82 | - | ||
83 | - samp[nr++] = *s; | ||
84 | } | ||
85 | |||
86 | - ret = nr; | ||
87 | + ret = i; | ||
88 | } | ||
89 | return ret; | ||
90 | } | ||
91 | @@ -106,10 +93,6 @@ | ||
92 | thr->ydelta = v; | ||
93 | break; | ||
94 | |||
95 | - case 3: | ||
96 | - thr->pthreshold = v; | ||
97 | - break; | ||
98 | - | ||
99 | default: | ||
100 | return -1; | ||
101 | } | ||
102 | @@ -120,7 +103,6 @@ | ||
103 | { | ||
104 | { "xdelta", (void *)1, threshold_limit }, | ||
105 | { "ydelta", (void *)2, threshold_limit }, | ||
106 | - { "pthreshold", (void *)3, threshold_limit } | ||
107 | }; | ||
108 | |||
109 | //#define NR_VARS (sizeof(threshold_vars) / sizeof(threshold_vars[0])) | ||
110 | @@ -138,7 +120,6 @@ | ||
111 | |||
112 | thr->xdelta = 10; | ||
113 | thr->ydelta = 10; | ||
114 | - thr->pthreshold = 100; | ||
115 | |||
116 | if (tslib_parse_vars(&thr->module, threshold_vars, NR_VARS, params)) { | ||
117 | free(thr); | ||
118 | --- tslib/plugins/variance.c~multievent | ||
119 | +++ tslib/plugins/variance.c | ||
120 | @@ -9,25 +9,36 @@ | ||
121 | * $Id: variance.c,v 1.3 2002/11/08 23:28:55 dlowder Exp $ | ||
122 | * | ||
123 | * Variance filter for touchscreen values | ||
124 | + * | ||
125 | + * Policy question (applies to all tslib modules that consume events): | ||
126 | + * 1) User requests a read of 5 events using nr. | ||
127 | + * 2) Lower layers return us 4 events. | ||
128 | + * 3) Perform variance calculation, we now only have _1_ event. | ||
129 | + * 4) Do we, a) duplicate this data across the user requested 4 events, | ||
130 | + * b) push up the single event | ||
131 | + * c) loop on the read from the lower layers to obtain | ||
132 | + * the user's requested number of events, unless we hit | ||
133 | + * a pen_up. | ||
134 | */ | ||
135 | + | ||
136 | #include <errno.h> | ||
137 | #include <stdlib.h> | ||
138 | #include <string.h> | ||
139 | #include <limits.h> | ||
140 | - | ||
141 | #include <stdio.h> | ||
142 | |||
143 | #include "tslib.h" | ||
144 | #include "tslib-filter.h" | ||
145 | |||
146 | +#define NR_INIT -1 | ||
147 | #define NR_LAST 4 | ||
148 | |||
149 | struct tslib_variance { | ||
150 | struct tslib_module_info module; | ||
151 | int nr; | ||
152 | - unsigned int pthreshold; | ||
153 | unsigned int xlimit; | ||
154 | unsigned int ylimit; | ||
155 | + unsigned int pthreshold; | ||
156 | struct ts_sample last[NR_LAST]; | ||
157 | }; | ||
158 | |||
159 | @@ -37,8 +48,7 @@ | ||
160 | * least variance, and average them. | ||
161 | */ | ||
162 | static int | ||
163 | -variance_calculate(struct tslib_variance *var, struct ts_sample *samp, | ||
164 | - struct ts_sample *s) | ||
165 | +variance_calculate(struct tslib_variance *var, struct ts_sample *dest, struct ts_sample *src) | ||
166 | { | ||
167 | int i, j; | ||
168 | int diff_x, min_x, i_x, j_x; | ||
169 | @@ -100,11 +110,11 @@ | ||
170 | } | ||
171 | } | ||
172 | |||
173 | - samp->x = (var->last[i_x].x + var->last[j_x].x) / 2; | ||
174 | - samp->y = (var->last[i_y].y + var->last[j_y].y) / 2; | ||
175 | - samp->pressure = (var->last[i_p].pressure + var->last[j_p].pressure) / 2; | ||
176 | - samp->tv.tv_sec = s->tv.tv_sec; | ||
177 | - samp->tv.tv_usec = s->tv.tv_usec; | ||
178 | + dest->x = (var->last[i_x].x + var->last[j_x].x) / 2; | ||
179 | + dest->y = (var->last[i_y].y + var->last[j_y].y) / 2; | ||
180 | + dest->pressure = (var->last[i_p].pressure + var->last[j_p].pressure) / 2; | ||
181 | + dest->tv.tv_sec = src->tv.tv_sec; | ||
182 | + dest->tv.tv_usec = src->tv.tv_usec; | ||
183 | |||
184 | return 1; | ||
185 | } | ||
186 | @@ -112,55 +122,57 @@ | ||
187 | static int variance_read(struct tslib_module_info *info, struct ts_sample *samp, int nr) | ||
188 | { | ||
189 | struct tslib_variance *var = (struct tslib_variance *)info; | ||
190 | - struct ts_sample *s; | ||
191 | - int ret; | ||
192 | - | ||
193 | - ret = info->next->ops->read(info->next, samp, nr); | ||
194 | - if (ret >= 0) { | ||
195 | - int nr = 0; | ||
196 | - | ||
197 | - for (s = samp; s < samp + ret; s++) { | ||
198 | - if (s->pressure < var->pthreshold) { | ||
199 | - /* | ||
200 | - * Pen was released. Reset our state and | ||
201 | - * pass up the release information. | ||
202 | - */ | ||
203 | -// samp[nr].x = 0; | ||
204 | -// samp[nr].y = 0; | ||
205 | - samp[nr].pressure = s->pressure; | ||
206 | - samp[nr].tv.tv_sec = s->tv.tv_sec; | ||
207 | - samp[nr].tv.tv_usec = s->tv.tv_usec; | ||
208 | - | ||
209 | - nr++; | ||
210 | - | ||
211 | - var->nr = 0; | ||
212 | - continue; | ||
213 | - } else if (var->nr == -1) { | ||
214 | - /* | ||
215 | - * Pen was pressed. Inform upper layers | ||
216 | - * immediately. | ||
217 | - */ | ||
218 | - samp[nr] = *s; | ||
219 | - nr++; | ||
220 | - } | ||
221 | - | ||
222 | - if (var->nr >= 0) { | ||
223 | - var->last[var->nr].x = s->x; | ||
224 | - var->last[var->nr].y = s->y; | ||
225 | - var->last[var->nr].pressure = s->pressure; | ||
226 | - } | ||
227 | - | ||
228 | - var->nr++; | ||
229 | + struct ts_sample *src = samp, *dest = samp; | ||
230 | + int ret, i = 0; | ||
231 | |||
232 | - if (var->nr == NR_LAST) { | ||
233 | - if (variance_calculate(var, samp + nr, s)) | ||
234 | - nr++; | ||
235 | - var->nr = 0; | ||
236 | + /* | ||
237 | + * NOTES: | ||
238 | + * | ||
239 | + * Loop on read, collecting events until we hit nr, unless | ||
240 | + * we hit a pen up or encounter a failure. | ||
241 | + */ | ||
242 | + while ((i < nr) && (ret != -1)) { | ||
243 | + ret = info->next->ops->read(info->next, dest + i, nr - i); | ||
244 | + if (ret >= 0) { | ||
245 | + for (src = dest + i; src < dest + ret; src++) { | ||
246 | + if (src->pressure < var->pthreshold) { | ||
247 | + /* pen released, reset var->nr, | ||
248 | + * do a calc based on what we have so | ||
249 | + * far, and let this event flow up */ | ||
250 | + if (variance_calculate(var, dest + i, src)) | ||
251 | + i++; | ||
252 | + var->nr = NR_INIT; | ||
253 | + ret = -1; /* break outer loop, push up event */ | ||
254 | + break; | ||
255 | + } else if (var->nr == NR_INIT) { | ||
256 | + /* | ||
257 | + * First pen down event. Inform upper layers | ||
258 | + * immediately for responsiveness. | ||
259 | + */ | ||
260 | + var->nr = 0; | ||
261 | + i++; | ||
262 | + ret = -1; /* break outer loop */ | ||
263 | + break; | ||
264 | + } | ||
265 | + | ||
266 | + if (var->nr >= 0) { | ||
267 | + var->last[var->nr].x = src->x; | ||
268 | + var->last[var->nr].y = src->y; | ||
269 | + var->last[var->nr].pressure = src->pressure; | ||
270 | + } | ||
271 | + | ||
272 | + var->nr++; | ||
273 | + | ||
274 | + if (var->nr == NR_LAST) { | ||
275 | + if (variance_calculate(var, dest + i, src)) | ||
276 | + i++; | ||
277 | + var->nr = 0; | ||
278 | + } | ||
279 | } | ||
280 | } | ||
281 | - | ||
282 | - ret = nr; | ||
283 | } | ||
284 | + /* if we've collected at least one event, send it up */ | ||
285 | + if (i != 0) ret = i; | ||
286 | return ret; | ||
287 | } | ||
288 | |||
289 | @@ -196,10 +208,6 @@ | ||
290 | var->ylimit = v; | ||
291 | break; | ||
292 | |||
293 | - case 3: | ||
294 | - var->pthreshold = v; | ||
295 | - break; | ||
296 | - | ||
297 | default: | ||
298 | return -1; | ||
299 | } | ||
300 | @@ -210,7 +218,6 @@ | ||
301 | { | ||
302 | { "xlimit", (void *)1, variance_limit }, | ||
303 | { "ylimit", (void *)2, variance_limit }, | ||
304 | - { "pthreshold", (void *)3, variance_limit } | ||
305 | }; | ||
306 | |||
307 | #define NR_VARS (sizeof(variance_vars) / sizeof(variance_vars[0])) | ||
308 | @@ -218,6 +225,7 @@ | ||
309 | struct tslib_module_info *mod_init(struct tsdev *dev, const char *params) | ||
310 | { | ||
311 | struct tslib_variance *var; | ||
312 | + char *pthresvar; | ||
313 | |||
314 | var = malloc(sizeof(struct tslib_variance)); | ||
315 | if (var == NULL) | ||
316 | @@ -225,10 +233,15 @@ | ||
317 | |||
318 | var->module.ops = &variance_ops; | ||
319 | |||
320 | - var->nr = -1; | ||
321 | + var->nr = NR_INIT; | ||
322 | var->xlimit = 160; | ||
323 | var->ylimit = 160; | ||
324 | var->pthreshold = 100; | ||
325 | + pthresvar = getenv("TSLIB_PTHRES"); | ||
326 | + if (pthresvar != NULL) { | ||
327 | + int p = strtol(pthresvar, (char **)NULL, 10); | ||
328 | + if (p != -1) var->pthreshold = p; | ||
329 | + } | ||
330 | |||
331 | if (tslib_parse_vars(&var->module, variance_vars, NR_VARS, params)) { | ||
332 | free(var); | ||
333 | --- tslib/README~multievent | ||
334 | +++ tslib/README | ||
335 | @@ -36,6 +36,19 @@ | ||
336 | usages. They are by no means exhaustive, nor probably even good examples. | ||
337 | They are basically the programs I used to test this library. | ||
338 | |||
339 | +Module Creation Notes | ||
340 | +===================== | ||
341 | + | ||
342 | +For those creating tslib modules, it is important to note a couple things with | ||
343 | +regard to handling of the ability for a user to request more than one ts event | ||
344 | +at a time. The first thing to note is that the lower layers may send up less | ||
345 | +events than the user requested, but only if that was a result of a pen release. | ||
346 | +Next, your module should send up just as many events as the user requested in | ||
347 | +nr. If your module is one that consumes events, such as variance, then you | ||
348 | +loop on the read from the lower layers, and only send the events up when | ||
349 | +1) you have the number of events requested by the user, or 2) one of the events | ||
350 | +from the lower layers was a pen release. | ||
351 | + | ||
352 | |||
353 | Module Parameters | ||
354 | ================= | ||
355 | --- tslib/src/ts_read_raw.c~multievent | ||
356 | +++ tslib/src/ts_read_raw.c | ||
357 | @@ -14,10 +14,10 @@ | ||
358 | * | ||
359 | * Read raw pressure, x, y, and timestamp from a touchscreen device. | ||
360 | */ | ||
361 | + | ||
362 | #include "config.h" | ||
363 | |||
364 | #include <stdio.h> | ||
365 | - | ||
366 | #include <stdlib.h> | ||
367 | #ifdef HAVE_UNISTD_H | ||
368 | #include <unistd.h> | ||
369 | @@ -25,79 +25,27 @@ | ||
370 | #include <sys/time.h> | ||
371 | #include <sys/types.h> | ||
372 | |||
373 | -#ifdef USE_INPUT_API | ||
374 | -#include <linux/input.h> | ||
375 | -#else | ||
376 | -struct ts_event { /* Used in UCB1x00 style touchscreens (the default) */ | ||
377 | - unsigned short pressure; | ||
378 | - unsigned short x; | ||
379 | - unsigned short y; | ||
380 | - unsigned short pad; | ||
381 | - struct timeval stamp; | ||
382 | -}; | ||
383 | -struct h3600_ts_event { /* Used in the Compaq IPAQ */ | ||
384 | - unsigned short pressure; | ||
385 | - unsigned short x; | ||
386 | - unsigned short y; | ||
387 | - unsigned short pad; | ||
388 | -}; | ||
389 | -struct mk712_ts_event { /* Used in the Hitachi Webpad */ | ||
390 | - unsigned int header; | ||
391 | - unsigned int x; | ||
392 | - unsigned int y; | ||
393 | - unsigned int reserved; | ||
394 | -}; | ||
395 | -struct arctic2_ts_event { /* Used in the IBM Arctic II */ | ||
396 | - signed short pressure; | ||
397 | - signed int x; | ||
398 | - signed int y; | ||
399 | - int millisecs; | ||
400 | - int flags; | ||
401 | -}; | ||
402 | -struct collie_ts_event { /* Used in the Sharp Zaurus SL-5000d and SL-5500 */ | ||
403 | - long y; | ||
404 | - long x; | ||
405 | - long pressure; | ||
406 | - long long millisecs; | ||
407 | -}; | ||
408 | -struct corgi_ts_event { /* Used in the Sharp Zaurus SL-C700 */ | ||
409 | - short pressure; | ||
410 | - short x; | ||
411 | - short y; | ||
412 | - short millisecs; | ||
413 | -}; | ||
414 | -#endif /* USE_INPUT_API */ | ||
415 | - | ||
416 | #include "tslib-private.h" | ||
417 | |||
418 | -int ts_read_raw(struct tsdev *ts, struct ts_sample *samp, int nr) | ||
419 | -{ | ||
420 | #ifdef USE_INPUT_API | ||
421 | +#include <linux/input.h> | ||
422 | + | ||
423 | +static inline int get_input_event(struct tsdev *ts, struct ts_sample *samp) { | ||
424 | struct input_event ev; | ||
425 | -#else | ||
426 | - struct ts_event *evt; | ||
427 | - struct h3600_ts_event *hevt; | ||
428 | - struct mk712_ts_event *mevt; | ||
429 | - struct arctic2_ts_event *aevt; | ||
430 | - struct collie_ts_event *collie_evt; | ||
431 | - struct corgi_ts_event *corgi_evt; | ||
432 | -#endif /* USE_INPUT_API */ | ||
433 | - int ret; | ||
434 | - int total = 0; | ||
435 | + struct timeval tv = {0, 0}; | ||
436 | + fd_set fdset; | ||
437 | + int ret = 0; | ||
438 | |||
439 | - char *tseventtype=NULL; | ||
440 | - char *defaulttseventtype="UCB1x00"; | ||
441 | + /* event vars */ | ||
442 | + static int curr_x = 0, curr_y = 0; | ||
443 | + int curr_p = 0, next_x = 0, next_y = 0; | ||
444 | |||
445 | -#ifdef USE_INPUT_API | ||
446 | - /* warning: maybe those static vars should be part of the tsdev struct? */ | ||
447 | - static int curr_x = 0, curr_y = 0, curr_p = 0; | ||
448 | - static int got_curr_x = 0, got_curr_y = 0; | ||
449 | - int got_curr_p = 0; | ||
450 | - int next_x, next_y; | ||
451 | + /* state variables */ | ||
452 | + int got_curr_x = 0, got_curr_y = 0, got_curr_p = 0; | ||
453 | int got_next_x = 0, got_next_y = 0; | ||
454 | int got_tstamp = 0; | ||
455 | |||
456 | - while (total < nr) { | ||
457 | + while (1) { | ||
458 | ret = read(ts->fd, &ev, sizeof(struct input_event)); | ||
459 | if (ret < sizeof(struct input_event)) break; | ||
460 | |||
461 | @@ -146,177 +94,231 @@ | ||
462 | samp->tv = ev.time; | ||
463 | } | ||
464 | |||
465 | - if ( (!got_curr_x || !got_curr_y) && !got_curr_p && | ||
466 | - !got_next_x && !got_next_y ) { | ||
467 | - /* | ||
468 | - * The current event is not complete yet. | ||
469 | - * Give the kernel a chance to feed us more. | ||
470 | - */ | ||
471 | - struct timeval tv = {0, 0}; | ||
472 | - fd_set fdset; | ||
473 | - FD_ZERO(&fdset); | ||
474 | - FD_SET(ts->fd, &fdset); | ||
475 | - ret = select(ts->fd+1, &fdset, NULL, NULL, &tv); | ||
476 | - if (ret == 1) continue; | ||
477 | - if (ret == -1) break; | ||
478 | + if (got_curr_x && got_curr_y && got_curr_p) { | ||
479 | + /* we have a complete event */ | ||
480 | + samp->x = curr_x; | ||
481 | + samp->y = curr_y; | ||
482 | + samp->pressure = curr_p; | ||
483 | + ret = 0; /* indicate success */ | ||
484 | + if (got_next_x) curr_x = next_x; | ||
485 | + if (got_next_y) curr_y = next_y; | ||
486 | + break; | ||
487 | } | ||
488 | |||
489 | - /* We consider having a complete ts event */ | ||
490 | - samp->x = curr_x; | ||
491 | - samp->y = curr_y; | ||
492 | - samp->pressure = curr_p; | ||
493 | -#ifdef DEBUG | ||
494 | - fprintf(stderr,"RAW---------------------------> %d %d %d\n",samp->x,samp->y,samp->pressure); | ||
495 | -#endif /*DEBUG*/ | ||
496 | - samp++; | ||
497 | - total++; | ||
498 | - | ||
499 | - /* get ready for next event */ | ||
500 | - if (got_next_x) curr_x = next_x; else got_curr_x = 0; | ||
501 | - if (got_next_y) curr_y = next_y; else got_curr_y = 0; | ||
502 | - got_next_x = got_next_y = got_tstamp = 0; | ||
503 | + /* | ||
504 | + * The current event is not complete yet. | ||
505 | + * Give the kernel a chance to feed us more. | ||
506 | + */ | ||
507 | + FD_ZERO(&fdset); | ||
508 | + FD_SET(ts->fd, &fdset); | ||
509 | + ret = select(ts->fd+1, &fdset, NULL, NULL, &tv); | ||
510 | + if (ret == 1) continue; | ||
511 | + if (ret == -1) break; | ||
512 | } | ||
513 | |||
514 | - if (ret) ret = -1; | ||
515 | - if (total) ret = total; | ||
516 | +// fprintf(stdout, "%s: returning %d\n", __FUNCTION__, ret); | ||
517 | + if (ret != 0) ret = -1; | ||
518 | + return ret; | ||
519 | +} | ||
520 | + | ||
521 | #else | ||
522 | + | ||
523 | +struct ucb1x00_ts_event { /* Used in UCB1x00 style touchscreens (the default) */ | ||
524 | + unsigned short pressure; | ||
525 | + unsigned short x; | ||
526 | + unsigned short y; | ||
527 | + unsigned short pad; | ||
528 | + struct timeval stamp; | ||
529 | +}; | ||
530 | +struct h3600_ts_event { /* Used in the Compaq IPAQ */ | ||
531 | + unsigned short pressure; | ||
532 | + unsigned short x; | ||
533 | + unsigned short y; | ||
534 | + unsigned short pad; | ||
535 | +}; | ||
536 | +struct mk712_ts_event { /* Used in the Hitachi Webpad */ | ||
537 | + unsigned int header; | ||
538 | + unsigned int x; | ||
539 | + unsigned int y; | ||
540 | + unsigned int reserved; | ||
541 | +}; | ||
542 | +struct arctic2_ts_event { /* Used in the IBM Arctic II */ | ||
543 | + signed short pressure; | ||
544 | + signed int x; | ||
545 | + signed int y; | ||
546 | + int millisecs; | ||
547 | + int flags; | ||
548 | +}; | ||
549 | +struct collie_ts_event { /* Used in the Sharp Zaurus SL-5000d and SL-5500 */ | ||
550 | + long y; | ||
551 | + long x; | ||
552 | + long pressure; | ||
553 | + long long millisecs; | ||
554 | +}; | ||
555 | +struct corgi_ts_event { /* Used in the Sharp Zaurus SL-C700 */ | ||
556 | + short pressure; | ||
557 | + short x; | ||
558 | + short y; | ||
559 | + short millisecs; | ||
560 | +}; | ||
561 | + | ||
562 | +static inline int get_ucb1x00_event(struct tsdev *ts, struct ts_sample *samp) { | ||
563 | + struct ucb1x00_ts_event evt; | ||
564 | + int ret = read(ts->fd, &evt, sizeof(struct ucb1x00_ts_event)); | ||
565 | + if (ret > 0) { | ||
566 | + samp->x = evt.x; | ||
567 | + samp->y = evt.y; | ||
568 | + samp->pressure = evt.pressure; | ||
569 | + samp->tv.tv_usec = evt.stamp.tv_usec; | ||
570 | + samp->tv.tv_sec = evt.stamp.tv_sec; | ||
571 | + ret = 0; /* success */ | ||
572 | + } | ||
573 | + return ret; | ||
574 | +} | ||
575 | + | ||
576 | +static inline int get_h3600_event(struct tsdev *ts, struct ts_sample *samp) { | ||
577 | + struct h3600_ts_event evt; | ||
578 | + int ret = read(ts->fd, &evt, sizeof(struct h3600_ts_event)); | ||
579 | + if (ret > 0) { | ||
580 | + samp->x = evt.x; | ||
581 | + samp->y = evt.y; | ||
582 | + samp->pressure = evt.pressure; | ||
583 | + gettimeofday(&samp->tv, NULL); | ||
584 | + ret = 0; /* success */ | ||
585 | + } | ||
586 | + return ret; | ||
587 | +} | ||
588 | + | ||
589 | +static inline int get_mk712_event(struct tsdev *ts, struct ts_sample *samp) { | ||
590 | + struct mk712_ts_event evt; | ||
591 | + int ret = read(ts->fd, &evt, sizeof(struct mk712_ts_event)); | ||
592 | + if (ret > 0) { | ||
593 | + samp->x = (short)evt.x; | ||
594 | + samp->y = (short)evt.y; | ||
595 | + if(evt.header==0) | ||
596 | + samp->pressure=1; | ||
597 | + else | ||
598 | + samp->pressure=0; | ||
599 | + gettimeofday(&samp->tv, NULL); | ||
600 | + ret = 0; /* success */ | ||
601 | + } | ||
602 | + return ret; | ||
603 | +} | ||
604 | + | ||
605 | +static inline int get_arctic2_event(struct tsdev *ts, struct ts_sample *samp) { | ||
606 | + struct arctic2_ts_event evt; | ||
607 | + int ret = read(ts->fd, &evt, sizeof(struct arctic2_ts_event)); | ||
608 | + if (ret > 0) { | ||
609 | + samp->x = (short)evt.x; | ||
610 | + samp->y = (short)evt.y; | ||
611 | + samp->pressure = evt.pressure; | ||
612 | + gettimeofday(&samp->tv, NULL); | ||
613 | + ret = 0; /* success */ | ||
614 | + } | ||
615 | + return ret; | ||
616 | +} | ||
617 | + | ||
618 | +static inline int get_collie_event(struct tsdev *ts, struct ts_sample *samp) { | ||
619 | + struct collie_ts_event evt; | ||
620 | + int ret = read(ts->fd, &evt, sizeof(struct collie_ts_event)); | ||
621 | + if (ret > 0) { | ||
622 | + samp->x = evt.x; | ||
623 | + samp->y = evt.y; | ||
624 | + samp->pressure = evt.pressure; | ||
625 | + samp->tv.tv_usec = evt.millisecs % 1000; | ||
626 | + samp->tv.tv_sec = evt.millisecs / 1000; | ||
627 | + ret = 0; /* success */ | ||
628 | + } | ||
629 | + return ret; | ||
630 | +} | ||
631 | + | ||
632 | +static inline int get_corgi_event(struct tsdev *ts, struct ts_sample *samp) { | ||
633 | + struct corgi_ts_event evt; | ||
634 | + int ret = read(ts->fd, &evt, sizeof(struct corgi_ts_event)); | ||
635 | + if (ret > 0) { | ||
636 | + samp->x = evt.x; | ||
637 | + samp->y = evt.y; | ||
638 | + samp->pressure = evt.pressure; | ||
639 | + samp->tv.tv_usec = evt.millisecs % 1000; | ||
640 | + samp->tv.tv_sec = evt.millisecs / 1000; | ||
641 | + ret = 0; /* success */ | ||
642 | + } | ||
643 | + return ret; | ||
644 | +} | ||
645 | + | ||
646 | +#endif | ||
647 | + | ||
648 | +int ts_read_raw(struct tsdev *ts, struct ts_sample *samp, int nr) | ||
649 | +{ | ||
650 | + int ret; | ||
651 | + int total = 0; | ||
652 | + int pen_down = 1; | ||
653 | + static short x_save = 0, y_save = 0; | ||
654 | + static int pthres = -1; | ||
655 | + | ||
656 | +#ifndef USE_INPUT_API | ||
657 | + char *tseventtype=NULL; | ||
658 | + char *defaulttseventtype="UCB1x00"; | ||
659 | tseventtype = getenv("TSLIB_TSEVENTTYPE"); | ||
660 | if(tseventtype==NULL) tseventtype=defaulttseventtype; | ||
661 | +#endif | ||
662 | |||
663 | - if( strcmp(tseventtype,"H3600") == 0) { /* iPAQ style h3600 touchscreen events */ | ||
664 | - hevt = alloca(sizeof(*hevt) * nr); | ||
665 | - ret = read(ts->fd, hevt, sizeof(*hevt) * nr); | ||
666 | - if(ret > 0) { | ||
667 | - int nr = ret / sizeof(*hevt); | ||
668 | - while(ret >= sizeof(*hevt)) { | ||
669 | - samp->x = hevt->x; | ||
670 | - samp->y = hevt->y; | ||
671 | - samp->pressure = hevt->pressure; | ||
672 | -#ifdef DEBUG | ||
673 | - fprintf(stderr,"RAW---------------------------> %d %d %d\n",samp->x,samp->y,samp->pressure); | ||
674 | -#endif /*DEBUG*/ | ||
675 | - gettimeofday(&samp->tv,NULL); | ||
676 | - samp++; | ||
677 | - hevt++; | ||
678 | - ret -= sizeof(*hevt); | ||
679 | - } | ||
680 | - } else { | ||
681 | - return -1; | ||
682 | - } | ||
683 | - } else if( strcmp(tseventtype,"MK712") == 0) { /* Hitachi Webpad events */ | ||
684 | - mevt = alloca(sizeof(*mevt) * nr); | ||
685 | - ret = read(ts->fd, mevt, sizeof(*mevt) * nr); | ||
686 | - if(ret > 0) { | ||
687 | - int nr = ret / sizeof(*mevt); | ||
688 | - while(ret >= sizeof(*mevt)) { | ||
689 | - samp->x = (short)mevt->x; | ||
690 | - samp->y = (short)mevt->y; | ||
691 | - if(mevt->header==0) | ||
692 | - samp->pressure=1; | ||
693 | - else | ||
694 | - samp->pressure=0; | ||
695 | -#ifdef DEBUG | ||
696 | - fprintf(stderr,"RAW---------------------------> %d %d %d\n",samp->x,samp->y,samp->pressure); | ||
697 | -#endif /*DEBUG*/ | ||
698 | - gettimeofday(&samp->tv,NULL); | ||
699 | - samp++; | ||
700 | - mevt++; | ||
701 | - ret -= sizeof(*mevt); | ||
702 | - } | ||
703 | - } else { | ||
704 | - return -1; | ||
705 | - } | ||
706 | - | ||
707 | - } else if( strcmp(tseventtype,"ARCTIC2") == 0) { /* IBM Arctic II events */ | ||
708 | - aevt = alloca(sizeof(*aevt) * nr); | ||
709 | - ret = read(ts->fd, aevt, sizeof(*aevt) * nr); | ||
710 | - if(ret > 0) { | ||
711 | - int nr = ret / sizeof(*aevt); | ||
712 | - while(ret >= sizeof(*aevt)) { | ||
713 | - samp->x = (short)aevt->x; | ||
714 | - samp->y = (short)aevt->y; | ||
715 | - samp->pressure = aevt->pressure; | ||
716 | -#ifdef DEBUG | ||
717 | - fprintf(stderr,"RAW---------------------------> %d %d %d\n",samp->x,samp->y,samp->pressure); | ||
718 | -#endif /*DEBUG*/ | ||
719 | - gettimeofday(&samp->tv,NULL); | ||
720 | - samp++; | ||
721 | - aevt++; | ||
722 | - ret -= sizeof(*aevt); | ||
723 | - } | ||
724 | + while ((total < nr) && pen_down) { | ||
725 | +// fprintf(stdout, "total: %d, nr: %d\n", total, nr); | ||
726 | +#ifdef USE_INPUT_API | ||
727 | + ret = get_input_event(ts, samp); | ||
728 | +#else | ||
729 | + if (strcmp(tseventtype, "H3600") == 0) { | ||
730 | + /* iPAQ style h3600 touchscreen events */ | ||
731 | + ret = get_h3600_event(ts, samp); | ||
732 | + } else if (strcmp(tseventtype, "MK712") == 0) { | ||
733 | + /* Hitachi Webpad events */ | ||
734 | + ret = get_mk712_event(ts, samp); | ||
735 | + } else if (strcmp(tseventtype, "ARCTIC2") == 0) { | ||
736 | + /* IBM Arctic II events */ | ||
737 | + ret = get_arctic2_event(ts, samp); | ||
738 | + } else if (strcmp(tseventtype, "COLLIE") == 0) { | ||
739 | + /* Sharp Zaurus SL-5000d/5500 events */ | ||
740 | + ret = get_collie_event(ts, samp); | ||
741 | + } else if (strcmp(tseventtype,"CORGI") == 0) { | ||
742 | + /* Sharp Zaurus SL-C700 events */ | ||
743 | + ret = get_corgi_event(ts, samp); | ||
744 | } else { | ||
745 | - return -1; | ||
746 | + /* Use normal UCB1x00 type events */ | ||
747 | + ret = get_ucb1x00_event(ts, samp); | ||
748 | } | ||
749 | +#endif | ||
750 | + if (ret != 0) break; | ||
751 | |||
752 | - } else if( strcmp(tseventtype,"COLLIE") == 0) { /* Sharp Zaurus SL-5000d/5500 events */ | ||
753 | - collie_evt = alloca(sizeof(*collie_evt) * nr); | ||
754 | - ret = read(ts->fd, collie_evt, sizeof(*collie_evt) * nr); | ||
755 | - if(ret > 0) { | ||
756 | - int nr = ret / sizeof(*collie_evt); | ||
757 | - while(ret >= sizeof(*collie_evt)) { | ||
758 | - samp->x = collie_evt->x; | ||
759 | - samp->y = collie_evt->y; | ||
760 | - samp->pressure = collie_evt->pressure; | ||
761 | -#ifdef DEBUG | ||
762 | - fprintf(stderr,"RAW---------------------------> %d %d %d\n",samp->x,samp->y,samp->pressure); | ||
763 | -#endif /*DEBUG*/ | ||
764 | - samp->tv.tv_usec = collie_evt->millisecs % 1000; | ||
765 | - samp->tv.tv_sec = collie_evt->millisecs / 1000; | ||
766 | - samp++; | ||
767 | - collie_evt++; | ||
768 | - ret -= sizeof(*collie_evt); | ||
769 | + if (pthres == -1) { | ||
770 | + char *pthresvar = getenv("TSLIB_PTHRES"); | ||
771 | + pthres = 100; | ||
772 | + if (pthresvar != NULL) { | ||
773 | + int p = strtol(pthresvar, (char **)NULL, 10); | ||
774 | + if (p != -1) pthres = p; | ||
775 | } | ||
776 | - } else { | ||
777 | - return -1; | ||
778 | } | ||
779 | |||
780 | - } else if( strcmp(tseventtype,"CORGI") == 0) { /* Sharp Zaurus SL-C700 events */ | ||
781 | - corgi_evt = alloca(sizeof(*corgi_evt) * nr); | ||
782 | - ret = read(ts->fd, corgi_evt, sizeof(*corgi_evt) * nr); | ||
783 | - if(ret > 0) { | ||
784 | - int nr = ret / sizeof(*corgi_evt); | ||
785 | - while(ret >= sizeof(*corgi_evt)) { | ||
786 | - samp->x = corgi_evt->x; | ||
787 | - samp->y = corgi_evt->y; | ||
788 | - samp->pressure = corgi_evt->pressure; | ||
789 | -#ifdef DEBUG | ||
790 | - fprintf(stderr,"RAW---------------------------> %d %d %d\n",samp->x,samp->y,samp->pressure); | ||
791 | -#endif /*DEBUG*/ | ||
792 | - samp->tv.tv_usec = corgi_evt->millisecs % 1000; | ||
793 | - samp->tv.tv_sec = corgi_evt->millisecs / 1000; | ||
794 | - samp++; | ||
795 | - corgi_evt++; | ||
796 | - ret -= sizeof(*corgi_evt); | ||
797 | - } | ||
798 | + if (samp->pressure < pthres) { | ||
799 | + /* pen released, send events up */ | ||
800 | + pen_down = 0; | ||
801 | + /* set x and y to previous values */ | ||
802 | + samp->x = x_save; | ||
803 | + samp->y = y_save; | ||
804 | } else { | ||
805 | - return -1; | ||
806 | + pen_down = 1; | ||
807 | + x_save = samp->x; | ||
808 | + y_save = samp->y; | ||
809 | } | ||
810 | - | ||
811 | - } else { /* Use normal UCB1x00 type events */ | ||
812 | - evt = alloca(sizeof(*evt) * nr); | ||
813 | - ret = read(ts->fd, evt, sizeof(*evt) * nr); | ||
814 | - if(ret > 0) { | ||
815 | - int nr = ret / sizeof(*evt); | ||
816 | - while(ret >= sizeof(*evt)) { | ||
817 | - samp->x = evt->x; | ||
818 | - samp->y = evt->y; | ||
819 | - samp->pressure = evt->pressure; | ||
820 | #ifdef DEBUG | ||
821 | - fprintf(stderr,"RAW---------------------------> %d %d %d\n",samp->x,samp->y,samp->pressure); | ||
822 | + fprintf(stderr,"RAW---------------------------> %d %d %d\n",samp->x, samp->y, samp->pressure); | ||
823 | #endif /*DEBUG*/ | ||
824 | - samp->tv.tv_usec = evt->stamp.tv_usec; | ||
825 | - samp->tv.tv_sec = evt->stamp.tv_sec; | ||
826 | - samp++; | ||
827 | - evt++; | ||
828 | - ret -= sizeof(*evt); | ||
829 | - } | ||
830 | - } else { | ||
831 | - return -1; | ||
832 | - } | ||
833 | + samp++; | ||
834 | + total++; | ||
835 | } | ||
836 | - ret = nr; | ||
837 | -#endif /* USE_INPUT_API */ | ||
838 | |||
839 | + if (ret != 0) ret = -1; | ||
840 | + if (total) ret = total; | ||
841 | return ret; | ||
842 | } | ||
843 | |||
diff --git a/meta/recipes-graphics/tslib/tslib/netbook-pro/ts.conf b/meta/recipes-graphics/tslib/tslib/netbook-pro/ts.conf new file mode 100644 index 0000000000..6d94a8f468 --- /dev/null +++ b/meta/recipes-graphics/tslib/tslib/netbook-pro/ts.conf | |||
@@ -0,0 +1,5 @@ | |||
1 | module_raw input | ||
2 | module variance delta=80 | ||
3 | #module dejitter delta=2 | ||
4 | module linear | ||
5 | |||
diff --git a/meta/recipes-graphics/tslib/tslib/netbook-pro/tslib.sh b/meta/recipes-graphics/tslib/tslib/netbook-pro/tslib.sh new file mode 100644 index 0000000000..d31bc76368 --- /dev/null +++ b/meta/recipes-graphics/tslib/tslib/netbook-pro/tslib.sh | |||
@@ -0,0 +1,5 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | TSLIB_TSDEVICE=`detect-stylus --device` | ||
4 | |||
5 | export TSLIB_TSDEVICE | ||
diff --git a/meta/recipes-graphics/tslib/tslib/omap1610h2/tslib.sh b/meta/recipes-graphics/tslib/tslib/omap1610h2/tslib.sh new file mode 100644 index 0000000000..040f4de3d5 --- /dev/null +++ b/meta/recipes-graphics/tslib/tslib/omap1610h2/tslib.sh | |||
@@ -0,0 +1,5 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | TSLIB_TSDEVICE=/dev/input/event1 | ||
4 | |||
5 | export TSLIB_TSDEVICE | ||
diff --git a/meta/recipes-graphics/tslib/tslib/omap5912osk/tslib.sh b/meta/recipes-graphics/tslib/tslib/omap5912osk/tslib.sh new file mode 100644 index 0000000000..6bb56651f8 --- /dev/null +++ b/meta/recipes-graphics/tslib/tslib/omap5912osk/tslib.sh | |||
@@ -0,0 +1,4 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | export TSLIB_TSDEVICE=/dev/input/event1 | ||
4 | export QWS_MOUSE_PROTO=TPanel | ||
diff --git a/meta/recipes-graphics/tslib/tslib/simpad/tslib.sh b/meta/recipes-graphics/tslib/tslib/simpad/tslib.sh new file mode 100644 index 0000000000..9c4eb1e0f9 --- /dev/null +++ b/meta/recipes-graphics/tslib/tslib/simpad/tslib.sh | |||
@@ -0,0 +1,14 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | TSLIB_TSDEVICE=/dev/input/touchscreen0 | ||
4 | TSLIB_CONFFILE=/etc/ts.conf | ||
5 | |||
6 | case `uname -r` in | ||
7 | 2.4*) | ||
8 | TSLIB_TSDEVICE=/dev/touchscreen/ucb1x00 | ||
9 | TSLIB_CONFFILE=/usr/share/tslib/ts.conf-simpad-2.4 | ||
10 | ;; | ||
11 | esac | ||
12 | |||
13 | export TSLIB_TSDEVICE TSLIB_CONFFILE | ||
14 | |||
diff --git a/meta/recipes-graphics/tslib/tslib/ts.conf b/meta/recipes-graphics/tslib/tslib/ts.conf new file mode 100644 index 0000000000..1b0da937e8 --- /dev/null +++ b/meta/recipes-graphics/tslib/tslib/ts.conf | |||
@@ -0,0 +1,25 @@ | |||
1 | # Uncomment if you wish to use the linux input layer event interface | ||
2 | module_raw input | ||
3 | |||
4 | # Uncomment if you're using a Sharp Zaurus SL-5500/SL-5000d | ||
5 | # module_raw collie | ||
6 | |||
7 | # Uncomment if you're using a Sharp Zaurus SL-C700/C750/C760/C860 | ||
8 | # module_raw corgi | ||
9 | |||
10 | # Uncomment if you're using a device with a UCB1200/1300/1400 TS interface | ||
11 | # module_raw ucb1x00 | ||
12 | |||
13 | # Uncomment if you're using an HP iPaq h3600 or similar | ||
14 | # module_raw h3600 | ||
15 | |||
16 | # Uncomment if you're using a Hitachi Webpad | ||
17 | # module_raw mk712 | ||
18 | |||
19 | # Uncomment if you're using an IBM Arctic II | ||
20 | # module_raw arctic2 | ||
21 | |||
22 | module pthres pmin=1 | ||
23 | module variance delta=30 | ||
24 | module dejitter delta=100 | ||
25 | module linear | ||
diff --git a/meta/recipes-graphics/tslib/tslib/ts.conf-collie-2.4 b/meta/recipes-graphics/tslib/tslib/ts.conf-collie-2.4 new file mode 100644 index 0000000000..2099b9b414 --- /dev/null +++ b/meta/recipes-graphics/tslib/tslib/ts.conf-collie-2.4 | |||
@@ -0,0 +1,5 @@ | |||
1 | module_raw collie | ||
2 | module pthres pmin=1 | ||
3 | module variance delta=30 | ||
4 | module dejitter delta=100 | ||
5 | module linear | ||
diff --git a/meta/recipes-graphics/tslib/tslib/ts.conf-simpad-2.4 b/meta/recipes-graphics/tslib/tslib/ts.conf-simpad-2.4 new file mode 100644 index 0000000000..035e794cb4 --- /dev/null +++ b/meta/recipes-graphics/tslib/tslib/ts.conf-simpad-2.4 | |||
@@ -0,0 +1,5 @@ | |||
1 | module_raw ucb1x00 | ||
2 | module pthres pmin=1 | ||
3 | module variance delta=10 | ||
4 | module dejitter delta=150 | ||
5 | module linear | ||
diff --git a/meta/recipes-graphics/tslib/tslib/tslib.sh b/meta/recipes-graphics/tslib/tslib/tslib.sh new file mode 100644 index 0000000000..7068e8d922 --- /dev/null +++ b/meta/recipes-graphics/tslib/tslib/tslib.sh | |||
@@ -0,0 +1,8 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | if [ -e /dev/input/touchscreen0 ]; then | ||
4 | TSLIB_TSDEVICE=/dev/input/touchscreen0 | ||
5 | |||
6 | export TSLIB_TSDEVICE | ||
7 | fi | ||
8 | |||
diff --git a/meta/recipes-graphics/tslib/tslib_1.0.bb b/meta/recipes-graphics/tslib/tslib_1.0.bb new file mode 100644 index 0000000000..12c0ace8f8 --- /dev/null +++ b/meta/recipes-graphics/tslib/tslib_1.0.bb | |||
@@ -0,0 +1,78 @@ | |||
1 | DESCRIPTION = "tslib is a plugin-based flexible touchscreen access library." | ||
2 | HOMEPAGE = "http://tslib.berlios.de/" | ||
3 | |||
4 | AUTHOR = "Russell King w/ plugins by Chris Larson et. al." | ||
5 | SECTION = "base" | ||
6 | LICENSE = "LGPLv2" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=f30a9716ef3762e3467a2f62bf790f0a" | ||
8 | |||
9 | PR = "r15" | ||
10 | |||
11 | SRC_URI = "http://download.berlios.de/tslib/tslib-${PV}.tar.bz2 \ | ||
12 | file://fix_version.patch;patch=1 \ | ||
13 | file://ts.conf \ | ||
14 | file://ts.conf-simpad-2.4 \ | ||
15 | file://ts.conf-collie-2.4 \ | ||
16 | file://tslib.sh" | ||
17 | SRC_URI_append_mnci += " file://devfs.patch;patch=1" | ||
18 | SRC_URI_append_mnci += " file://event1.patch;patch=1" | ||
19 | |||
20 | inherit autotools pkgconfig | ||
21 | |||
22 | EXTRA_OECONF = "--enable-shared --disable-h3600 --enable-input --disable-corgi --disable-collie --disable-mk712 --disable-arctic2 --disable-ucb1x00" | ||
23 | |||
24 | do_install_prepend() { | ||
25 | install -m 0644 ${WORKDIR}/ts.conf ${S}/etc/ts.conf | ||
26 | } | ||
27 | |||
28 | do_install_append() { | ||
29 | install -d ${D}${sysconfdir}/profile.d/ | ||
30 | install -m 0755 ${WORKDIR}/tslib.sh ${D}${sysconfdir}/profile.d/ | ||
31 | case ${MACHINE} in | ||
32 | collie ) | ||
33 | install -d ${D}${datadir}/tslib | ||
34 | install -m 0644 ${WORKDIR}/ts.conf-collie-2.4 ${D}${datadir}/tslib/ | ||
35 | ;; | ||
36 | simpad ) | ||
37 | install -d ${D}${datadir}/tslib | ||
38 | install -m 0644 ${WORKDIR}/ts.conf-simpad-2.4 ${D}${datadir}/tslib/ | ||
39 | ;; | ||
40 | *) | ||
41 | ;; | ||
42 | esac | ||
43 | } | ||
44 | |||
45 | SRC_URI_OVERRIDES_PACKAGE_ARCH = "0" | ||
46 | |||
47 | # People should consider using udev's /dev/input/touchscreen0 symlink | ||
48 | # instead of detect-stylus | ||
49 | #RDEPENDS_tslib-conf_weird-machine = "detect-stylus" | ||
50 | RPROVIDES_tslib-conf = "libts-0.0-conf" | ||
51 | |||
52 | # Machines with machine specific patches | ||
53 | PACKAGE_ARCH_mnci = "${MACHINE_ARCH}" | ||
54 | # Machines with machine specific config files (tslib.sh) | ||
55 | PACKAGE_ARCH_tslib-conf_a780 = "${MACHINE_ARCH}" | ||
56 | PACKAGE_ARCH_tslib-conf_collie = "${MACHINE_ARCH}" | ||
57 | PACKAGE_ARCH_tslib-conf_e680 = "${MACHINE_ARCH}" | ||
58 | PACKAGE_ARCH_tslib-conf_jornada56x = "${MACHINE_ARCH}" | ||
59 | PACKAGE_ARCH_tslib-conf_jornada6xx = "${MACHINE_ARCH}" | ||
60 | PACKAGE_ARCH_tslib-conf_jornada7xx = "${MACHINE_ARCH}" | ||
61 | PACKAGE_ARCH_tslib-conf_netbook-pro = "${MACHINE_ARCH}" | ||
62 | PACKAGE_ARCH_tslib-conf_omap1610h2 = "${MACHINE_ARCH}" | ||
63 | PACKAGE_ARCH_tslib-conf_omap5912osk = "${MACHINE_ARCH}" | ||
64 | PACKAGE_ARCH_tslib-conf_simpad = "${MACHINE_ARCH}" | ||
65 | |||
66 | PACKAGES =+ "tslib-conf tslib-tests tslib-calibrate" | ||
67 | DEBIAN_NOAUTONAME_tslib-conf = "1" | ||
68 | DEBIAN_NOAUTONAME_tslib-tests = "1" | ||
69 | DEBIAN_NOAUTONAME_tslib-calibrate = "1" | ||
70 | |||
71 | RDEPENDS_${PN} = "tslib-conf" | ||
72 | RRECOMMENDS_${PN} = "pointercal" | ||
73 | |||
74 | FILES_${PN}-dbg += "${libdir}/ts/.debug*" | ||
75 | FILES_tslib-conf = "${sysconfdir}/ts.conf ${sysconfdir}/profile.d/tslib.sh ${datadir}/tslib" | ||
76 | FILES_${PN} = "${libdir}/*.so.* ${libdir}/ts/*.so*" | ||
77 | FILES_tslib-calibrate += "${bindir}/ts_calibrate" | ||
78 | FILES_tslib-tests = "${bindir}/ts_harvest ${bindir}/ts_print ${bindir}/ts_print_raw ${bindir}/ts_test" | ||
diff --git a/meta/recipes-graphics/ttf-fonts/liberation-fonts/30-liberation-aliases.conf b/meta/recipes-graphics/ttf-fonts/liberation-fonts/30-liberation-aliases.conf new file mode 100644 index 0000000000..06094503cc --- /dev/null +++ b/meta/recipes-graphics/ttf-fonts/liberation-fonts/30-liberation-aliases.conf | |||
@@ -0,0 +1,17 @@ | |||
1 | <?xml version="1.0"?> | ||
2 | <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | ||
3 | <!-- conf.d/sub-pixel.conf --> | ||
4 | <fontconfig> | ||
5 | <alias> | ||
6 | <family>sans-serif</family> | ||
7 | <accept><family>Liberation Sans</family></accept> | ||
8 | </alias> | ||
9 | <alias> | ||
10 | <family>serif</family> | ||
11 | <accept><family>Liberation Serif</family></accept> | ||
12 | </alias> | ||
13 | <alias> | ||
14 | <family>monospace</family> | ||
15 | <accept><family>Liberation Mono</family></accept> | ||
16 | </alias> | ||
17 | </fontconfig> | ||
diff --git a/meta/recipes-graphics/ttf-fonts/liberation-fonts_1.04.bb b/meta/recipes-graphics/ttf-fonts/liberation-fonts_1.04.bb new file mode 100644 index 0000000000..6b887e31b6 --- /dev/null +++ b/meta/recipes-graphics/ttf-fonts/liberation-fonts_1.04.bb | |||
@@ -0,0 +1,34 @@ | |||
1 | DESCRIPTION = "The Liberation(tm) Fonts is a font family originally created by Ascender(c) which aims metric compatibility as usage of Arial, Times New Roman, Courier New" | ||
2 | HOMEPAGE = "https://fedorahosted.org/liberation-fonts/" | ||
3 | BUGTRACKER = "https://bugzilla.redhat.com/" | ||
4 | |||
5 | SECTION = "x11/fonts" | ||
6 | PRIORITY = "optional" | ||
7 | LICENSE = "GPLv2" | ||
8 | PACKAGE_ARCH = "all" | ||
9 | RDEPENDS = "fontconfig-utils" | ||
10 | PE = "1" | ||
11 | |||
12 | SRC_URI = "https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-${PV}.tar.gz \ | ||
13 | file://30-liberation-aliases.conf" | ||
14 | |||
15 | do_install () { | ||
16 | install -d ${D}${datadir}/fonts/ttf/ | ||
17 | for i in *.ttf; do | ||
18 | install -m 0644 $i ${D}${prefix}/share/fonts/ttf/${i} | ||
19 | done | ||
20 | |||
21 | install -d ${D}${sysconfdir}/fonts/conf.d/ | ||
22 | install -m 0644 ${WORKDIR}/30-liberation-aliases.conf ${D}${sysconfdir}/fonts/conf.d/ | ||
23 | |||
24 | install -d ${D}${prefix}/share/doc/${PN}/ | ||
25 | install -m 0644 License.txt ${D}${datadir}/doc/${PN}/ | ||
26 | } | ||
27 | |||
28 | pkg_postinst () { | ||
29 | #!/bin/sh | ||
30 | fc-cache | ||
31 | } | ||
32 | |||
33 | PACKAGES = "${PN}" | ||
34 | FILES_${PN} += "${sysconfdir} ${datadir}" | ||
diff --git a/meta/recipes-graphics/ttf-fonts/ttf-bitstream-vera_1.10.bb b/meta/recipes-graphics/ttf-fonts/ttf-bitstream-vera_1.10.bb new file mode 100644 index 0000000000..a6f4cd62fb --- /dev/null +++ b/meta/recipes-graphics/ttf-fonts/ttf-bitstream-vera_1.10.bb | |||
@@ -0,0 +1,34 @@ | |||
1 | DESCRIPTION = "The Bitstream Vera fonts - TTF Edition" | ||
2 | SECTION = "x11/fonts" | ||
3 | PRIORITY = "optional" | ||
4 | LICENSE = "Bitstream Vera" | ||
5 | PACKAGE_ARCH = "all" | ||
6 | PR = "r3" | ||
7 | RDEPENDS = "fontconfig-utils" | ||
8 | |||
9 | SRC_URI = "http://ftp.gnome.org/pub/GNOME/sources/ttf-bitstream-vera/1.10/ttf-bitstream-vera-${PV}.tar.bz2" | ||
10 | |||
11 | do_install () { | ||
12 | install -d ${D}${prefix}/share/fonts/ttf/ | ||
13 | for i in *.ttf; do | ||
14 | install -m 644 $i ${D}${prefix}/share/fonts/ttf/${i} | ||
15 | done | ||
16 | |||
17 | # fontconfig ships this too. not sure what to do about it. | ||
18 | #install -d ${D}${sysconfdir}/fonts | ||
19 | #install -m 644 local.conf ${D}${sysconfdir}/fonts/local.conf | ||
20 | |||
21 | |||
22 | install -d ${D}${prefix}/share/doc/${PN}/ | ||
23 | for i in *.TXT; do | ||
24 | install -m 644 $i ${D}${prefix}/share/doc/${PN}/$i | ||
25 | done | ||
26 | } | ||
27 | |||
28 | pkg_postinst () { | ||
29 | #!/bin/sh | ||
30 | fc-cache | ||
31 | } | ||
32 | |||
33 | |||
34 | FILES_${PN} = "/etc ${datadir}/fonts" | ||
diff --git a/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xdefaults b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xdefaults new file mode 100644 index 0000000000..f5b69dd516 --- /dev/null +++ b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xdefaults | |||
@@ -0,0 +1,3 @@ | |||
1 | Rxvt*scrollBar_right: true | ||
2 | Rxvt*font: xft:Mono:pixelsize=9 | ||
3 | |||
diff --git a/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xserver b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xserver new file mode 100644 index 0000000000..3d4aa74b95 --- /dev/null +++ b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xserver | |||
@@ -0,0 +1,77 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | |||
4 | # note xinit needs full server path | ||
5 | XSERVER=/usr/bin/Xipaq | ||
6 | if [ -f /usr/bin/Xfbdev ]; then | ||
7 | XSERVER=/usr/bin/Xfbdev | ||
8 | fi | ||
9 | if [ -f /usr/bin/Xepson ]; then | ||
10 | XSERVER=/usr/bin/Xepson | ||
11 | fi | ||
12 | if [ -f /usr/bin/Xorg ]; then | ||
13 | XSERVER=/usr/bin/Xorg | ||
14 | fi | ||
15 | if [ -f /usr/bin/Xomap ]; then | ||
16 | XSERVER=/usr/bin/Xomap | ||
17 | fi | ||
18 | |||
19 | . /etc/profile | ||
20 | |||
21 | module_id() { | ||
22 | ## used to read from assets, but sometimes assets is corrupted | ||
23 | # grep "Module ID" /proc/hal/assets | sed "s/.*://" | ||
24 | ## used to read from /proc/hal/model, but that is removed in 2.6 | ||
25 | # echo ' iPAQ' `cat /proc/hal/model` | ||
26 | awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo | ||
27 | } | ||
28 | |||
29 | ARGS=" -br -pn" | ||
30 | |||
31 | if [ "$XSERVER" != "/usr/bin/Xorg" ]; then | ||
32 | |||
33 | . /etc/formfactor/config | ||
34 | |||
35 | ARGS="$ARGS -keybd keyboard" | ||
36 | |||
37 | # use usb mouse if present | ||
38 | if [ -z "$TSLIB_TSDEVICE" ] && [ -e /dev/input/mice ]; then | ||
39 | ARGS="$ARGS -mouse /dev/input/mice" | ||
40 | fi | ||
41 | |||
42 | # kdrive 1.4 onwards needs -mouse args | ||
43 | if [ -n "$TSLIB_TSDEVICE" ]; then | ||
44 | ARGS="$ARGS -mouse tslib" | ||
45 | fi | ||
46 | |||
47 | # start off server in conventional location. | ||
48 | case `module_id` in | ||
49 | "Generic OMAP1510/1610/1710") | ||
50 | ARGS="$ARGS -mouse /dev/input/event0" ;; | ||
51 | "Compulab CM-x270") | ||
52 | #modprobe mbxfb | ||
53 | #ARGS="$ARGS -fb /dev/fb1" | ||
54 | ;; | ||
55 | "Nokia N800") | ||
56 | ARGS="$ARGS -mouse tslib" ;; | ||
57 | "Nokia 770") | ||
58 | ARGS="$ARGS -mouse tslib" ;; | ||
59 | *) | ||
60 | ;; | ||
61 | esac | ||
62 | |||
63 | ARGS="$ARGS -screen ${DISPLAY_WIDTH_PIXELS}x${DISPLAY_HEIGHT_PIXELS}@${DISPLAY_ORIENTATION}x${DISPLAY_BPP}" | ||
64 | |||
65 | if [ ! -z "$DISPLAY_DPI" ]; then | ||
66 | ARGS="$ARGS -dpi $DISPLAY_DPI" | ||
67 | fi | ||
68 | |||
69 | if [ ! -z "$DISPLAY_SUBPIXEL_ORDER" ]; then | ||
70 | ARGS="$ARGS -rgba $DISPLAY_SUBPIXEL_ORDER" | ||
71 | fi | ||
72 | |||
73 | fi | ||
74 | |||
75 | DISPLAY=':0' | ||
76 | |||
77 | exec xinit /etc/X11/Xsession -- $XSERVER $DISPLAY $ARGS $* | ||
diff --git a/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession new file mode 100644 index 0000000000..a87447a879 --- /dev/null +++ b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession | |||
@@ -0,0 +1,38 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | if [ -x /usr/bin/dbus-launch ]; then | ||
4 | # As this is the X session script, always start a new DBus session. | ||
5 | eval `dbus-launch --sh-syntax --exit-with-session` | ||
6 | echo "D-BUS per-session daemon address is: $DBUS_SESSION_BUS_ADDRESS" | ||
7 | fi | ||
8 | |||
9 | . /etc/profile | ||
10 | |||
11 | if [ -f $HOME/.profile ]; then | ||
12 | . $HOME/.profile | ||
13 | fi | ||
14 | |||
15 | SYSSESSIONDIR=/etc/X11/Xsession.d | ||
16 | |||
17 | export CLUTTER_DISABLE_MIPMAPPED_TEXT=1 | ||
18 | |||
19 | for SESSIONFILE in $SYSSESSIONDIR/*; do | ||
20 | set +e | ||
21 | case "$SESSIONFILE" in | ||
22 | *.sh) | ||
23 | . "$SESSIONFILE" | ||
24 | ;; | ||
25 | *.shbg) | ||
26 | "$SESSIONFILE" & | ||
27 | ;; | ||
28 | *~) | ||
29 | # Ignore backup files | ||
30 | ;; | ||
31 | *) | ||
32 | "$SESSIONFILE" | ||
33 | ;; | ||
34 | esac | ||
35 | set -e | ||
36 | done | ||
37 | |||
38 | exit 0 | ||
diff --git a/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/12keymap.sh b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/12keymap.sh new file mode 100644 index 0000000000..a9d102c746 --- /dev/null +++ b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/12keymap.sh | |||
@@ -0,0 +1,4 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | # kdrive 1.4 does not have default keymap in server | ||
4 | #xmodmap - </etc/X11/default.xmodmap | ||
diff --git a/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/89xdgautostart.sh b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/89xdgautostart.sh new file mode 100644 index 0000000000..db7aa229d2 --- /dev/null +++ b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/89xdgautostart.sh | |||
@@ -0,0 +1,7 @@ | |||
1 | XDGAUTOSTART=/etc/xdg/autostart | ||
2 | if [ -d $XDGAUTOSTART ]; then | ||
3 | for SCRIPT in $XDGAUTOSTART/*; do | ||
4 | CMD=`grep ^Exec= $SCRIPT | cut -d '=' -f 2` | ||
5 | $CMD & | ||
6 | done | ||
7 | fi \ No newline at end of file | ||
diff --git a/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/90XWindowManager.sh b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/90XWindowManager.sh new file mode 100644 index 0000000000..b936dedf3b --- /dev/null +++ b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/90XWindowManager.sh | |||
@@ -0,0 +1,7 @@ | |||
1 | if [ -x $HOME/.Xsession ]; then | ||
2 | exec $HOME/.Xsession | ||
3 | elif [ -x /usr/bin/x-session-manager ]; then | ||
4 | exec /usr/bin/x-session-manager | ||
5 | else | ||
6 | exec /usr/bin/x-window-manager | ||
7 | fi | ||
diff --git a/meta/recipes-graphics/x11-common/x11-common/etc/X11/default.xmodmap b/meta/recipes-graphics/x11-common/x11-common/etc/X11/default.xmodmap new file mode 100644 index 0000000000..05a13fa3c8 --- /dev/null +++ b/meta/recipes-graphics/x11-common/x11-common/etc/X11/default.xmodmap | |||
@@ -0,0 +1,260 @@ | |||
1 | keycode 8 = | ||
2 | keycode 9 = Escape | ||
3 | keycode 10 = 1 exclam | ||
4 | keycode 11 = 2 at | ||
5 | keycode 12 = 3 numbersign | ||
6 | keycode 13 = 4 dollar | ||
7 | keycode 14 = 5 percent | ||
8 | keycode 15 = 6 asciicircum | ||
9 | keycode 16 = 7 ampersand braceleft | ||
10 | keycode 17 = 8 asterisk bracketleft | ||
11 | keycode 18 = 9 parenleft bracketright | ||
12 | keycode 19 = 0 parenright braceright | ||
13 | keycode 20 = minus underscore backslash | ||
14 | keycode 21 = equal plus | ||
15 | keycode 22 = BackSpace | ||
16 | keycode 23 = Tab | ||
17 | keycode 24 = q Q q | ||
18 | keycode 25 = w W w | ||
19 | keycode 26 = e E | ||
20 | keycode 27 = r R r | ||
21 | keycode 28 = t T t | ||
22 | keycode 29 = y Y y | ||
23 | keycode 30 = u U u | ||
24 | keycode 31 = i I i | ||
25 | keycode 32 = o O o | ||
26 | keycode 33 = p P p | ||
27 | keycode 34 = bracketleft braceleft | ||
28 | keycode 35 = bracketright braceright asciitilde | ||
29 | keycode 36 = Return | ||
30 | keycode 37 = Control_L | ||
31 | keycode 38 = a A | ||
32 | keycode 39 = s S s | ||
33 | keycode 40 = d D | ||
34 | keycode 41 = f F | ||
35 | keycode 42 = g G g | ||
36 | keycode 43 = h H h | ||
37 | keycode 44 = j J j | ||
38 | keycode 45 = k K k | ||
39 | keycode 46 = l L l | ||
40 | keycode 47 = semicolon colon | ||
41 | keycode 48 = apostrophe quotedbl | ||
42 | keycode 49 = grave asciitilde | ||
43 | keycode 50 = Shift_L | ||
44 | keycode 51 = backslash bar | ||
45 | keycode 52 = z Z z | ||
46 | keycode 53 = x X x | ||
47 | keycode 54 = c C | ||
48 | keycode 55 = v V v | ||
49 | keycode 56 = b B | ||
50 | keycode 57 = n N n | ||
51 | keycode 58 = m M m | ||
52 | keycode 59 = comma less | ||
53 | keycode 60 = period greater | ||
54 | keycode 61 = slash question | ||
55 | keycode 62 = Shift_R | ||
56 | keycode 63 = KP_Multiply | ||
57 | keycode 64 = Alt_L | ||
58 | keycode 65 = space | ||
59 | keycode 66 = Caps_Lock | ||
60 | keycode 67 = F1 F11 | ||
61 | keycode 68 = F2 F12 | ||
62 | keycode 69 = F3 F13 | ||
63 | keycode 70 = F4 F14 | ||
64 | keycode 71 = F5 F15 | ||
65 | keycode 72 = F6 F16 | ||
66 | keycode 73 = F7 F17 | ||
67 | keycode 74 = F8 F18 | ||
68 | keycode 75 = F9 F19 | ||
69 | keycode 76 = F10 F20 | ||
70 | keycode 77 = Num_Lock | ||
71 | keycode 78 = Scroll_Lock | ||
72 | keycode 79 = KP_7 | ||
73 | keycode 80 = KP_8 | ||
74 | keycode 81 = KP_9 | ||
75 | keycode 82 = KP_Subtract | ||
76 | keycode 83 = KP_4 | ||
77 | keycode 84 = KP_5 | ||
78 | keycode 85 = KP_6 | ||
79 | keycode 86 = KP_Add | ||
80 | keycode 87 = KP_1 | ||
81 | keycode 88 = KP_2 | ||
82 | keycode 89 = KP_3 | ||
83 | keycode 90 = KP_0 | ||
84 | keycode 91 = KP_Decimal | ||
85 | keycode 92 = | ||
86 | keycode 93 = | ||
87 | keycode 94 = less greater bar | ||
88 | keycode 95 = F11 | ||
89 | keycode 96 = F12 | ||
90 | keycode 97 = | ||
91 | keycode 98 = | ||
92 | keycode 99 = | ||
93 | keycode 100 = | ||
94 | keycode 101 = | ||
95 | keycode 102 = | ||
96 | keycode 103 = | ||
97 | keycode 104 = KP_Enter | ||
98 | keycode 105 = Control_R | ||
99 | keycode 106 = KP_Divide | ||
100 | keycode 107 = | ||
101 | keycode 108 = Mode_switch | ||
102 | keycode 109 = Break | ||
103 | keycode 110 = Home | ||
104 | keycode 111 = Up | ||
105 | keycode 112 = Prior | ||
106 | keycode 113 = Left | ||
107 | keycode 114 = Right | ||
108 | keycode 115 = End | ||
109 | keycode 116 = Down | ||
110 | keycode 117 = Next | ||
111 | keycode 118 = Insert | ||
112 | keycode 119 = Delete | ||
113 | keycode 120 = Menu | ||
114 | keycode 121 = F13 | ||
115 | keycode 122 = F14 | ||
116 | keycode 123 = Help | ||
117 | keycode 124 = Execute | ||
118 | keycode 125 = F17 | ||
119 | keycode 126 = KP_Subtract | ||
120 | keycode 127 = Pause | ||
121 | keycode 128 = | ||
122 | keycode 129 = | ||
123 | keycode 130 = | ||
124 | keycode 131 = | ||
125 | keycode 132 = | ||
126 | keycode 133 = | ||
127 | keycode 134 = | ||
128 | keycode 135 = | ||
129 | keycode 136 = | ||
130 | keycode 137 = | ||
131 | keycode 138 = | ||
132 | keycode 139 = | ||
133 | keycode 140 = | ||
134 | keycode 141 = | ||
135 | keycode 142 = | ||
136 | keycode 143 = | ||
137 | keycode 144 = | ||
138 | keycode 145 = | ||
139 | keycode 146 = | ||
140 | keycode 147 = | ||
141 | keycode 148 = | ||
142 | keycode 149 = | ||
143 | keycode 150 = | ||
144 | keycode 151 = | ||
145 | keycode 152 = | ||
146 | keycode 153 = | ||
147 | keycode 154 = | ||
148 | keycode 155 = | ||
149 | keycode 156 = | ||
150 | keycode 157 = | ||
151 | keycode 158 = | ||
152 | keycode 159 = | ||
153 | keycode 160 = | ||
154 | keycode 161 = | ||
155 | keycode 162 = | ||
156 | keycode 163 = | ||
157 | keycode 164 = | ||
158 | keycode 165 = | ||
159 | keycode 166 = | ||
160 | keycode 167 = | ||
161 | keycode 168 = | ||
162 | keycode 169 = | ||
163 | keycode 170 = | ||
164 | keycode 171 = | ||
165 | keycode 172 = | ||
166 | keycode 173 = | ||
167 | keycode 174 = | ||
168 | keycode 175 = | ||
169 | keycode 176 = | ||
170 | keycode 177 = | ||
171 | keycode 178 = | ||
172 | keycode 179 = | ||
173 | keycode 180 = | ||
174 | keycode 181 = | ||
175 | keycode 182 = | ||
176 | keycode 183 = | ||
177 | keycode 184 = | ||
178 | keycode 185 = | ||
179 | keycode 186 = | ||
180 | keycode 187 = | ||
181 | keycode 188 = | ||
182 | keycode 189 = | ||
183 | keycode 190 = | ||
184 | keycode 191 = | ||
185 | keycode 192 = | ||
186 | keycode 193 = | ||
187 | keycode 194 = | ||
188 | keycode 195 = | ||
189 | keycode 196 = | ||
190 | keycode 197 = | ||
191 | keycode 198 = | ||
192 | keycode 199 = | ||
193 | keycode 200 = | ||
194 | keycode 201 = | ||
195 | keycode 202 = | ||
196 | keycode 203 = | ||
197 | keycode 204 = | ||
198 | keycode 205 = | ||
199 | keycode 206 = | ||
200 | keycode 207 = | ||
201 | keycode 208 = | ||
202 | keycode 209 = | ||
203 | keycode 210 = | ||
204 | keycode 211 = | ||
205 | keycode 212 = | ||
206 | keycode 213 = | ||
207 | keycode 214 = | ||
208 | keycode 215 = | ||
209 | keycode 216 = | ||
210 | keycode 217 = | ||
211 | keycode 218 = | ||
212 | keycode 219 = | ||
213 | keycode 220 = | ||
214 | keycode 221 = | ||
215 | keycode 222 = | ||
216 | keycode 223 = | ||
217 | keycode 224 = | ||
218 | keycode 225 = | ||
219 | keycode 226 = | ||
220 | keycode 227 = | ||
221 | keycode 228 = | ||
222 | keycode 229 = | ||
223 | keycode 230 = | ||
224 | keycode 231 = | ||
225 | keycode 232 = | ||
226 | keycode 233 = | ||
227 | keycode 234 = | ||
228 | keycode 235 = | ||
229 | keycode 236 = | ||
230 | keycode 237 = | ||
231 | keycode 238 = | ||
232 | keycode 239 = | ||
233 | keycode 240 = | ||
234 | keycode 241 = | ||
235 | keycode 242 = | ||
236 | keycode 243 = | ||
237 | keycode 244 = | ||
238 | keycode 245 = | ||
239 | keycode 246 = | ||
240 | keycode 247 = | ||
241 | keycode 248 = | ||
242 | keycode 249 = | ||
243 | keycode 250 = | ||
244 | keycode 251 = | ||
245 | keycode 252 = | ||
246 | keycode 253 = | ||
247 | keycode 254 = | ||
248 | |||
249 | add shift = Shift_L | ||
250 | add shift = Shift_R | ||
251 | add shift = Menu | ||
252 | add lock = Caps_Lock | ||
253 | add control = Control_L | ||
254 | add control = Control_R | ||
255 | add mod1 = Alt_L | ||
256 | add mod2 = Num_Lock | ||
257 | !mod3 | ||
258 | add mod4 = Mode_switch | ||
259 | !mod5 | ||
260 | |||
diff --git a/meta/recipes-graphics/x11-common/x11-common_0.1.bb b/meta/recipes-graphics/x11-common/x11-common_0.1.bb new file mode 100644 index 0000000000..6791f961a1 --- /dev/null +++ b/meta/recipes-graphics/x11-common/x11-common_0.1.bb | |||
@@ -0,0 +1,17 @@ | |||
1 | DESCRIPTION = "Common X11 scripts" | ||
2 | LICENSE = "GPLv2" | ||
3 | SECTION = "x11" | ||
4 | RDEPENDS_${PN} = "xmodmap xdpyinfo xtscal xinit formfactor" | ||
5 | PR = "r38" | ||
6 | |||
7 | SRC_URI = "file://etc" | ||
8 | S = ${WORKDIR} | ||
9 | |||
10 | PACKAGE_ARCH = "all" | ||
11 | |||
12 | do_install() { | ||
13 | cp -R ${S}/etc ${D}/etc | ||
14 | chmod -R 755 ${D}/etc | ||
15 | find ${D}/etc -type d -name .svn -prune -exec rm -rf {} \; | ||
16 | find ${D}/etc -type f -name \*~ -exec rm -rf {} \; | ||
17 | } | ||
diff --git a/meta/recipes-graphics/x11-common/xserver-nodm-init.bb b/meta/recipes-graphics/x11-common/xserver-nodm-init.bb new file mode 100644 index 0000000000..c77b2f0f8b --- /dev/null +++ b/meta/recipes-graphics/x11-common/xserver-nodm-init.bb | |||
@@ -0,0 +1,22 @@ | |||
1 | DESCRIPTION = "Simple Xserver Init Script (no dm)" | ||
2 | LICENSE = "GPL" | ||
3 | SECTION = "x11" | ||
4 | PRIORITY = "optional" | ||
5 | PR = "r22" | ||
6 | RDEPENDS_${PN} = "dbus-wait sudo" | ||
7 | |||
8 | SRC_URI = "file://xserver-nodm" | ||
9 | S = ${WORKDIR} | ||
10 | |||
11 | PACKAGE_ARCH = "all" | ||
12 | |||
13 | do_install() { | ||
14 | install -d ${D}/etc | ||
15 | install -d ${D}/etc/init.d | ||
16 | install xserver-nodm ${D}/etc/init.d | ||
17 | } | ||
18 | |||
19 | inherit update-rc.d | ||
20 | |||
21 | INITSCRIPT_NAME = "xserver-nodm" | ||
22 | INITSCRIPT_PARAMS = "start 9 5 2 . stop 20 0 1 6 ." | ||
diff --git a/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm b/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm new file mode 100755 index 0000000000..69ea949724 --- /dev/null +++ b/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm | |||
@@ -0,0 +1,58 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | ### BEGIN INIT INFO | ||
4 | # Provides: xserver | ||
5 | # Required-Start: $local_fs $remote_fs dbus | ||
6 | # Required-Stop: $local_fs $remote_fs | ||
7 | # Default-Start: 2 3 4 5 | ||
8 | # Default-Stop: 0 1 6 | ||
9 | ### END INIT INFO | ||
10 | |||
11 | killproc() { # kill the named process(es) | ||
12 | pid=`/bin/pidof $1` | ||
13 | [ "$pid" != "" ] && kill $pid | ||
14 | } | ||
15 | |||
16 | read CMDLINE < /proc/cmdline | ||
17 | for x in $CMDLINE; do | ||
18 | case $x in | ||
19 | x11=false) | ||
20 | echo "X Server disabled" | ||
21 | exit 0; | ||
22 | ;; | ||
23 | esac | ||
24 | done | ||
25 | |||
26 | case "$1" in | ||
27 | start) | ||
28 | . /etc/profile | ||
29 | username=root | ||
30 | echo "Starting Xserver" | ||
31 | if [ -f /etc/X11/Xusername ]; then | ||
32 | username=`cat /etc/X11/Xusername` | ||
33 | fi | ||
34 | # Using sudo -i here has the nice side effect of making sire | ||
35 | # HOME, USER and other previously problematic variables | ||
36 | # are set correctly | ||
37 | sudo -b -i -u $username /etc/X11/Xserver | ||
38 | # Wait for the desktop to say its finished loading | ||
39 | dbus-wait org.matchbox_project.desktop Loaded | ||
40 | ;; | ||
41 | |||
42 | stop) | ||
43 | echo "Stopping XServer" | ||
44 | killproc xinit | ||
45 | ;; | ||
46 | |||
47 | restart) | ||
48 | $0 stop | ||
49 | sleep 1 | ||
50 | $0 start | ||
51 | ;; | ||
52 | |||
53 | *) | ||
54 | echo "usage: $0 { start | stop | restart }" | ||
55 | ;; | ||
56 | esac | ||
57 | |||
58 | exit 0 | ||
diff --git a/meta/recipes-graphics/xcb/libpthread-stubs_0.3.bb b/meta/recipes-graphics/xcb/libpthread-stubs_0.3.bb new file mode 100644 index 0000000000..8ded7a0747 --- /dev/null +++ b/meta/recipes-graphics/xcb/libpthread-stubs_0.3.bb | |||
@@ -0,0 +1,19 @@ | |||
1 | DESCRIPTION = "This library provides weak aliases for pthread functions \ | ||
2 | not provided in libc or otherwise available by default." | ||
3 | HOMEPAGE = "http://xcb.freedesktop.org" | ||
4 | BUGTRACKER = "http://bugs.freedesktop.org/buglist.cgi?product=XCB" | ||
5 | SECTION = "x11/libs" | ||
6 | LICENSE = "MIT" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=6edc1fea03d959f0c2d743fe5ca746ad" | ||
8 | PR = "r0" | ||
9 | |||
10 | PARALLEL_MAKE = "" | ||
11 | #DEPENDS = "xcb-proto xproto libxau libxslt-native" | ||
12 | # DEPENDS += "xsltproc-native gperf-native" | ||
13 | |||
14 | SRC_URI = "http://xcb.freedesktop.org/dist/libpthread-stubs-${PV}.tar.bz2" | ||
15 | |||
16 | inherit autotools pkgconfig | ||
17 | |||
18 | RDEPENDS_${PN}-dev = "" | ||
19 | RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPV})" | ||
diff --git a/meta/recipes-graphics/xcb/libxcb.inc b/meta/recipes-graphics/xcb/libxcb.inc new file mode 100644 index 0000000000..37d1f86339 --- /dev/null +++ b/meta/recipes-graphics/xcb/libxcb.inc | |||
@@ -0,0 +1,53 @@ | |||
1 | DESCRIPTION = "XCB: an X protocol C binding" | ||
2 | HOMEPAGE = "http://xcb.freedesktop.org" | ||
3 | BUGTRACKER = "https://bugs.freedesktop.org/enter_bug.cgi?product=XCB" | ||
4 | |||
5 | SECTION = "x11/libs" | ||
6 | LICENSE = "MIT-X" | ||
7 | |||
8 | PARALLEL_MAKE = "" | ||
9 | DEPENDS = "xcb-proto xproto libxau libxslt-native xcb-proto-native" | ||
10 | # DEPENDS += "xsltproc-native gperf-native" | ||
11 | |||
12 | SRC_URI = "http://xcb.freedesktop.org/dist/libxcb-${PV}.tar.bz2" | ||
13 | # file://xcbincludedir.patch;patch=1" | ||
14 | |||
15 | PACKAGES =+ "libxcb-composite libxcb-damage libxcb-dpms libxcb-glx \ | ||
16 | libxcb-randr libxcb-record libxcb-render libxcb-res \ | ||
17 | libxcb-screensaver libxcb-shape libxcb-shm libxcb-sync \ | ||
18 | libxcb-xevie libxcb-xf86dri libxcb-xfixes libxcb-xlib \ | ||
19 | libxcb-xprint libxcb-xtest libxcb-xv libxcb-xvmc" | ||
20 | |||
21 | FILES_${PN} = "${libdir}/libxcb.so.*" | ||
22 | #FILES_${PN}-dev = "${libdir}/libxcb.* ${libdir}/pkgconfig/*.pc ${includedir}/xcb/*.h" | ||
23 | FILES_libxcb-composite = "${libdir}/libxcb-composite.so.*" | ||
24 | FILES_libxcb-damage = "${libdir}/libxcb-damage.so.*" | ||
25 | FILES_libxcb-dpms = "${libdir}/libxcb-dpms.so.*" | ||
26 | FILES_libxcb-glx = "${libdir}/libxcb-glx.so.*" | ||
27 | FILES_libxcb-randr = "${libdir}/libxcb-randr.so.*" | ||
28 | FILES_libxcb-record = "${libdir}/libxcb-record.so.*" | ||
29 | FILES_libxcb-render = "${libdir}/libxcb-render.so.*" | ||
30 | FILES_libxcb-res = "${libdir}/libxcb-res.so.*" | ||
31 | FILES_libxcb-screensaver = "${libdir}/libxcb-screensaver.so.*" | ||
32 | FILES_libxcb-shape = "${libdir}/libxcb-shape.so.*" | ||
33 | FILES_libxcb-shm = "${libdir}/libxcb-shm.so.*" | ||
34 | FILES_libxcb-sync = "${libdir}/libxcb-sync.so.*" | ||
35 | FILES_libxcb-xevie = "${libdir}/libxcb-xevie.so.*" | ||
36 | FILES_libxcb-xf86dri = "${libdir}/libxcb-xf86dri.so.*" | ||
37 | FILES_libxcb-xfixes = "${libdir}/libxcb-xfixes.so.*" | ||
38 | FILES_libxcb-xinerama = "${libdir}/libxcb-xinerama.so.*" | ||
39 | FILES_libxcb-xlib = "${libdir}/libxcb-xlib.so.*" | ||
40 | FILES_libxcb-xprint = "${libdir}/libxcb-xprint.so.*" | ||
41 | FILES_libxcb-xtest = "${libdir}/libxcb-xtest.so.*" | ||
42 | FILES_libxcb-xv = "${libdir}/libxcb-xv.so.*" | ||
43 | FILES_libxcb-xvmc = "${libdir}/libxcb-xvmc.so.*" | ||
44 | |||
45 | inherit autotools pkgconfig | ||
46 | |||
47 | # XCBPROTO_XCBINCLUDEDIR is setup based on `pkg-config --variable=xcbincludedir xcb-proto` | ||
48 | # but the xcbincludedir variable doesn't point into the staging area, so it needs some | ||
49 | # tweeking here: | ||
50 | do_configure_prepend () { | ||
51 | sed -i "s|XCBPROTO_XCBINCLUDEDIR=|XCBPROTO_XCBINCLUDEDIR=${STAGING_DIR_HOST}/|" \ | ||
52 | ${S}/configure.ac | ||
53 | } | ||
diff --git a/meta/recipes-graphics/xcb/libxcb/xcbincludedir.patch b/meta/recipes-graphics/xcb/libxcb/xcbincludedir.patch new file mode 100644 index 0000000000..cef635096e --- /dev/null +++ b/meta/recipes-graphics/xcb/libxcb/xcbincludedir.patch | |||
@@ -0,0 +1,11 @@ | |||
1 | --- libxcb-1.0.orig/configure.ac 2006-11-23 15:33:01.000000000 +0000 | ||
2 | +++ libxcb-1.0/configure.ac 2008-09-10 20:29:12.000000000 +0100 | ||
3 | @@ -50,7 +50,7 @@ | ||
4 | |||
5 | # Find the xcb-proto protocol descriptions | ||
6 | AC_MSG_CHECKING(XCBPROTO_XCBINCLUDEDIR) | ||
7 | -XCBPROTO_XCBINCLUDEDIR=`$PKG_CONFIG --variable=xcbincludedir xcb-proto` | ||
8 | +XCBPROTO_XCBINCLUDEDIR=$PKG_CONFIG_SYSROOT_DIR/`$PKG_CONFIG --variable=xcbincludedir xcb-proto` | ||
9 | AC_MSG_RESULT($XCBPROTO_XCBINCLUDEDIR) | ||
10 | AC_SUBST(XCBPROTO_XCBINCLUDEDIR) | ||
11 | |||
diff --git a/meta/recipes-graphics/xcb/libxcb_1.1.91.bb b/meta/recipes-graphics/xcb/libxcb_1.1.91.bb new file mode 100644 index 0000000000..ae0cc5761d --- /dev/null +++ b/meta/recipes-graphics/xcb/libxcb_1.1.91.bb | |||
@@ -0,0 +1,6 @@ | |||
1 | include libxcb.inc | ||
2 | PR = "r1" | ||
3 | |||
4 | DEPENDS += "libpthread-stubs xcb-proto-native" | ||
5 | |||
6 | PACKAGES =+ "libxcb-xinerama" | ||
diff --git a/meta/recipes-graphics/xcb/libxcb_1.6.bb b/meta/recipes-graphics/xcb/libxcb_1.6.bb new file mode 100644 index 0000000000..fc80927be6 --- /dev/null +++ b/meta/recipes-graphics/xcb/libxcb_1.6.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | include libxcb.inc | ||
2 | |||
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=d763b081cb10c223435b01e00dc0aba7" | ||
5 | |||
6 | PR = "r0" | ||
7 | |||
8 | DEPENDS += "libpthread-stubs xcb-proto-native" | ||
9 | |||
10 | PACKAGES =+ "libxcb-xinerama" | ||
diff --git a/meta/recipes-graphics/xcb/libxcb_git.bb b/meta/recipes-graphics/xcb/libxcb_git.bb new file mode 100644 index 0000000000..b9ac073410 --- /dev/null +++ b/meta/recipes-graphics/xcb/libxcb_git.bb | |||
@@ -0,0 +1,11 @@ | |||
1 | DEFAULT_PREFERENCE = "-1" | ||
2 | |||
3 | include libxcb.inc | ||
4 | PV = "1.1.90.1+gitr${SRCREV}" | ||
5 | |||
6 | DEPENDS += "libpthread-stubs xcb-proto-native" | ||
7 | |||
8 | SRC_URI = "git://anongit.freedesktop.org/git/xcb/libxcb;protocol=git" | ||
9 | S = "${WORKDIR}/git" | ||
10 | |||
11 | PACKAGES =+ "libxcb-xinerama" | ||
diff --git a/meta/recipes-graphics/xcb/xcb-proto.inc b/meta/recipes-graphics/xcb/xcb-proto.inc new file mode 100644 index 0000000000..2e1810f6f2 --- /dev/null +++ b/meta/recipes-graphics/xcb/xcb-proto.inc | |||
@@ -0,0 +1,18 @@ | |||
1 | DESCRIPTION = "XCB: an X protocol C binding" | ||
2 | HOMEPAGE = "http://xcb.freedesktop.org" | ||
3 | BUGTRACKER = "https://bugs.freedesktop.org/enter_bug.cgi?product=XCB" | ||
4 | |||
5 | SECTION = "x11/libs" | ||
6 | LICENSE = "MIT-X" | ||
7 | |||
8 | SRC_URI = "http://xcb.freedesktop.org/dist/xcb-proto-${PV}.tar.bz2" | ||
9 | |||
10 | inherit autotools pkgconfig | ||
11 | |||
12 | FILES_${PN}-dev += "${datadir}/xcb/*.xml" | ||
13 | |||
14 | RDEPENDS_${PN}-dev = "" | ||
15 | RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPV})" | ||
16 | |||
17 | DEPENDS_append_virtclass-native = " python-native" | ||
18 | BBCLASSEXTEND = "native" | ||
diff --git a/meta/recipes-graphics/xcb/xcb-proto_1.6.bb b/meta/recipes-graphics/xcb/xcb-proto_1.6.bb new file mode 100644 index 0000000000..a367b7cacf --- /dev/null +++ b/meta/recipes-graphics/xcb/xcb-proto_1.6.bb | |||
@@ -0,0 +1,7 @@ | |||
1 | include xcb-proto.inc | ||
2 | |||
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=d763b081cb10c223435b01e00dc0aba7 \ | ||
5 | file://src/dri2.xml;beginline=2;endline=28;md5=f8763b13ff432e8597e0d610cf598e65" | ||
6 | |||
7 | PR = "r0" | ||
diff --git a/meta/recipes-graphics/xcb/xcb-proto_git.bb b/meta/recipes-graphics/xcb/xcb-proto_git.bb new file mode 100644 index 0000000000..b96fc121c5 --- /dev/null +++ b/meta/recipes-graphics/xcb/xcb-proto_git.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | DEFAULT_PREFERENCE = "-1" | ||
2 | |||
3 | include xcb-proto.inc | ||
4 | PV = "1.2+gitr${SRCREV}" | ||
5 | PR = "r1" | ||
6 | |||
7 | SRC_URI = "git://anongit.freedesktop.org/git/xcb/proto;protocol=git" | ||
8 | S = "${WORKDIR}/git" | ||
diff --git a/meta/recipes-graphics/xcb/xcb-util.inc b/meta/recipes-graphics/xcb/xcb-util.inc new file mode 100644 index 0000000000..6bda3d0bfa --- /dev/null +++ b/meta/recipes-graphics/xcb/xcb-util.inc | |||
@@ -0,0 +1,30 @@ | |||
1 | DESCRIPTION = "XCB: an X protocol C binding" | ||
2 | HOMEPAGE = "http://xcb.freedesktop.org/XcbUtil/" | ||
3 | BUGTRACKER = "https://bugs.freedesktop.org/enter_bug.cgi?product=XCB" | ||
4 | |||
5 | LICENSE = "MIT" | ||
6 | |||
7 | SECTION = "x11/libs" | ||
8 | |||
9 | DEPENDS = "libxcb" | ||
10 | DEPENDS += "gperf-native" | ||
11 | |||
12 | PARALLEL_MAKE = "" | ||
13 | |||
14 | SRC_URI = "http://xcb.freedesktop.org/dist/xcb-util-${PV}.tar.bz2" | ||
15 | |||
16 | PACKAGES =+ "libxcbatom libxcbaux libxcbevent libxcbicccm \ | ||
17 | libxcbimage libxcbkeysyms libxcbproperty \ | ||
18 | libxcbreply libxcbwm" | ||
19 | |||
20 | FILES_libxcbatom = "${libdir}/libXCBAtom.so.*" | ||
21 | FILES_libxcbaux = "${libdir}/libXCBAux.so.*" | ||
22 | FILES_libxcbevent = "${libdir}/libXCBEvent.so.*" | ||
23 | FILES_libxcbicccm = "${libdir}/libXCBICCCM.so.*" | ||
24 | FILES_libxcbimage = "${libdir}/libXCBImage.so.*" | ||
25 | FILES_libxcbkeysyms = "${libdir}/libXCBKeysyms.so.*" | ||
26 | FILES_libxcbproperty = "${libdir}/libXCBProperty.so.*" | ||
27 | FILES_libxcbreply = "${libdir}/libXCBReply.so.*" | ||
28 | FILES_libxcbwm = "${libdir}/libXCBWM.so.*" | ||
29 | |||
30 | inherit autotools pkgconfig | ||
diff --git a/meta/recipes-graphics/xcb/xcb-util_0.3.6.bb b/meta/recipes-graphics/xcb/xcb-util_0.3.6.bb new file mode 100644 index 0000000000..b0e50d85c3 --- /dev/null +++ b/meta/recipes-graphics/xcb/xcb-util_0.3.6.bb | |||
@@ -0,0 +1,15 @@ | |||
1 | require xcb-util.inc | ||
2 | |||
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://xcb-util-common.h;endline=30;md5=6c74595925fd773cc8cf387ff7bc53c7 \ | ||
5 | file://reply/reply.c;endline=27;md5=f9a1d6b55bba632d349949cbf33cd635 \ | ||
6 | file://aux/xcb_aux.c;endline=30;md5=ae305b9c2a38f9ba27060191046a6460 \ | ||
7 | file://renderutil/xcb_renderutil.h;endline=24;md5=d0ddab3052dd4949c93cfcb0891c96df \ | ||
8 | file://event/xcb_event.h;endline=27;md5=627be355aee59e1b8ade80d5bd90fad9 \ | ||
9 | file://property/xcb_property.h;endline=27;md5=f5890866ee0c655c36ef1c6c738fee6b \ | ||
10 | file://keysyms/keysyms.c;endline=30;md5=2f8de023ed823bb92f0b47900574ea9e \ | ||
11 | file://image/xcb_pixel.h;beginline=4;endline=27;md5=48cd25ae55e7de525fe1e1a3a7672e1c" | ||
12 | |||
13 | |||
14 | PR = "r0" | ||
15 | |||
diff --git a/meta/recipes-graphics/xcursor-transparent-theme/xcursor-transparent-theme-0.1.1/fix_watch_cursor.patch b/meta/recipes-graphics/xcursor-transparent-theme/xcursor-transparent-theme-0.1.1/fix_watch_cursor.patch new file mode 100644 index 0000000000..73a5b2a87a --- /dev/null +++ b/meta/recipes-graphics/xcursor-transparent-theme/xcursor-transparent-theme-0.1.1/fix_watch_cursor.patch | |||
@@ -0,0 +1,24 @@ | |||
1 | diff -NurP xcursor-transparent-theme-0.1.1-orig/cursors/Makefile.am xcursor-transparent-theme-0.1.1/cursors/Makefile.am | ||
2 | --- xcursor-transparent-theme-0.1.1-orig/cursors/Makefile.am 2003-10-30 13:13:59.000000000 +0100 | ||
3 | +++ xcursor-transparent-theme-0.1.1/cursors/Makefile.am 2005-12-20 23:35:17.000000000 +0100 | ||
4 | @@ -79,7 +79,7 @@ | ||
5 | ul_angle \ | ||
6 | ur_angle \ | ||
7 | v_double_arrow \ | ||
8 | - watcha \ | ||
9 | + watch \ | ||
10 | xterm | ||
11 | |||
12 | CURSOR_DIR = $(datadir)/icons/xcursor-transparent/cursors | ||
13 | diff -NurP xcursor-transparent-theme-0.1.1-orig/cursors/Makefile.in xcursor-transparent-theme-0.1.1/cursors/Makefile.in | ||
14 | --- xcursor-transparent-theme-0.1.1-orig/cursors/Makefile.in 2003-10-31 15:31:13.000000000 +0100 | ||
15 | +++ xcursor-transparent-theme-0.1.1/cursors/Makefile.in 2005-12-20 23:35:36.000000000 +0100 | ||
16 | @@ -67,7 +67,7 @@ | ||
17 | PACKAGE = @PACKAGE@ | ||
18 | VERSION = @VERSION@ | ||
19 | |||
20 | -CURSOR_NAMES = 00008160000006810000408080010102 028006030e0e7ebffc7f7070c0600140 03b6e0fcb3499374a867c041f52298f0 08e8e1c95fe2fc01f976f1e063a24ccd 14fef782d02440884392942c11205230 2870a09082c103050810ffdffffe0204 3ecb610c1bf2410f44200f48c40d3599 4498f0e0c1937ffe01fd06f973665830 9d800788f1b08800ae810202380a0822 c7088f0f3e6c8088236ef8e1e3e70000 d9ce0ab605698f320427677b458ad60b e29285e634086352946a0e7090d73106 fcf1c3c7cd4491d801f1e1c78f100000 X_cursor arrow base_arrow_down base_arrow_up based_arrow_down based_arrow_up bd_double_arrow boat bottom_left_corner bottom_right_corner bottom_side bottom_tee center_ptr circle cross cross_reverse crossed_circle crosshair dot dot_box_mask dotbox double_arrow draft_large draft_small draped_box exchange fd_double_arrow fleur gumby h_double_arrow hand hand1 hand2 left_ptr left_ptr_watch left_side left_tee ll_angle lr_angle move pencil pirate plus question_arrow right_ptr right_side right_tee sailboat sb_down_arrow sb_h_double_arrow sb_left_arrow sb_right_arrow sb_up_arrow sb_v_double_arrow shuttle sizing target tcross top_left_arrow top_left_corner top_right_corner top_side top_tee trek ul_angle ur_angle v_double_arrow watcha xterm | ||
21 | +CURSOR_NAMES = 00008160000006810000408080010102 028006030e0e7ebffc7f7070c0600140 03b6e0fcb3499374a867c041f52298f0 08e8e1c95fe2fc01f976f1e063a24ccd 14fef782d02440884392942c11205230 2870a09082c103050810ffdffffe0204 3ecb610c1bf2410f44200f48c40d3599 4498f0e0c1937ffe01fd06f973665830 9d800788f1b08800ae810202380a0822 c7088f0f3e6c8088236ef8e1e3e70000 d9ce0ab605698f320427677b458ad60b e29285e634086352946a0e7090d73106 fcf1c3c7cd4491d801f1e1c78f100000 X_cursor arrow base_arrow_down base_arrow_up based_arrow_down based_arrow_up bd_double_arrow boat bottom_left_corner bottom_right_corner bottom_side bottom_tee center_ptr circle cross cross_reverse crossed_circle crosshair dot dot_box_mask dotbox double_arrow draft_large draft_small draped_box exchange fd_double_arrow fleur gumby h_double_arrow hand hand1 hand2 left_ptr left_ptr_watch left_side left_tee ll_angle lr_angle move pencil pirate plus question_arrow right_ptr right_side right_tee sailboat sb_down_arrow sb_h_double_arrow sb_left_arrow sb_right_arrow sb_up_arrow sb_v_double_arrow shuttle sizing target tcross top_left_arrow top_left_corner top_right_corner top_side top_tee trek ul_angle ur_angle v_double_arrow watch xterm | ||
22 | |||
23 | |||
24 | CURSOR_DIR = $(datadir)/icons/xcursor-transparent/cursors | ||
diff --git a/meta/recipes-graphics/xcursor-transparent-theme/xcursor-transparent-theme-0.1.1/use-relative-symlinks.patch b/meta/recipes-graphics/xcursor-transparent-theme/xcursor-transparent-theme-0.1.1/use-relative-symlinks.patch new file mode 100644 index 0000000000..df28dfbc88 --- /dev/null +++ b/meta/recipes-graphics/xcursor-transparent-theme/xcursor-transparent-theme-0.1.1/use-relative-symlinks.patch | |||
@@ -0,0 +1,11 @@ | |||
1 | diff -ur xcursor-transparent-theme-0.1.1~/cursors/Makefile.am xcursor-transparent-theme-0.1.1/cursors/Makefile.am | ||
2 | --- xcursor-transparent-theme-0.1.1~/cursors/Makefile.am 2003-10-30 12:13:59.000000000 +0000 | ||
3 | +++ xcursor-transparent-theme-0.1.1/cursors/Makefile.am 2004-07-27 12:56:24.000000000 +0100 | ||
4 | @@ -91,6 +91,6 @@ | ||
5 | $(INSTALL_DATA) $(CURSOR_REAL) $(DESTDIR)$(CURSOR_DIR)/ | ||
6 | for CURSOR in $(CURSOR_NAMES); do \ | ||
7 | echo '-- Installing cursor '$$CURSOR; \ | ||
8 | - ln -s $(DESTDIR)$(CURSOR_DIR)/transp $(DESTDIR)$(CURSOR_DIR)/$$CURSOR; \ | ||
9 | + ln -s transp $(DESTDIR)$(CURSOR_DIR)/$$CURSOR; \ | ||
10 | done | ||
11 | |||
diff --git a/meta/recipes-graphics/xcursor-transparent-theme/xcursor-transparent-theme_0.1.1.bb b/meta/recipes-graphics/xcursor-transparent-theme/xcursor-transparent-theme_0.1.1.bb new file mode 100644 index 0000000000..67ca086be7 --- /dev/null +++ b/meta/recipes-graphics/xcursor-transparent-theme/xcursor-transparent-theme_0.1.1.bb | |||
@@ -0,0 +1,18 @@ | |||
1 | DESCRIPTION = "Transparent xcursor theme for handheld systems" | ||
2 | HOMEPAGE = "http://www.matchbox-project.org/" | ||
3 | BUGTRACKER = "http://bugzilla.openedhand.com/" | ||
4 | |||
5 | LICENSE = "GPLv2" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | ||
7 | |||
8 | SECTION = "x11/base" | ||
9 | PR="r3" | ||
10 | |||
11 | SRC_URI = "http://matchbox-project.org/sources/utils/xcursor-transparent-theme-${PV}.tar.gz \ | ||
12 | file://use-relative-symlinks.patch;patch=1 \ | ||
13 | file://fix_watch_cursor.patch;patch=1" | ||
14 | FILES_${PN} = "${datadir}/icons/xcursor-transparent/cursors/*" | ||
15 | |||
16 | inherit autotools | ||
17 | |||
18 | PACKAGE_ARCH = "all" | ||
diff --git a/meta/recipes-graphics/xorg-app/mkfontdir_1.0.5.bb b/meta/recipes-graphics/xorg-app/mkfontdir_1.0.5.bb new file mode 100644 index 0000000000..ebd5775725 --- /dev/null +++ b/meta/recipes-graphics/xorg-app/mkfontdir_1.0.5.bb | |||
@@ -0,0 +1,11 @@ | |||
1 | require xorg-app-common.inc | ||
2 | |||
3 | DESCRIPTION = "a program to create an index of X font files in a directory" | ||
4 | |||
5 | PE = "1" | ||
6 | |||
7 | RDEPENDS += "mkfontscale" | ||
8 | |||
9 | BBCLASSEXTEND = "native" | ||
10 | |||
11 | LIC_FILES_CHKSUM = "file://COPYING;md5=b4fcf2b90cadbfc15009b9e124dc3a3f" | ||
diff --git a/meta/recipes-graphics/xorg-app/mkfontscale_1.0.7.bb b/meta/recipes-graphics/xorg-app/mkfontscale_1.0.7.bb new file mode 100644 index 0000000000..46a73111b1 --- /dev/null +++ b/meta/recipes-graphics/xorg-app/mkfontscale_1.0.7.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | require xorg-app-common.inc | ||
2 | |||
3 | DESCRIPTION = "a program to create an index of scalable font files for X" | ||
4 | |||
5 | DEPENDS += " zlib libfontenc freetype virtual/libx11" | ||
6 | |||
7 | BBCLASSEXTEND = "native" | ||
8 | |||
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=8ecbbbc1259a329e96ccc4dd86ad2ca2" | ||
diff --git a/meta/recipes-graphics/xorg-app/x11perf_1.5.bb b/meta/recipes-graphics/xorg-app/x11perf_1.5.bb new file mode 100644 index 0000000000..35680e7925 --- /dev/null +++ b/meta/recipes-graphics/xorg-app/x11perf_1.5.bb | |||
@@ -0,0 +1,6 @@ | |||
1 | require xorg-app-common.inc | ||
2 | |||
3 | DESCRIPTION = "X11 server performance test program" | ||
4 | DEPENDS += "libxmu libxrender libxft libxext fontconfig" | ||
5 | PR = "r1" | ||
6 | PE = "1" | ||
diff --git a/meta/recipes-graphics/xorg-app/xauth_1.0.4.bb b/meta/recipes-graphics/xorg-app/xauth_1.0.4.bb new file mode 100644 index 0000000000..d5f35768af --- /dev/null +++ b/meta/recipes-graphics/xorg-app/xauth_1.0.4.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | require xorg-app-common.inc | ||
2 | |||
3 | DESCRIPTION = "X application to edit and display the authorization \ | ||
4 | information used in connecting to the X server" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=5ec74dd7ea4d10c4715a7c44f159a40b" | ||
7 | |||
8 | DEPENDS += "libxau libxext libxmu" | ||
9 | PR = "r0" | ||
10 | PE = "1" | ||
diff --git a/meta/recipes-graphics/xorg-app/xbacklight_1.1.bb b/meta/recipes-graphics/xorg-app/xbacklight_1.1.bb new file mode 100644 index 0000000000..78804d734e --- /dev/null +++ b/meta/recipes-graphics/xorg-app/xbacklight_1.1.bb | |||
@@ -0,0 +1,4 @@ | |||
1 | require xorg-app-common.inc | ||
2 | |||
3 | DESCRIPTION = "X Backlight Utility" | ||
4 | DEPENDS += "libxrender libxrandr" | ||
diff --git a/meta/recipes-graphics/xorg-app/xdpyinfo/disable-xkb.patch b/meta/recipes-graphics/xorg-app/xdpyinfo/disable-xkb.patch new file mode 100644 index 0000000000..24af21f4fc --- /dev/null +++ b/meta/recipes-graphics/xorg-app/xdpyinfo/disable-xkb.patch | |||
@@ -0,0 +1,18 @@ | |||
1 | --- xdpyinfo-1.0.1/configure.ac.orig 2006-03-08 16:33:05.000000000 +0100 | ||
2 | +++ xdpyinfo-1.0.1/configure.ac 2006-03-08 16:41:59.000000000 +0100 | ||
3 | @@ -45,11 +45,15 @@ | ||
4 | AC_CHECK_HEADERS([X11/extensions/multibuf.h X11/extensions/XShm.h],,,[#include <X11/Xlib.h>]) | ||
5 | CPPFLAGS="$SAVE_CPPFLAGS"],[echo "not found"]) | ||
6 | |||
7 | +AC_ARG_ENABLE(xkb, AC_HELP_STRING([--disable-xkb], [Disable XKB support]), | ||
8 | + XKB="$enableval", XKB="yes") | ||
9 | +if test "x$XKB" = "xyes" ; then | ||
10 | PKG_CHECK_MODULES(DPY_XKB, x11, | ||
11 | [SAVE_CPPFLAGS="$CPPFLAGS" | ||
12 | CPPFLAGS="$CPPFLAGS $DPY_XKB_CFLAGS $DPY_X11_CFLAGS" | ||
13 | AC_CHECK_HEADERS([X11/extensions/XKB.h X11/XKBlib.h],,,[#include <X11/Xlib.h>]) | ||
14 | CPPFLAGS="$SAVE_CPPFLAGS"],[echo "not found"]) | ||
15 | +fi | ||
16 | |||
17 | PKG_CHECK_MODULES(DPY_XF86VIDMODE, xxf86vm, | ||
18 | [SAVE_CPPFLAGS="$CPPFLAGS" | ||
diff --git a/meta/recipes-graphics/xorg-app/xdpyinfo_1.1.0.bb b/meta/recipes-graphics/xorg-app/xdpyinfo_1.1.0.bb new file mode 100644 index 0000000000..f5d47e1392 --- /dev/null +++ b/meta/recipes-graphics/xorg-app/xdpyinfo_1.1.0.bb | |||
@@ -0,0 +1,11 @@ | |||
1 | require xorg-app-common.inc | ||
2 | |||
3 | DESCRIPTION = "X display information utility" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=4641deddaa80fe7ca88e944e1fd94a94" | ||
5 | DEPENDS += "libxtst libxext libxxf86vm libxxf86dga libxxf86misc libxi libxrender libxinerama libdmx libxp libxau" | ||
6 | PR = "r0" | ||
7 | PE = "1" | ||
8 | |||
9 | SRC_URI += "file://disable-xkb.patch" | ||
10 | |||
11 | EXTRA_OECONF = "--disable-xkb" | ||
diff --git a/meta/recipes-graphics/xorg-app/xev/diet-x11.patch b/meta/recipes-graphics/xorg-app/xev/diet-x11.patch new file mode 100644 index 0000000000..9f515e8c73 --- /dev/null +++ b/meta/recipes-graphics/xorg-app/xev/diet-x11.patch | |||
@@ -0,0 +1,80 @@ | |||
1 | --- | ||
2 | xev.c | 16 ++++++++-------- | ||
3 | 1 file changed, 8 insertions(+), 8 deletions(-) | ||
4 | |||
5 | Index: xev-1.0.2/xev.c | ||
6 | =================================================================== | ||
7 | --- xev-1.0.2.orig/xev.c 2006-06-02 00:25:44.000000000 +0100 | ||
8 | +++ xev-1.0.2/xev.c 2007-05-10 15:22:07.000000000 +0100 | ||
9 | @@ -109,7 +109,7 @@ do_KeyPress (XEvent *eventp) | ||
10 | nbytes = XLookupString (e, str, 256, &ks, NULL); | ||
11 | |||
12 | /* not supposed to call XmbLookupString on a key release event */ | ||
13 | - if (e->type == KeyPress && xic) { | ||
14 | + /*if (e->type == KeyPress && xic) { | ||
15 | do { | ||
16 | nmbbytes = XmbLookupString (xic, e, buf, bsize - 1, &ks, &status); | ||
17 | buf[nmbbytes] = '\0'; | ||
18 | @@ -119,7 +119,7 @@ do_KeyPress (XEvent *eventp) | ||
19 | buf = realloc (buf, bsize); | ||
20 | } | ||
21 | } while (status == XBufferOverflow); | ||
22 | - } | ||
23 | + }*/ | ||
24 | |||
25 | if (ks == NoSymbol) | ||
26 | ksname = "NoSymbol"; | ||
27 | @@ -149,7 +149,7 @@ do_KeyPress (XEvent *eventp) | ||
28 | } | ||
29 | |||
30 | /* not supposed to call XmbLookupString on a key release event */ | ||
31 | - if (e->type == KeyPress && xic) { | ||
32 | + /*if (e->type == KeyPress && xic) { | ||
33 | printf (" XmbLookupString gives %d bytes: ", nmbbytes); | ||
34 | if (nmbbytes > 0) { | ||
35 | dump (buf, nmbbytes); | ||
36 | @@ -157,7 +157,7 @@ do_KeyPress (XEvent *eventp) | ||
37 | } else { | ||
38 | printf ("\n"); | ||
39 | } | ||
40 | - } | ||
41 | + } */ | ||
42 | |||
43 | printf (" XFilterEvent returns: %s\n", | ||
44 | XFilterEvent (eventp, e->window) ? "True" : "False"); | ||
45 | @@ -804,7 +804,7 @@ main (int argc, char **argv) | ||
46 | fprintf (stderr, "%s: XSetLocaleModifiers failed\n", ProgramName); | ||
47 | } | ||
48 | |||
49 | - xim = XOpenIM (dpy, NULL, NULL, NULL); | ||
50 | + /*xim = XOpenIM (dpy, NULL, NULL, NULL); | ||
51 | if (xim == NULL) { | ||
52 | fprintf (stderr, "%s: XOpenIM failed\n", ProgramName); | ||
53 | } | ||
54 | @@ -831,7 +831,7 @@ main (int argc, char **argv) | ||
55 | } | ||
56 | XFree (xim_styles); | ||
57 | } | ||
58 | - } | ||
59 | + }*/ | ||
60 | |||
61 | screen = DefaultScreen (dpy); | ||
62 | |||
63 | @@ -891,7 +891,7 @@ main (int argc, char **argv) | ||
64 | printf ("Outer window is 0x%lx, inner window is 0x%lx\n", w, subw); | ||
65 | } | ||
66 | |||
67 | - if (xim && xim_style) { | ||
68 | + /*if (xim && xim_style) { | ||
69 | xic = XCreateIC (xim, | ||
70 | XNInputStyle, xim_style, | ||
71 | XNClientWindow, w, | ||
72 | @@ -901,7 +901,7 @@ main (int argc, char **argv) | ||
73 | if (xic == NULL) { | ||
74 | fprintf (stderr, "XCreateIC failed\n"); | ||
75 | } | ||
76 | - } | ||
77 | + }*/ | ||
78 | |||
79 | for (done = 0; !done; ) { | ||
80 | XEvent event; | ||
diff --git a/meta/recipes-graphics/xorg-app/xev_1.0.3.bb b/meta/recipes-graphics/xorg-app/xev_1.0.3.bb new file mode 100644 index 0000000000..b7a4070a8f --- /dev/null +++ b/meta/recipes-graphics/xorg-app/xev_1.0.3.bb | |||
@@ -0,0 +1,7 @@ | |||
1 | require xorg-app-common.inc | ||
2 | |||
3 | DESCRIPTION = "X Event Viewer" | ||
4 | LICENSE = "MIT" | ||
5 | PE = "1" | ||
6 | |||
7 | SRC_URI += "file://diet-x11.patch;patch=1" | ||
diff --git a/meta/recipes-graphics/xorg-app/xeyes_1.0.1.bb b/meta/recipes-graphics/xorg-app/xeyes_1.0.1.bb new file mode 100644 index 0000000000..07ce0724fa --- /dev/null +++ b/meta/recipes-graphics/xorg-app/xeyes_1.0.1.bb | |||
@@ -0,0 +1,4 @@ | |||
1 | require xorg-app-common.inc | ||
2 | PE = "1" | ||
3 | |||
4 | DEPENDS += " virtual/libx11 libxau libxt libxext libxmu" | ||
diff --git a/meta/recipes-graphics/xorg-app/xhost_1.0.3.bb b/meta/recipes-graphics/xorg-app/xhost_1.0.3.bb new file mode 100644 index 0000000000..2c643d81a5 --- /dev/null +++ b/meta/recipes-graphics/xorg-app/xhost_1.0.3.bb | |||
@@ -0,0 +1,7 @@ | |||
1 | require xorg-app-common.inc | ||
2 | |||
3 | DESCRIPTION = "Server access control program for X" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=cbe6a2ee97dc38c7265adfec5644689b" | ||
5 | DEPENDS += "libxmu libxau" | ||
6 | PR = "r0" | ||
7 | PE = "1" | ||
diff --git a/meta/recipes-graphics/xorg-app/xinit_1.2.1.bb b/meta/recipes-graphics/xorg-app/xinit_1.2.1.bb new file mode 100644 index 0000000000..7a083a7884 --- /dev/null +++ b/meta/recipes-graphics/xorg-app/xinit_1.2.1.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | require xorg-app-common.inc | ||
2 | |||
3 | DESCRIPTION = "X Window System initializer" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=0d4b5eef75f1584ccbdc5e4a34314407" | ||
5 | PR = "r0" | ||
6 | PE = "1" | ||
7 | |||
8 | FILES_${PN} += "${libdir}X11/xinit" | ||
diff --git a/meta/recipes-graphics/xorg-app/xkbcomp_1.1.1.bb b/meta/recipes-graphics/xorg-app/xkbcomp_1.1.1.bb new file mode 100644 index 0000000000..bc2b788ba2 --- /dev/null +++ b/meta/recipes-graphics/xorg-app/xkbcomp_1.1.1.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | require xorg-app-common.inc | ||
2 | |||
3 | DESCRIPTION = "The X Keyboard Extension essentially replaces the core protocol definition of keyboard." | ||
4 | |||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=08436e4f4476964e2e2dd7e7e41e076a" | ||
6 | |||
7 | DEPENDS += "libxkbfile" | ||
8 | |||
9 | BBCLASSEXTEND = "native" | ||
diff --git a/meta/recipes-graphics/xorg-app/xmodmap_1.0.4.bb b/meta/recipes-graphics/xorg-app/xmodmap_1.0.4.bb new file mode 100644 index 0000000000..d7d31e2677 --- /dev/null +++ b/meta/recipes-graphics/xorg-app/xmodmap_1.0.4.bb | |||
@@ -0,0 +1,7 @@ | |||
1 | require xorg-app-common.inc | ||
2 | |||
3 | DESCRIPTION = "utility for modifying keymaps and pointer button mappings in X" | ||
4 | LICENSE = "MIT" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=4eafccf13653fd18ec3263631e5feb68" | ||
6 | PR = "r0" | ||
7 | PE = "1" | ||
diff --git a/meta/recipes-graphics/xorg-app/xorg-app-common.inc b/meta/recipes-graphics/xorg-app/xorg-app-common.inc new file mode 100644 index 0000000000..4add357cc9 --- /dev/null +++ b/meta/recipes-graphics/xorg-app/xorg-app-common.inc | |||
@@ -0,0 +1,16 @@ | |||
1 | DESCRIPTION = "X application" | ||
2 | HOMEPAGE = "http://www.x.org/" | ||
3 | BUGTRACKER = "https://bugs.freedesktop.org" | ||
4 | SECTION = "x11/apps" | ||
5 | LICENSE = "MIT-X" | ||
6 | DEPENDS = "util-macros virtual/libx11" | ||
7 | |||
8 | XORG_PN = "${BPN}" | ||
9 | |||
10 | SRC_URI = "${XORG_MIRROR}/individual/app/${XORG_PN}-${PV}.tar.bz2" | ||
11 | |||
12 | S = "${WORKDIR}/${XORG_PN}-${PV}" | ||
13 | |||
14 | inherit autotools pkgconfig | ||
15 | |||
16 | FILES_${PN} += " /usr/lib/X11/${XORG_PN}" | ||
diff --git a/meta/recipes-graphics/xorg-app/xprop_1.1.0.bb b/meta/recipes-graphics/xorg-app/xprop_1.1.0.bb new file mode 100644 index 0000000000..e9b0b2ee7f --- /dev/null +++ b/meta/recipes-graphics/xorg-app/xprop_1.1.0.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | require xorg-app-common.inc | ||
2 | |||
3 | DESCRIPTION = "utility to display window and font properties of an X server" | ||
4 | |||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=4641deddaa80fe7ca88e944e1fd94a94" | ||
6 | |||
7 | DEPENDS += " libxmu virtual/libx11" | ||
8 | |||
9 | PR = "r0" | ||
10 | PE = "1" | ||
diff --git a/meta/recipes-graphics/xorg-app/xrandr/resolve_symbol_clash.patch b/meta/recipes-graphics/xorg-app/xrandr/resolve_symbol_clash.patch new file mode 100644 index 0000000000..1ecf9563f6 --- /dev/null +++ b/meta/recipes-graphics/xorg-app/xrandr/resolve_symbol_clash.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | --- | ||
2 | xrandr.c | 6 +++--- | ||
3 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
4 | |||
5 | --- xrandr-1.2.2.orig/xrandr.c | ||
6 | +++ xrandr-1.2.2/xrandr.c | ||
7 | @@ -189,7 +189,7 @@ | ||
8 | |||
9 | #if HAS_RANDR_1_2 | ||
10 | typedef enum _policy { | ||
11 | - clone, extend | ||
12 | + policy_clone, extend | ||
13 | } policy_t; | ||
14 | |||
15 | typedef enum _relation { | ||
16 | @@ -1602,7 +1602,7 @@ | ||
17 | int ret = 0; | ||
18 | #if HAS_RANDR_1_2 | ||
19 | output_t *output = NULL; | ||
20 | - policy_t policy = clone; | ||
21 | + policy_t policy = policy_clone; | ||
22 | Bool setit_1_2 = False; | ||
23 | Bool query_1_2 = False; | ||
24 | Bool modeit = False; | ||
25 | @@ -1863,7 +1863,7 @@ | ||
26 | continue; | ||
27 | } | ||
28 | if (!strcmp ("--clone", argv[i])) { | ||
29 | - policy = clone; | ||
30 | + policy = policy_clone; | ||
31 | setit_1_2 = True; | ||
32 | continue; | ||
33 | } | ||
diff --git a/meta/recipes-graphics/xorg-app/xrandr_1.3.2.bb b/meta/recipes-graphics/xorg-app/xrandr_1.3.2.bb new file mode 100644 index 0000000000..3ddccb2496 --- /dev/null +++ b/meta/recipes-graphics/xorg-app/xrandr_1.3.2.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | require xorg-app-common.inc | ||
2 | |||
3 | DESCRIPTION = "X Resize and Rotate extension command." | ||
4 | LICENSE= "BSD-X" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=fe1608bdb33cf8c62a4438f7d34679b3" | ||
6 | DEPENDS += "libxrandr libxrender" | ||
7 | PE = "1" | ||
8 | PR = "r0" | ||
9 | |||
10 | SRC_URI += "file://resolve_symbol_clash.patch" | ||
diff --git a/meta/recipes-graphics/xorg-app/xrdb/60XDefaults.sh b/meta/recipes-graphics/xorg-app/xrdb/60XDefaults.sh new file mode 100644 index 0000000000..08d8beca33 --- /dev/null +++ b/meta/recipes-graphics/xorg-app/xrdb/60XDefaults.sh | |||
@@ -0,0 +1,3 @@ | |||
1 | if [ -e $HOME/.Xdefaults ]; then | ||
2 | xrdb -merge -nocpp < $HOME/.Xdefaults | ||
3 | fi | ||
diff --git a/meta/recipes-graphics/xorg-app/xrdb_1.0.5.bb b/meta/recipes-graphics/xorg-app/xrdb_1.0.5.bb new file mode 100644 index 0000000000..906d7d8527 --- /dev/null +++ b/meta/recipes-graphics/xorg-app/xrdb_1.0.5.bb | |||
@@ -0,0 +1,14 @@ | |||
1 | require xorg-app-common.inc | ||
2 | |||
3 | DESCRIPTION = "X server resource database utility" | ||
4 | LICENSE = "xrdb" | ||
5 | DEPENDS += "libxmu" | ||
6 | PE = "1" | ||
7 | PR = "r2" | ||
8 | |||
9 | SRC_URI += "file://60XDefaults.sh" | ||
10 | |||
11 | do_install_append() { | ||
12 | install -d ${D}${sysconfdir}/X11/Xsession.d/ | ||
13 | install -m 0755 ${WORKDIR}/60XDefaults.sh ${D}${sysconfdir}/X11/Xsession.d/ | ||
14 | } | ||
diff --git a/meta/recipes-graphics/xorg-app/xset/disable-xkb.patch b/meta/recipes-graphics/xorg-app/xset/disable-xkb.patch new file mode 100644 index 0000000000..6060fbb995 --- /dev/null +++ b/meta/recipes-graphics/xorg-app/xset/disable-xkb.patch | |||
@@ -0,0 +1,18 @@ | |||
1 | --- xset-1.0.1/configure.ac.orig 2006-03-08 19:46:59.000000000 +0100 | ||
2 | +++ xset-1.0.1/configure.ac 2006-03-08 19:47:40.000000000 +0100 | ||
3 | @@ -42,11 +42,15 @@ | ||
4 | AC_CHECK_HEADERS([X11/extensions/dpms.h X11/extensions/MITMisc.h],,,[#include <X11/Xlib.h>]) | ||
5 | CPPFLAGS="$SAVE_CPPFLAGS"],[echo "not found"]) | ||
6 | |||
7 | +AC_ARG_ENABLE(xkb, AC_HELP_STRING([--disable-xkb], [Disable XKB support]), | ||
8 | + XKB="$enableval", XKB="yes") | ||
9 | +if test "x$XKB" = "xyes" ; then | ||
10 | PKG_CHECK_MODULES(SET_XKB, x11, | ||
11 | [SAVE_CPPFLAGS="$CPPFLAGS" | ||
12 | CPPFLAGS="$CPPFLAGS $SET_XKB_CFLAGS $SET_X11_CFLAGS" | ||
13 | AC_CHECK_HEADERS([X11/XKBlib.h],,,[#include <X11/Xlib.h>]) | ||
14 | CPPFLAGS="$SAVE_CPPFLAGS"],[echo "not found"]) | ||
15 | +fi | ||
16 | |||
17 | PKG_CHECK_MODULES(SET_XF86MISC, xxf86misc, | ||
18 | [SAVE_CPPFLAGS="$CPPFLAGS" | ||
diff --git a/meta/recipes-graphics/xorg-app/xset_1.1.0.bb b/meta/recipes-graphics/xorg-app/xset_1.1.0.bb new file mode 100644 index 0000000000..817b097213 --- /dev/null +++ b/meta/recipes-graphics/xorg-app/xset_1.1.0.bb | |||
@@ -0,0 +1,14 @@ | |||
1 | require xorg-app-common.inc | ||
2 | |||
3 | DESCRIPTION = "Utility of setting various user preference options of the display" | ||
4 | LICENSE = "MIT" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=bea81cc9827cdf1af0e12c2b8228cf8d" | ||
6 | DISTRO_PN_ALIAS = "Fedora=xorg-x11-server-utils;Ubuntu=x11-xserver-utils;Debian=x11-xserver-utils;Opensuse=xorg-x11" | ||
7 | DEPENDS += "libxext libxxf86misc libxfontcache libxmu libxp libxau" | ||
8 | PR = "r0" | ||
9 | PE = "1" | ||
10 | |||
11 | SRC_URI += "file://disable-xkb.patch" | ||
12 | |||
13 | CFLAGS += "-D_GNU_SOURCE" | ||
14 | EXTRA_OECONF = "--disable-xkb" | ||
diff --git a/meta/recipes-graphics/xorg-app/xvinfo_1.0.2.bb b/meta/recipes-graphics/xorg-app/xvinfo_1.0.2.bb new file mode 100644 index 0000000000..ac27f13f34 --- /dev/null +++ b/meta/recipes-graphics/xorg-app/xvinfo_1.0.2.bb | |||
@@ -0,0 +1,5 @@ | |||
1 | require xorg-app-common.inc | ||
2 | |||
3 | DESCRIPTION = "Print out X-Video extension adaptor information" | ||
4 | DEPENDS += " libxv" | ||
5 | PE = "1" | ||
diff --git a/meta/recipes-graphics/xorg-app/xwininfo_1.0.5.bb b/meta/recipes-graphics/xorg-app/xwininfo_1.0.5.bb new file mode 100644 index 0000000000..bd3e3e7583 --- /dev/null +++ b/meta/recipes-graphics/xorg-app/xwininfo_1.0.5.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | require xorg-app-common.inc | ||
2 | |||
3 | DESCRIPTION = "window information utility for X" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=2f077ba838116bbe7cfaac34aff40328" | ||
5 | DEPENDS += "libxext libxmu" | ||
6 | |||
7 | PR = "r0" | ||
8 | PE = "0" | ||
diff --git a/meta/recipes-graphics/xorg-driver/xf86-driver-common.inc b/meta/recipes-graphics/xorg-driver/xf86-driver-common.inc new file mode 100644 index 0000000000..550423b0f8 --- /dev/null +++ b/meta/recipes-graphics/xorg-driver/xf86-driver-common.inc | |||
@@ -0,0 +1,29 @@ | |||
1 | DESCRIPTION = "X driver" | ||
2 | HOMEPAGE = "http://www.x.org" | ||
3 | BUGTRACKER = "https://bugs.freedesktop.org" | ||
4 | SECTION = "x11/drivers" | ||
5 | LICENSE = "MIT-X" | ||
6 | |||
7 | PE = "1" | ||
8 | PR = "r0" | ||
9 | |||
10 | DEPENDS = "virtual/xserver-xf86 xproto randrproto util-macros" | ||
11 | |||
12 | XORG_PN = "${PN}" | ||
13 | SRC_URI = "${XORG_MIRROR}/individual/driver/${XORG_PN}-${PV}.tar.bz2" | ||
14 | |||
15 | S = "${WORKDIR}/${XORG_PN}-${PV}" | ||
16 | |||
17 | FILES_${PN} += " ${libdir}/xorg/modules/drivers/*.so" | ||
18 | FILES_${PN}-dbg += " ${libdir}/xorg/modules/drivers/.debug" | ||
19 | |||
20 | inherit autotools pkgconfig | ||
21 | |||
22 | # AC_CHECK_FILE doesn't work when cross compiling, so we create a replacement | ||
23 | # macro that simply assumes the test succeeds. | ||
24 | do_configure_prepend () { | ||
25 | echo 'AC_DEFUN(CC_AC_CHECK_FILE, $2)' > configure.ac.new | ||
26 | sed 's/AC_CHECK_FILE/CC_AC_CHECK_FILE/g' configure.ac >> configure.ac.new | ||
27 | mv configure.ac.new configure.ac | ||
28 | } | ||
29 | |||
diff --git a/meta/recipes-graphics/xorg-driver/xf86-input-common.inc b/meta/recipes-graphics/xorg-driver/xf86-input-common.inc new file mode 100644 index 0000000000..6fc88cf9d0 --- /dev/null +++ b/meta/recipes-graphics/xorg-driver/xf86-input-common.inc | |||
@@ -0,0 +1,7 @@ | |||
1 | include xf86-driver-common.inc | ||
2 | |||
3 | DEPENDS += "inputproto kbproto " | ||
4 | |||
5 | FILES_${PN} += " ${libdir}/xorg/modules/input/*.so" | ||
6 | FILES_${PN}-dbg += " ${libdir}/xorg/modules/input/.debug" | ||
7 | |||
diff --git a/meta/recipes-graphics/xorg-driver/xf86-input-evdev_2.4.0.bb b/meta/recipes-graphics/xorg-driver/xf86-input-evdev_2.4.0.bb new file mode 100644 index 0000000000..fad47fbc00 --- /dev/null +++ b/meta/recipes-graphics/xorg-driver/xf86-input-evdev_2.4.0.bb | |||
@@ -0,0 +1,7 @@ | |||
1 | require xf86-input-common.inc | ||
2 | |||
3 | DESCRIPTION = "X.Org X server -- evdev input driver" | ||
4 | |||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=ebf4ad82cd33b1432eacb1798a43c092" | ||
6 | |||
7 | PR = "r1" | ||
diff --git a/meta/recipes-graphics/xorg-driver/xf86-input-keyboard_1.4.0.bb b/meta/recipes-graphics/xorg-driver/xf86-input-keyboard_1.4.0.bb new file mode 100644 index 0000000000..1efb505e27 --- /dev/null +++ b/meta/recipes-graphics/xorg-driver/xf86-input-keyboard_1.4.0.bb | |||
@@ -0,0 +1,7 @@ | |||
1 | require xf86-input-common.inc | ||
2 | |||
3 | DESCRIPTION = "X.Org X server -- keyboard input driver" | ||
4 | |||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=eae2c98cbb8c60401893ff9313ff3826" | ||
6 | |||
7 | PR = "r1" | ||
diff --git a/meta/recipes-graphics/xorg-driver/xf86-input-keyboard_git.bb b/meta/recipes-graphics/xorg-driver/xf86-input-keyboard_git.bb new file mode 100644 index 0000000000..a6744bda64 --- /dev/null +++ b/meta/recipes-graphics/xorg-driver/xf86-input-keyboard_git.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | require xf86-input-common.inc | ||
2 | |||
3 | DESCRIPTION = "X.Org X server -- keyboard input driver" | ||
4 | |||
5 | PV = "1.3.2+git${SRCPV}" | ||
6 | |||
7 | SRC_URI = "git://anongit.freedesktop.org/git/xorg/driver/xf86-input-keyboard;protocol=git" | ||
8 | S = "${WORKDIR}/git" | ||
9 | |||
diff --git a/meta/recipes-graphics/xorg-driver/xf86-input-mouse/unbreak.patch b/meta/recipes-graphics/xorg-driver/xf86-input-mouse/unbreak.patch new file mode 100644 index 0000000000..665b320df1 --- /dev/null +++ b/meta/recipes-graphics/xorg-driver/xf86-input-mouse/unbreak.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | Unbreak the linux mouse driver by using config.h | ||
2 | |||
3 | RP - 4/11/07 | ||
4 | |||
5 | Index: git/src/lnx_mouse.c | ||
6 | =================================================================== | ||
7 | --- git.orig/src/lnx_mouse.c 2008-11-04 23:46:05.000000000 +0000 | ||
8 | +++ git/src/lnx_mouse.c 2008-11-04 23:46:15.000000000 +0000 | ||
9 | @@ -3,8 +3,8 @@ | ||
10 | * Copyright 1999 by The XFree86 Project, Inc. | ||
11 | */ | ||
12 | |||
13 | -#ifdef HAVE_XORG_CONFIG_H | ||
14 | -#include <xorg-config.h> | ||
15 | +#ifdef HAVE_CONFIG_H | ||
16 | +#include <config.h> | ||
17 | #endif | ||
18 | |||
19 | #include <X11/X.h> | ||
diff --git a/meta/recipes-graphics/xorg-driver/xf86-input-mouse_1.5.0.bb b/meta/recipes-graphics/xorg-driver/xf86-input-mouse_1.5.0.bb new file mode 100644 index 0000000000..44d60bf753 --- /dev/null +++ b/meta/recipes-graphics/xorg-driver/xf86-input-mouse_1.5.0.bb | |||
@@ -0,0 +1,5 @@ | |||
1 | require xf86-input-common.inc | ||
2 | |||
3 | DESCRIPTION = "X.Org X server -- mouse input driver" | ||
4 | |||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=43eb754a9f368985c40a2a5370fc364a" | ||
diff --git a/meta/recipes-graphics/xorg-driver/xf86-input-mouse_git.bb b/meta/recipes-graphics/xorg-driver/xf86-input-mouse_git.bb new file mode 100644 index 0000000000..94dedf104d --- /dev/null +++ b/meta/recipes-graphics/xorg-driver/xf86-input-mouse_git.bb | |||
@@ -0,0 +1,11 @@ | |||
1 | require xf86-input-common.inc | ||
2 | |||
3 | DESCRIPTION = "X.Org X server -- mouse input driver" | ||
4 | |||
5 | PV = "1.3.0+git${SRCPV}" | ||
6 | PR = "r2" | ||
7 | |||
8 | SRC_URI = "git://anongit.freedesktop.org/git/xorg/driver/xf86-input-mouse;protocol=git \ | ||
9 | file://unbreak.patch;patch=1" | ||
10 | S = "${WORKDIR}/git" | ||
11 | |||
diff --git a/meta/recipes-graphics/xorg-driver/xf86-input-synaptics_1.2.1.bb b/meta/recipes-graphics/xorg-driver/xf86-input-synaptics_1.2.1.bb new file mode 100644 index 0000000000..81128394c3 --- /dev/null +++ b/meta/recipes-graphics/xorg-driver/xf86-input-synaptics_1.2.1.bb | |||
@@ -0,0 +1,5 @@ | |||
1 | require xf86-input-common.inc | ||
2 | |||
3 | DESCRIPTION = "X.Org X server -- keyboard input driver" | ||
4 | |||
5 | DEPENDS += "libxi" | ||
diff --git a/meta/recipes-graphics/xorg-driver/xf86-input-synaptics_git.bb b/meta/recipes-graphics/xorg-driver/xf86-input-synaptics_git.bb new file mode 100644 index 0000000000..f7dc3b731c --- /dev/null +++ b/meta/recipes-graphics/xorg-driver/xf86-input-synaptics_git.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | require xf86-input-common.inc | ||
2 | |||
3 | DESCRIPTION = "X.Org X server -- keyboard input driver" | ||
4 | |||
5 | PV = "0.15.2+git${SRCPV}" | ||
6 | |||
7 | SRC_URI = "git://anongit.freedesktop.org/git/xorg/driver/xf86-input-synaptics;protocol=git" | ||
8 | S = "${WORKDIR}/git" | ||
9 | |||
10 | DEPENDS += "libxi" | ||
diff --git a/meta/recipes-graphics/xorg-driver/xf86-input-vmmouse_12.6.9.bb b/meta/recipes-graphics/xorg-driver/xf86-input-vmmouse_12.6.9.bb new file mode 100644 index 0000000000..36418ad59e --- /dev/null +++ b/meta/recipes-graphics/xorg-driver/xf86-input-vmmouse_12.6.9.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | require xf86-input-common.inc | ||
2 | |||
3 | DESCRIPTION = "X.Org X server -- VMWare mouse input driver" | ||
4 | PR = "r0" | ||
5 | |||
6 | RDEPENDS_${PN} += "xf86-input-mouse" | ||
7 | |||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=d1f16420e5ed7ed2133768425dfdab50" | ||
diff --git a/meta/recipes-graphics/xorg-driver/xf86-video-common.inc b/meta/recipes-graphics/xorg-driver/xf86-video-common.inc new file mode 100644 index 0000000000..f2e28170e7 --- /dev/null +++ b/meta/recipes-graphics/xorg-driver/xf86-video-common.inc | |||
@@ -0,0 +1,4 @@ | |||
1 | include xf86-driver-common.inc | ||
2 | |||
3 | DEPENDS =+ "renderproto videoproto xextproto fontsproto" | ||
4 | |||
diff --git a/meta/recipes-graphics/xorg-driver/xf86-video-intel_2.12.0.bb b/meta/recipes-graphics/xorg-driver/xf86-video-intel_2.12.0.bb new file mode 100644 index 0000000000..968c20167f --- /dev/null +++ b/meta/recipes-graphics/xorg-driver/xf86-video-intel_2.12.0.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | require xf86-video-common.inc | ||
2 | |||
3 | DESCRIPTION = "X.Org X server -- Intel i8xx, i9xx display driver" | ||
4 | |||
5 | EXTRA_OECONF += "--disable-xvmc" | ||
6 | |||
7 | DEPENDS += "virtual/libx11 libxvmc drm xf86driproto glproto \ | ||
8 | virtual/libgl xineramaproto xf86driproto libpciaccess" | ||
9 | |||
10 | COMPATIBLE_HOST = '(i.86|x86_64).*-linux' | ||
diff --git a/meta/recipes-graphics/xorg-driver/xf86-video-intel_git.bb b/meta/recipes-graphics/xorg-driver/xf86-video-intel_git.bb new file mode 100644 index 0000000000..7011b7ea79 --- /dev/null +++ b/meta/recipes-graphics/xorg-driver/xf86-video-intel_git.bb | |||
@@ -0,0 +1,16 @@ | |||
1 | require xf86-video-common.inc | ||
2 | |||
3 | DESCRIPTION = "X.Org X server -- Intel i8xx, i9xx display driver" | ||
4 | DEPENDS += "virtual/libx11 libxvmc drm dri2proto glproto \ | ||
5 | virtual/libgl xineramaproto libpciaccess" | ||
6 | |||
7 | PV = "2.10.0+git${SRCPV}" | ||
8 | PR = "r0" | ||
9 | |||
10 | EXTRA_OECONF += "--disable-xvmc --enable-dri --disable-static" | ||
11 | |||
12 | SRC_URI = "git://anongit.freedesktop.org/git/xorg/driver/xf86-video-intel;protocol=git" | ||
13 | |||
14 | S = "${WORKDIR}/git" | ||
15 | |||
16 | COMPATIBLE_HOST = '(i.86|x86_4).*-linux' | ||
diff --git a/meta/recipes-graphics/xorg-driver/xf86-video-omapfb/omapfb-neon.diff b/meta/recipes-graphics/xorg-driver/xf86-video-omapfb/omapfb-neon.diff new file mode 100644 index 0000000000..325ca66f0c --- /dev/null +++ b/meta/recipes-graphics/xorg-driver/xf86-video-omapfb/omapfb-neon.diff | |||
@@ -0,0 +1,146 @@ | |||
1 | --- /tmp/image-format-conversions.h 2009-02-03 10:18:04.000000000 +0100 | ||
2 | +++ git/src/image-format-conversions.h 2009-02-03 10:19:18.000000000 +0100 | ||
3 | @@ -30,6 +30,8 @@ | ||
4 | /* Basic C implementation of YV12/I420 to UYVY conversion */ | ||
5 | void uv12_to_uyvy(int w, int h, int y_pitch, int uv_pitch, uint8_t *y_p, uint8_t *u_p, uint8_t *v_p, uint8_t *dest); | ||
6 | |||
7 | +/* NEON implementation of YV12/I420 to UYVY conversion */ | ||
8 | +void uv12_to_uyvy_neon(int w, int h, int y_pitch, int uv_pitch, uint8_t *y_p, uint8_t *u_p, uint8_t *v_p, uint8_t *dest); | ||
9 | |||
10 | #endif /* __IMAGE_FORMAT_CONVERSIONS_H__ */ | ||
11 | |||
12 | --- /tmp/image-format-conversions.c 2009-02-03 10:18:04.000000000 +0100 | ||
13 | +++ git/src/image-format-conversions.c 2009-02-03 10:16:47.000000000 +0100 | ||
14 | @@ -2,6 +2,7 @@ | ||
15 | * Copyright 2008 Kalle Vahlman, <zuh@iki.fi> | ||
16 | * Ilpo Ruotsalainen, <lonewolf@iki.fi> | ||
17 | * Tuomas Kulve, <tuomas.kulve@movial.com> | ||
18 | + * Ian Rickards, <ian.rickards@arm.com> | ||
19 | * | ||
20 | * | ||
21 | * Permission to use, copy, modify, distribute and sell this software and its | ||
22 | @@ -89,3 +90,104 @@ | ||
23 | } | ||
24 | } | ||
25 | |||
26 | +void uv12_to_uyvy_neon(int w, int h, int y_pitch, int uv_pitch, uint8_t *y_p, uint8_t *u_p, uint8_t *v_p, uint8_t *dest) | ||
27 | +{ | ||
28 | + int x, y; | ||
29 | + uint8_t *dest_even = dest; | ||
30 | + uint8_t *dest_odd = dest + w * 2; | ||
31 | + uint8_t *y_p_even = y_p; | ||
32 | + uint8_t *y_p_odd = y_p + y_pitch; | ||
33 | + | ||
34 | + /*ErrorF("in uv12_to_uyvy, w: %d, pitch: %d\n", w, pitch);*/ | ||
35 | + if (w<16) | ||
36 | + { | ||
37 | + for (y=0; y<h; y+=2) | ||
38 | + { | ||
39 | + for (x=0; x<w; x+=2) | ||
40 | + { | ||
41 | + /* Output two 2x1 macroblocks to form a 2x2 block from input */ | ||
42 | + uint8_t u_val = *u_p++; | ||
43 | + uint8_t v_val = *v_p++; | ||
44 | + | ||
45 | + /* Even row, first pixel */ | ||
46 | + *dest_even++ = u_val; | ||
47 | + *dest_even++ = *y_p_even++; | ||
48 | + | ||
49 | + /* Even row, second pixel */ | ||
50 | + *dest_even++ = v_val; | ||
51 | + *dest_even++ = *y_p_even++; | ||
52 | + | ||
53 | + /* Odd row, first pixel */ | ||
54 | + *dest_odd++ = u_val; | ||
55 | + *dest_odd++ = *y_p_odd++; | ||
56 | + | ||
57 | + /* Odd row, second pixel */ | ||
58 | + *dest_odd++ = v_val; | ||
59 | + *dest_odd++ = *y_p_odd++; | ||
60 | + } | ||
61 | + | ||
62 | + dest_even += w * 2; | ||
63 | + dest_odd += w * 2; | ||
64 | + | ||
65 | + u_p += ((uv_pitch << 1) - w) >> 1; | ||
66 | + v_p += ((uv_pitch << 1) - w) >> 1; | ||
67 | + | ||
68 | + y_p_even += (y_pitch - w) + y_pitch; | ||
69 | + y_p_odd += (y_pitch - w) + y_pitch; | ||
70 | + } | ||
71 | + } | ||
72 | + else | ||
73 | + { | ||
74 | + for (y=0; y<h; y+=2) | ||
75 | + { | ||
76 | + x=w; | ||
77 | + do { | ||
78 | + // avoid using d8-d15 (q4-q7) aapcs callee-save registers | ||
79 | + asm volatile ( | ||
80 | + "1:\n\t" | ||
81 | + "vld1.u8 {d0}, [%[u_p]]!\n\t" | ||
82 | + "sub %[x],%[x],#16\n\t" | ||
83 | + "cmp %[x],#16\n\t" | ||
84 | + "vld1.u8 {d1}, [%[v_p]]!\n\t" | ||
85 | + "vld1.u8 {q1}, [%[y_p_even]]!\n\t" | ||
86 | + "vzip.u8 d0, d1\n\t" | ||
87 | + "vld1.u8 {q2}, [%[y_p_odd]]!\n\t" | ||
88 | + // use 2-element struct stores to zip up y with y&v | ||
89 | + "vst2.u8 {q0,q1}, [%[dest_even]]!\n\t" | ||
90 | + "vmov.u8 q1, q2\n\t" | ||
91 | + "vst2.u8 {q0,q1}, [%[dest_odd]]!\n\t" | ||
92 | + "bhs 1b\n\t" | ||
93 | + : [u_p] "+r" (u_p), [v_p] "+r" (v_p), [y_p_even] "+r" (y_p_even), [y_p_odd] "+r" (y_p_odd), | ||
94 | + [dest_even] "+r" (dest_even), [dest_odd] "+r" (dest_odd), | ||
95 | + [x] "+r" (x) | ||
96 | + : | ||
97 | + : "cc", "memory", "d0","d1","d2","d3","d4","d5" | ||
98 | + ); | ||
99 | + if (x!=0) | ||
100 | + { | ||
101 | + // overlap final 16-pixel block to process requested width exactly | ||
102 | + x = 16-x; | ||
103 | + u_p -= x/2; | ||
104 | + v_p -= x/2; | ||
105 | + y_p_even -= x; | ||
106 | + y_p_odd -= x; | ||
107 | + dest_even -= x*2; | ||
108 | + dest_odd -= x*2; | ||
109 | + x = 16; | ||
110 | + // do another 16-pixel block | ||
111 | + } | ||
112 | + } | ||
113 | + while (x!=0); | ||
114 | + | ||
115 | + dest_even += w * 2; | ||
116 | + dest_odd += w * 2; | ||
117 | + | ||
118 | + u_p += ((uv_pitch << 1) - w) >> 1; | ||
119 | + v_p += ((uv_pitch << 1) - w) >> 1; | ||
120 | + | ||
121 | + y_p_even += (y_pitch - w) + y_pitch; | ||
122 | + y_p_odd += (y_pitch - w) + y_pitch; | ||
123 | + } | ||
124 | + } | ||
125 | +} | ||
126 | + | ||
127 | --- /tmp/omapfb-xv-generic.c 2009-02-03 10:52:18.000000000 +0100 | ||
128 | +++ git/src/omapfb-xv-generic.c 2009-02-03 10:52:24.000000000 +0100 | ||
129 | @@ -240,7 +240,7 @@ | ||
130 | uint8_t *yb = buf; | ||
131 | uint8_t *ub = yb + (src_y_pitch * src_h); | ||
132 | uint8_t *vb = ub + (src_uv_pitch * (src_h / 2)); | ||
133 | - uv12_to_uyvy(src_w & ~15, | ||
134 | + uv12_to_uyvy_neon(src_w & ~15, | ||
135 | src_h & ~15, | ||
136 | src_y_pitch, | ||
137 | src_uv_pitch, | ||
138 | @@ -256,7 +256,7 @@ | ||
139 | uint8_t *yb = buf; | ||
140 | uint8_t *vb = yb + (src_y_pitch * src_h); | ||
141 | uint8_t *ub = vb + (src_uv_pitch * (src_h / 2)); | ||
142 | - uv12_to_uyvy(src_w & ~15, | ||
143 | + uv12_to_uyvy_neon(src_w & ~15, | ||
144 | src_h & ~15, | ||
145 | src_y_pitch, | ||
146 | src_uv_pitch, | ||
diff --git a/meta/recipes-graphics/xorg-driver/xf86-video-omapfb_git.bb b/meta/recipes-graphics/xorg-driver/xf86-video-omapfb_git.bb new file mode 100644 index 0000000000..15bef87198 --- /dev/null +++ b/meta/recipes-graphics/xorg-driver/xf86-video-omapfb_git.bb | |||
@@ -0,0 +1,21 @@ | |||
1 | require xf86-driver-common.inc | ||
2 | |||
3 | DESCRIPTION = "X.Org X server -- OMAP display driver" | ||
4 | DEPENDS += "virtual/libx11" | ||
5 | |||
6 | PE = "1" | ||
7 | PR = "r1" | ||
8 | PV = "0.1.1+git${SRCPV}" | ||
9 | |||
10 | SRC_URI = "git://git.pingu.fi/xf86-video-omapfb.git;protocol=http \ | ||
11 | " | ||
12 | |||
13 | S = "${WORKDIR}/git" | ||
14 | |||
15 | EXTRA_OECONF_armv7a = " --enable-neon " | ||
16 | CFLAGS += " -I${STAGING_INCDIR}/xorg " | ||
17 | |||
18 | # Use overlay 2 on omap3 to enable other apps to use overlay 1 (e.g. dmai or omapfbplay) | ||
19 | do_compile_prepend_armv7a () { | ||
20 | sed -i -e s:fb1:fb2:g ${S}/src/omapfb-xv.c | ||
21 | } | ||
diff --git a/meta/recipes-graphics/xorg-driver/xf86-video-vesa_2.3.0.bb b/meta/recipes-graphics/xorg-driver/xf86-video-vesa_2.3.0.bb new file mode 100644 index 0000000000..3212004db7 --- /dev/null +++ b/meta/recipes-graphics/xorg-driver/xf86-video-vesa_2.3.0.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | require xf86-video-common.inc | ||
2 | |||
3 | EXTRA_OECONF += "--disable-xvmc" | ||
4 | |||
5 | DESCRIPTION = "X.Org X server -- Generic Vesa display driver" | ||
6 | DEPENDS += "virtual/libx11 libxvmc drm xf86driproto glproto \ | ||
7 | virtual/libgl xineramaproto xf86driproto libpciaccess" | ||
8 | |||
9 | COMPATIBLE_HOST = '(i.86|x86_64).*-linux' | ||
diff --git a/meta/recipes-graphics/xorg-driver/xf86-video-vmware_11.0.1.bb b/meta/recipes-graphics/xorg-driver/xf86-video-vmware_11.0.1.bb new file mode 100644 index 0000000000..56daa86c86 --- /dev/null +++ b/meta/recipes-graphics/xorg-driver/xf86-video-vmware_11.0.1.bb | |||
@@ -0,0 +1,12 @@ | |||
1 | require xf86-video-common.inc | ||
2 | |||
3 | DESCRIPTION = "X.Org X server -- VMware SVGA II display driver" | ||
4 | |||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=4641deddaa80fe7ca88e944e1fd94a94" | ||
6 | |||
7 | DEPENDS += "virtual/libx11 libxvmc drm glproto \ | ||
8 | virtual/libgl xineramaproto libpciaccess" | ||
9 | |||
10 | PR = "r1" | ||
11 | |||
12 | COMPATIBLE_HOST = '(i.86.*-linux|x86_64.*-linux)' | ||
diff --git a/meta/recipes-graphics/xorg-font/encodings_1.0.3.bb b/meta/recipes-graphics/xorg-font/encodings_1.0.3.bb new file mode 100644 index 0000000000..02a199fc6a --- /dev/null +++ b/meta/recipes-graphics/xorg-font/encodings_1.0.3.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | DESCRIPTION = "The XFree86/Xorg encoding files" | ||
2 | require xorg-font-common.inc | ||
3 | LICENSE = "Public Domain" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=9da93f2daf2d5572faa2bfaf0dbd9e76" | ||
5 | PE = "1" | ||
6 | PR = "${INC_PR}.1" | ||
7 | |||
8 | DEPENDS = "mkfontscale-native font-util-native" | ||
9 | |||
10 | EXTRA_OECONF += "--with-encodingsdir=${datadir}/fonts/X11/encodings" | ||
diff --git a/meta/recipes-graphics/xorg-font/font-alias-1.0.2/fix_COPYING_1f8141a5e3b585dfccc748400b05c9c24b41e767.patch b/meta/recipes-graphics/xorg-font/font-alias-1.0.2/fix_COPYING_1f8141a5e3b585dfccc748400b05c9c24b41e767.patch new file mode 100644 index 0000000000..db0bd27d41 --- /dev/null +++ b/meta/recipes-graphics/xorg-font/font-alias-1.0.2/fix_COPYING_1f8141a5e3b585dfccc748400b05c9c24b41e767.patch | |||
@@ -0,0 +1,45 @@ | |||
1 | commit 1f8141a5e3b585dfccc748400b05c9c24b41e767 | ||
2 | Author: Gaetan Nadon <memsize@videotron.ca> | ||
3 | Date: Sun Oct 18 20:34:33 2009 -0400 | ||
4 | |||
5 | INSTALL, NEWS, README COPYING or AUTHORS files are missing/incorrect #24206 | ||
6 | |||
7 | Add missing INSTALL file. Use standard GNU file on building tarball | ||
8 | README may have been updated | ||
9 | COPYING may have been updated | ||
10 | Remove AUTHORS file as it is empty and no content available yet. | ||
11 | Remove NEWS file as it is empty and no content available yet. | ||
12 | |||
13 | diff --git a/AUTHORS b/AUTHORS | ||
14 | deleted file mode 100644 | ||
15 | index e69de29..0000000 | ||
16 | diff --git a/COPYING b/COPYING | ||
17 | index 7f33cbf..e917f4b 100644 | ||
18 | --- a/COPYING | ||
19 | +++ b/COPYING | ||
20 | @@ -1,12 +1,9 @@ | ||
21 | -This is a stub file. This package has not yet had its complete licensing | ||
22 | -information compiled. Please see the individual source files for details on | ||
23 | -your rights to use and modify this software. | ||
24 | +Copyright (C) 1994-95 Cronyx Ltd. | ||
25 | +Author: Serge Vakulenko, <vak@cronyx.ru> | ||
26 | |||
27 | -Please submit updated COPYING files to the Xorg bugzilla: | ||
28 | +This software may be used, modified, copied, distributed, and sold, | ||
29 | +in both source and binary form provided that the above copyright | ||
30 | +and these terms are retained. Under no circumstances is the author | ||
31 | +responsible for the proper functioning of this software, nor does | ||
32 | +the author assume any responsibility for damages incurred with its use. | ||
33 | |||
34 | -https://bugs.freedesktop.org/enter_bug.cgi?product=xorg | ||
35 | - | ||
36 | -All licensing questions regarding this software should be directed at the | ||
37 | -Xorg mailing list: | ||
38 | - | ||
39 | -http://lists.freedesktop.org/mailman/listinfo/xorg | ||
40 | diff --git a/INSTALL b/INSTALL | ||
41 | deleted file mode 100644 | ||
42 | index e69de29..0000000 | ||
43 | diff --git a/NEWS b/NEWS | ||
44 | deleted file mode 100644 | ||
45 | index e69de29..0000000 | ||
diff --git a/meta/recipes-graphics/xorg-font/font-alias_1.0.2.bb b/meta/recipes-graphics/xorg-font/font-alias_1.0.2.bb new file mode 100644 index 0000000000..11ad407f3b --- /dev/null +++ b/meta/recipes-graphics/xorg-font/font-alias_1.0.2.bb | |||
@@ -0,0 +1,18 @@ | |||
1 | DESCRIPTION = "X font aliases." | ||
2 | |||
3 | require xorg-font-common.inc | ||
4 | |||
5 | LICENSE = "Font-Alias" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=bf0158b89be493d523d69d9f29265038 \ | ||
7 | file://cyrillic/fonts.alias;md5=f40795b0640d6785826aecd3b16f6124 \ | ||
8 | file://75dpi/fonts.alias;md5=6bc48023f2ae7f3bfc105db7b0ee6b49 \ | ||
9 | file://misc/fonts.alias;md5=a8ec05d528431d4c9703b55a7efd67a8 \ | ||
10 | file://100dpi/fonts.alias;md5=85bebd6ca213aa656c301a72eb4397cb" | ||
11 | |||
12 | SRC_URI += "file://fix_COPYING_1f8141a5e3b585dfccc748400b05c9c24b41e767.patch" | ||
13 | |||
14 | DEPENDS = "virtual/xserver font-util" | ||
15 | RDEPENDS = "encodings font-util" | ||
16 | |||
17 | PE = "1" | ||
18 | PR = "${INC_PR}.0" | ||
diff --git a/meta/recipes-graphics/xorg-font/font-util_1.1.1.bb b/meta/recipes-graphics/xorg-font/font-util_1.1.1.bb new file mode 100644 index 0000000000..ba4623632a --- /dev/null +++ b/meta/recipes-graphics/xorg-font/font-util_1.1.1.bb | |||
@@ -0,0 +1,23 @@ | |||
1 | DESCRIPTION = "X.Org font package creation/installation utilities" | ||
2 | |||
3 | require xorg-font-common.inc | ||
4 | |||
5 | LICENSE = "BSD & MIT-style & Unicode" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=0b73d82c5f21398b013c07e8b4012376 \ | ||
7 | file://ucs2any.c;endline=28;md5=8357dc567fc628bd12696f15b2a33bcb \ | ||
8 | file://bdftruncate.c;endline=26;md5=4f82ffc101a1b165eae9c6998abff937 \ | ||
9 | file://map-ISO8859-1;beginline=9;endline=23;md5=1cecb984063248f29ffe5c46f5c04f34" | ||
10 | |||
11 | PACKAGE_ARCH = "${BASE_PACKAGE_ARCH}" | ||
12 | |||
13 | DEPENDS = "encodings util-macros" | ||
14 | DEPENDS_virtclass-native = "util-macros-native" | ||
15 | RDEPENDS = "mkfontdir mkfontscale encodings" | ||
16 | |||
17 | PR = "${INC_PR}.1" | ||
18 | |||
19 | do_configure_prepend() { | ||
20 | sed -i "s#MAPFILES_PATH=\`pkg-config#MAPFILES_PATH=\`PKG_CONFIG_PATH=\"${STAGING_LIBDIR_NATIVE}/pkg-config\" pkg-config#g" fontutil.m4.in | ||
21 | } | ||
22 | |||
23 | BBCLASSEXTEND = "native" | ||
diff --git a/meta/recipes-graphics/xorg-font/xorg-font-common.inc b/meta/recipes-graphics/xorg-font/xorg-font-common.inc new file mode 100644 index 0000000000..c2175a9613 --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-font-common.inc | |||
@@ -0,0 +1,47 @@ | |||
1 | HOMEPAGE = "http://www.x.org" | ||
2 | BUGTRACKER = "https://bugs.freedesktop.org/enter_bug.cgi?product=xorg" | ||
3 | |||
4 | SECTION = "x11/fonts" | ||
5 | LICENSE = "MIT-X" | ||
6 | |||
7 | DEPENDS = " encodings font-alias font-util-native mkfontdir-native mkfontscale-native" | ||
8 | RDEPENDS = "encodings font-util font-alias" | ||
9 | |||
10 | XORG_PN = "${BPN}" | ||
11 | INC_PR = "r1" | ||
12 | |||
13 | SRC_URI = "${XORG_MIRROR}/individual/font/${XORG_PN}-${PV}.tar.bz2" | ||
14 | S = "${WORKDIR}/${XORG_PN}-${PV}" | ||
15 | |||
16 | inherit autotools pkgconfig | ||
17 | |||
18 | EXTRA_OEMAKE += "FCCACHE=/bin/true" | ||
19 | |||
20 | do_configure_prepend() { | ||
21 | if [ -f "${S}"/configure.ac ] ; then | ||
22 | sed -i "s#^MAPFILES_PATH=.*#MAPFILES_PATH=\"${STAGING_DIR_TARGET}/\$(pkg-config --variable=mapdir fontutil)\"#g" "${S}"/configure.ac | ||
23 | fi | ||
24 | } | ||
25 | |||
26 | do_install_append() { | ||
27 | find ${D}${libdir}/X11/fonts -type f -name fonts.dir | xargs rm -f | ||
28 | find ${D}${libdir}/X11/fonts -type f -name fonts.scale | xargs rm -f | ||
29 | find ${D}${datadir}/fonts/X11 -type f -name fonts.dir | xargs rm -f | ||
30 | find ${D}${datadir}/fonts/X11 -type f -name fonts.scale | xargs rm -f | ||
31 | } | ||
32 | |||
33 | PACKAGE_ARCH = "all" | ||
34 | |||
35 | FILES_${PN} += " ${libdir}/X11/fonts ${datadir}" | ||
36 | |||
37 | pkg_postinst_${PN} () { | ||
38 | set -x | ||
39 | for fontdir in `find $D/usr/lib/X11/fonts -type d`; do | ||
40 | mkfontdir $fontdir | ||
41 | mkfontscale $fontdir | ||
42 | done | ||
43 | for fontdir in `find $D/usr/share/fonts/X11 -type d`; do | ||
44 | mkfontdir $fontdir | ||
45 | mkfontscale $fontdir | ||
46 | done | ||
47 | } | ||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts.bb b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts.bb new file mode 100644 index 0000000000..26a64cdd66 --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts.bb | |||
@@ -0,0 +1,28 @@ | |||
1 | DESCRIPTION = "Xorg minimal fonts data" | ||
2 | HOMEPAGE = "http://www.x.org" | ||
3 | BUGTRACKER = "n/a" | ||
4 | |||
5 | SECTION = "x11/fonts" | ||
6 | |||
7 | LICENSE = "Public Domain" | ||
8 | LIC_FILES_CHKSUM = "file://../misc/fonts.alias;md5=bbe8d3c0e4e74af96e3ac393985c4fbb \ | ||
9 | file://../misc/fonts.dir;md5=82a143d94d6a974aafe97132d2d519ab \ | ||
10 | file://../misc/cursor.pcf.gz;md5=40bc81001fef4c21ca08df4305014a2a" | ||
11 | |||
12 | SRC_URI = "file://misc" | ||
13 | |||
14 | PE = "1" | ||
15 | PR = "r0" | ||
16 | |||
17 | PACKAGES = "${PN}" | ||
18 | PACKAGE_ARCH = "all" | ||
19 | FILES_${PN} = "${libdir}/X11/ ${datadir}/fonts/X11/" | ||
20 | |||
21 | do_install() { | ||
22 | install -d ${D}/${datadir}/fonts/X11/misc | ||
23 | install -m 0644 ${WORKDIR}/misc/* ${D}/${datadir}/fonts/X11/misc/ | ||
24 | install -d ${D}/${libdir}/X11 | ||
25 | ln -sf ${datadir}/fonts/X11/ ${D}/${libdir}/X11/fonts -s | ||
26 | } | ||
27 | |||
28 | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-1.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-1.pcf.gz new file mode 100644 index 0000000000..8bc8570a4a --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-1.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-10.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-10.pcf.gz new file mode 100644 index 0000000000..8fa8290152 --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-10.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-11.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-11.pcf.gz new file mode 100644 index 0000000000..bb1c5e138d --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-11.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-13.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-13.pcf.gz new file mode 100644 index 0000000000..842fa1b41a --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-13.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-14.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-14.pcf.gz new file mode 100644 index 0000000000..cd119b66da --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-14.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-15.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-15.pcf.gz new file mode 100644 index 0000000000..25fe84a0ed --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-15.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-16.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-16.pcf.gz new file mode 100644 index 0000000000..e362c70cea --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-16.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-2.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-2.pcf.gz new file mode 100644 index 0000000000..176a7591cc --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-2.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-3.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-3.pcf.gz new file mode 100644 index 0000000000..a4faf1a6cc --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-3.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-4.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-4.pcf.gz new file mode 100644 index 0000000000..96ddd15255 --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-4.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-5.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-5.pcf.gz new file mode 100644 index 0000000000..541a2ad2c7 --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-5.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-7.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-7.pcf.gz new file mode 100644 index 0000000000..a4986f4066 --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-7.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-8.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-8.pcf.gz new file mode 100644 index 0000000000..3f89abe774 --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-8.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-9.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-9.pcf.gz new file mode 100644 index 0000000000..432b536222 --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-ISO8859-9.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-KOI8-R.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-KOI8-R.pcf.gz new file mode 100644 index 0000000000..e7fcb898e1 --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13-KOI8-R.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13.pcf.gz new file mode 100644 index 0000000000..2df6355374 --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-1.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-1.pcf.gz new file mode 100644 index 0000000000..a263c5dd38 --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-1.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-10.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-10.pcf.gz new file mode 100644 index 0000000000..a1a7d37e62 --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-10.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-13.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-13.pcf.gz new file mode 100644 index 0000000000..a148e99bce --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-13.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-14.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-14.pcf.gz new file mode 100644 index 0000000000..8791b8ca34 --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-14.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-15.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-15.pcf.gz new file mode 100644 index 0000000000..8604508684 --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-15.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-16.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-16.pcf.gz new file mode 100644 index 0000000000..f28b1f1c4a --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-16.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-2.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-2.pcf.gz new file mode 100644 index 0000000000..fd1e6cfe9f --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-2.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-3.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-3.pcf.gz new file mode 100644 index 0000000000..672b759421 --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-3.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-4.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-4.pcf.gz new file mode 100644 index 0000000000..d90a4330d6 --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-4.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-5.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-5.pcf.gz new file mode 100644 index 0000000000..775e7c18b4 --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-5.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-7.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-7.pcf.gz new file mode 100644 index 0000000000..ac12fd98a2 --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-7.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-8.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-8.pcf.gz new file mode 100644 index 0000000000..42bbd52217 --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-8.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-9.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-9.pcf.gz new file mode 100644 index 0000000000..690d31f860 --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B-ISO8859-9.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B.pcf.gz new file mode 100644 index 0000000000..d4c3184c72 --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13B.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-1.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-1.pcf.gz new file mode 100644 index 0000000000..884b5130c5 --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-1.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-10.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-10.pcf.gz new file mode 100644 index 0000000000..cbb1a9d704 --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-10.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-13.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-13.pcf.gz new file mode 100644 index 0000000000..78c8580cfe --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-13.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-14.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-14.pcf.gz new file mode 100644 index 0000000000..0e90f3ee16 --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-14.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-15.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-15.pcf.gz new file mode 100644 index 0000000000..bd1273e1ff --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-15.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-16.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-16.pcf.gz new file mode 100644 index 0000000000..5100b429ac --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-16.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-2.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-2.pcf.gz new file mode 100644 index 0000000000..ec5bbed297 --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-2.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-3.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-3.pcf.gz new file mode 100644 index 0000000000..06c835ee68 --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-3.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-4.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-4.pcf.gz new file mode 100644 index 0000000000..478541c2af --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-4.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-5.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-5.pcf.gz new file mode 100644 index 0000000000..1c593ce0cf --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-5.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-7.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-7.pcf.gz new file mode 100644 index 0000000000..335cf5fc3e --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-7.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-9.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-9.pcf.gz new file mode 100644 index 0000000000..099423e640 --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O-ISO8859-9.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O.pcf.gz new file mode 100644 index 0000000000..4a546ddb1a --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/6x13O.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/cursor.pcf.gz b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/cursor.pcf.gz new file mode 100644 index 0000000000..72eb72bbec --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/cursor.pcf.gz | |||
Binary files differ | |||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/fonts.alias b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/fonts.alias new file mode 100644 index 0000000000..3900036739 --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/fonts.alias | |||
@@ -0,0 +1,80 @@ | |||
1 | !! fonts.alias -- automatically generated file. DO NOT EDIT. | ||
2 | !! To modify, see update-fonts-alias(8). | ||
3 | !! /etc/X11/fonts/misc/xfonts-base.alias | ||
4 | ! $Xorg: fonts.alias,v 1.3 2000/08/21 16:42:31 coskrey Exp $ | ||
5 | fixed -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1 | ||
6 | variable -*-helvetica-bold-r-normal-*-*-120-*-*-*-*-iso8859-1 | ||
7 | 5x7 -misc-fixed-medium-r-normal--7-70-75-75-c-50-iso8859-1 | ||
8 | 5x8 -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso8859-1 | ||
9 | 6x9 -misc-fixed-medium-r-normal--9-90-75-75-c-60-iso8859-1 | ||
10 | 6x10 -misc-fixed-medium-r-normal--10-100-75-75-c-60-iso8859-1 | ||
11 | 6x12 -misc-fixed-medium-r-semicondensed--12-110-75-75-c-60-iso8859-1 | ||
12 | 6x13 -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1 | ||
13 | 6x13bold -misc-fixed-bold-r-semicondensed--13-120-75-75-c-60-iso8859-1 | ||
14 | 7x13 -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-1 | ||
15 | 7x13bold -misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-1 | ||
16 | 7x13euro -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-15 | ||
17 | 7x13eurobold -misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-15 | ||
18 | 7x14 -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1 | ||
19 | 7x14bold -misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-1 | ||
20 | 8x13 -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso8859-1 | ||
21 | 8x13bold -misc-fixed-bold-r-normal--13-120-75-75-c-80-iso8859-1 | ||
22 | 8x16 -sony-fixed-medium-r-normal--16-120-100-100-c-80-iso8859-1 | ||
23 | 9x15 -misc-fixed-medium-r-normal--15-140-75-75-c-90-iso8859-1 | ||
24 | 9x15bold -misc-fixed-bold-r-normal--15-140-75-75-c-90-iso8859-1 | ||
25 | 10x20 -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso8859-1 | ||
26 | 12x24 -sony-fixed-medium-r-normal--24-170-100-100-c-120-iso8859-1 | ||
27 | nil2 -misc-nil-medium-r-normal--2-20-75-75-c-10-misc-fontspecific | ||
28 | |||
29 | heb6x13 -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-8 | ||
30 | heb8x13 -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso8859-8 | ||
31 | |||
32 | k14 -misc-fixed-medium-r-normal--14-*-*-*-*-*-jisx0208.1983-0 | ||
33 | a14 -misc-fixed-medium-r-normal--14-*-*-*-*-*-iso8859-1 | ||
34 | r14 -misc-fixed-medium-r-normal--14-*-*-*-*-*-jisx0201.1976-0 | ||
35 | rk14 -misc-fixed-medium-r-normal--14-*-*-*-*-*-jisx0201.1976-0 | ||
36 | r16 -sony-fixed-medium-r-normal--16-*-*-*-*-*-jisx0201.1976-0 | ||
37 | rk16 -sony-fixed-medium-r-normal--16-*-*-*-*-*-jisx0201.1976-0 | ||
38 | r24 -sony-fixed-medium-r-normal--24-*-*-*-*-*-jisx0201.1976-0 | ||
39 | rk24 -sony-fixed-medium-r-normal--24-*-*-*-*-*-jisx0201.1976-0 | ||
40 | kana14 -misc-fixed-medium-r-normal--14-*-*-*-*-*-jisx0201.1976-0 | ||
41 | 8x16kana -sony-fixed-medium-r-normal--16-120-100-100-c-80-jisx0201.1976-0 | ||
42 | 8x16romankana -sony-fixed-medium-r-normal--16-120-100-100-c-80-jisx0201.1976-0 | ||
43 | 12x24kana -sony-fixed-medium-r-normal--24-170-100-100-c-120-jisx0201.1976-0 | ||
44 | 12x24romankana -sony-fixed-medium-r-normal--24-170-100-100-c-120-jisx0201.1976-0 | ||
45 | kanji16 -jis-fixed-medium-r-normal--16-*-*-*-*-*-jisx0208.1983-0 | ||
46 | kanji24 -jis-fixed-medium-r-normal--24-*-*-*-*-*-jisx0208.1983-0 | ||
47 | |||
48 | hanzigb16st "-isas-song ti-medium-r-normal--16-160-72-72-c-160-gb2312.1980-0" | ||
49 | hanzigb24st "-isas-song ti-medium-r-normal--24-240-72-72-c-240-gb2312.1980-0" | ||
50 | hanzigb16fs "-isas-fangsong ti-medium-r-normal--16-160-72-72-c-160-gb2312.1980-0" | ||
51 | |||
52 | olcursor "-sun-open look cursor-----12-120-75-75-p-160-sunolcursor-1" | ||
53 | olglyph-10 "-sun-open look glyph-----10-100-75-75-p-101-sunolglyph-1" | ||
54 | olglyph-12 "-sun-open look glyph-----12-120-75-75-p-113-sunolglyph-1" | ||
55 | olglyph-14 "-sun-open look glyph-----14-140-75-75-p-128-sunolglyph-1" | ||
56 | olglyph-19 "-sun-open look glyph-----19-190-75-75-p-154-sunolglyph-1" | ||
57 | |||
58 | -misc-fixed-medium-r-normal--7-50-100-100-c-50-iso8859-1 -misc-fixed-medium-r-normal--7-70-75-75-c-50-iso8859-1 | ||
59 | -misc-fixed-medium-r-normal--8-60-100-100-c-50-iso8859-1 -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso8859-1 | ||
60 | -misc-fixed-medium-r-normal--9-80-100-100-c-60-iso8859-1 -misc-fixed-medium-r-normal--9-90-75-75-c-60-iso8859-1 | ||
61 | -misc-fixed-medium-r-normal--10-70-100-100-c-60-iso8859-1 -misc-fixed-medium-r-normal--10-100-75-75-c-60-iso8859-1 | ||
62 | -misc-fixed-medium-r-semicondensed--12-90-100-100-c-60-iso8859-1 -misc-fixed-medium-r-semicondensed--12-110-75-75-c-60-iso8859-1 | ||
63 | -misc-fixed-medium-r-semicondensed--13-100-100-100-c-60-iso8859-1 -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1 | ||
64 | -misc-fixed-bold-r-semicondensed--13-100-100-100-c-60-iso8859-1 -misc-fixed-bold-r-semicondensed--13-120-75-75-c-60-iso8859-1 | ||
65 | -misc-fixed-medium-r-normal--13-100-100-100-c-70-iso8859-1 -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-1 | ||
66 | -misc-fixed-bold-r-normal--13-100-100-100-c-70-iso8859-1 -misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-1 | ||
67 | -misc-fixed-medium-r-normal--13-100-100-100-c-80-iso8859-1 -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso8859-1 | ||
68 | -misc-fixed-bold-r-normal--13-100-100-100-c-80-iso8859-1 -misc-fixed-bold-r-normal--13-120-75-75-c-80-iso8859-1 | ||
69 | -misc-fixed-medium-r-normal--14-110-100-100-c-70-iso8859-1 -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1 | ||
70 | -misc-fixed-medium-r-normal--15-120-100-100-c-90-iso8859-1 -misc-fixed-medium-r-normal--15-140-75-75-c-90-iso8859-1 | ||
71 | -misc-fixed-bold-r-normal--15-120-100-100-c-90-iso8859-1 -misc-fixed-bold-r-normal--15-140-75-75-c-90-iso8859-1 | ||
72 | -misc-fixed-medium-r-normal--20-140-100-100-c-100-iso8859-1 -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso8859-1 | ||
73 | -misc-fixed-medium-r-semicondensed--13-100-100-100-c-60-iso8859-8 -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-8 | ||
74 | -misc-fixed-medium-r-normal--13-100-100-100-c-80-iso8859-8 -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso8859-8 | ||
75 | -sony-fixed-medium-r-normal--16-150-75-75-c-80-iso8859-1 -sony-fixed-medium-r-normal--16-120-100-100-c-80-iso8859-1 | ||
76 | -sony-fixed-medium-r-normal--16-150-75-75-c-80-jisx0201.1976-0 -sony-fixed-medium-r-normal--16-120-100-100-c-80-jisx0201.1976-0 | ||
77 | -sony-fixed-medium-r-normal--24-230-75-75-c-120-iso8859-1 -sony-fixed-medium-r-normal--24-170-100-100-c-120-iso8859-1 | ||
78 | -sony-fixed-medium-r-normal--24-230-75-75-c-120-jisx0201.1976-0 -sony-fixed-medium-r-normal--24-170-100-100-c-120-jisx0201.1976-0 | ||
79 | -jis-fixed-medium-r-normal--16-110-100-100-c-160-jisx0208.1983-0 -jis-fixed-medium-r-normal--16-150-75-75-c-160-jisx0208.1983-0 | ||
80 | -jis-fixed-medium-r-normal--24-170-100-100-c-240-jisx0208.1983-0 -jis-fixed-medium-r-normal--24-230-75-75-c-240-jisx0208.1983-0 | ||
diff --git a/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/fonts.dir b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/fonts.dir new file mode 100644 index 0000000000..0a2718f7ba --- /dev/null +++ b/meta/recipes-graphics/xorg-font/xorg-minimal-fonts/misc/fonts.dir | |||
@@ -0,0 +1,410 @@ | |||
1 | 409 | ||
2 | 10x20-ISO8859-1.pcf.gz -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso8859-1 | ||
3 | 10x20-ISO8859-10.pcf.gz -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso8859-10 | ||
4 | 10x20-ISO8859-11.pcf.gz -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso8859-11 | ||
5 | 10x20-ISO8859-13.pcf.gz -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso8859-13 | ||
6 | 10x20-ISO8859-14.pcf.gz -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso8859-14 | ||
7 | 10x20-ISO8859-15.pcf.gz -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso8859-15 | ||
8 | 10x20-ISO8859-16.pcf.gz -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso8859-16 | ||
9 | 10x20-ISO8859-2.pcf.gz -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso8859-2 | ||
10 | 10x20-ISO8859-3.pcf.gz -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso8859-3 | ||
11 | 10x20-ISO8859-4.pcf.gz -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso8859-4 | ||
12 | 10x20-ISO8859-5.pcf.gz -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso8859-5 | ||
13 | 10x20-ISO8859-7.pcf.gz -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso8859-7 | ||
14 | 10x20-ISO8859-8.pcf.gz -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso8859-8 | ||
15 | 10x20-ISO8859-9.pcf.gz -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso8859-9 | ||
16 | 10x20-KOI8-R.pcf.gz -misc-fixed-medium-r-normal--20-200-75-75-c-100-koi8-r | ||
17 | 10x20.pcf.gz -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso10646-1 | ||
18 | 12x13ja.pcf.gz -misc-fixed-medium-r-normal-ja-13-120-75-75-c-120-iso10646-1 | ||
19 | 12x24.pcf.gz -sony-fixed-medium-r-normal--24-170-100-100-c-120-iso8859-1 | ||
20 | 12x24rk.pcf.gz -sony-fixed-medium-r-normal--24-170-100-100-c-120-jisx0201.1976-0 | ||
21 | 18x18ja.pcf.gz -misc-fixed-medium-r-normal-ja-18-120-100-100-c-180-iso10646-1 | ||
22 | 18x18ko.pcf.gz -misc-fixed-medium-r-normal-ko-18-120-100-100-c-180-iso10646-1 | ||
23 | 4x6-ISO8859-1.pcf.gz -misc-fixed-medium-r-normal--6-60-75-75-c-40-iso8859-1 | ||
24 | 4x6-ISO8859-10.pcf.gz -misc-fixed-medium-r-normal--6-60-75-75-c-40-iso8859-10 | ||
25 | 4x6-ISO8859-13.pcf.gz -misc-fixed-medium-r-normal--6-60-75-75-c-40-iso8859-13 | ||
26 | 4x6-ISO8859-14.pcf.gz -misc-fixed-medium-r-normal--6-60-75-75-c-40-iso8859-14 | ||
27 | 4x6-ISO8859-15.pcf.gz -misc-fixed-medium-r-normal--6-60-75-75-c-40-iso8859-15 | ||
28 | 4x6-ISO8859-16.pcf.gz -misc-fixed-medium-r-normal--6-60-75-75-c-40-iso8859-16 | ||
29 | 4x6-ISO8859-2.pcf.gz -misc-fixed-medium-r-normal--6-60-75-75-c-40-iso8859-2 | ||
30 | 4x6-ISO8859-3.pcf.gz -misc-fixed-medium-r-normal--6-60-75-75-c-40-iso8859-3 | ||
31 | 4x6-ISO8859-4.pcf.gz -misc-fixed-medium-r-normal--6-60-75-75-c-40-iso8859-4 | ||
32 | 4x6-ISO8859-5.pcf.gz -misc-fixed-medium-r-normal--6-60-75-75-c-40-iso8859-5 | ||
33 | 4x6-ISO8859-7.pcf.gz -misc-fixed-medium-r-normal--6-60-75-75-c-40-iso8859-7 | ||
34 | 4x6-ISO8859-8.pcf.gz -misc-fixed-medium-r-normal--6-60-75-75-c-40-iso8859-8 | ||
35 | 4x6-ISO8859-9.pcf.gz -misc-fixed-medium-r-normal--6-60-75-75-c-40-iso8859-9 | ||
36 | 4x6-KOI8-R.pcf.gz -misc-fixed-medium-r-normal--6-60-75-75-c-40-koi8-r | ||
37 | 4x6.pcf.gz -misc-fixed-medium-r-normal--6-60-75-75-c-40-iso10646-1 | ||
38 | 5x7-ISO8859-1.pcf.gz -misc-fixed-medium-r-normal--7-70-75-75-c-50-iso8859-1 | ||
39 | 5x7-ISO8859-10.pcf.gz -misc-fixed-medium-r-normal--7-70-75-75-c-50-iso8859-10 | ||
40 | 5x7-ISO8859-13.pcf.gz -misc-fixed-medium-r-normal--7-70-75-75-c-50-iso8859-13 | ||
41 | 5x7-ISO8859-14.pcf.gz -misc-fixed-medium-r-normal--7-70-75-75-c-50-iso8859-14 | ||
42 | 5x7-ISO8859-15.pcf.gz -misc-fixed-medium-r-normal--7-70-75-75-c-50-iso8859-15 | ||
43 | 5x7-ISO8859-16.pcf.gz -misc-fixed-medium-r-normal--7-70-75-75-c-50-iso8859-16 | ||
44 | 5x7-ISO8859-2.pcf.gz -misc-fixed-medium-r-normal--7-70-75-75-c-50-iso8859-2 | ||
45 | 5x7-ISO8859-3.pcf.gz -misc-fixed-medium-r-normal--7-70-75-75-c-50-iso8859-3 | ||
46 | 5x7-ISO8859-4.pcf.gz -misc-fixed-medium-r-normal--7-70-75-75-c-50-iso8859-4 | ||
47 | 5x7-ISO8859-5.pcf.gz -misc-fixed-medium-r-normal--7-70-75-75-c-50-iso8859-5 | ||
48 | 5x7-ISO8859-7.pcf.gz -misc-fixed-medium-r-normal--7-70-75-75-c-50-iso8859-7 | ||
49 | 5x7-ISO8859-8.pcf.gz -misc-fixed-medium-r-normal--7-70-75-75-c-50-iso8859-8 | ||
50 | 5x7-ISO8859-9.pcf.gz -misc-fixed-medium-r-normal--7-70-75-75-c-50-iso8859-9 | ||
51 | 5x7-KOI8-R.pcf.gz -misc-fixed-medium-r-normal--7-70-75-75-c-50-koi8-r | ||
52 | 5x7.pcf.gz -misc-fixed-medium-r-normal--7-70-75-75-c-50-iso10646-1 | ||
53 | 5x8-ISO8859-1.pcf.gz -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso8859-1 | ||
54 | 5x8-ISO8859-10.pcf.gz -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso8859-10 | ||
55 | 5x8-ISO8859-13.pcf.gz -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso8859-13 | ||
56 | 5x8-ISO8859-14.pcf.gz -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso8859-14 | ||
57 | 5x8-ISO8859-15.pcf.gz -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso8859-15 | ||
58 | 5x8-ISO8859-16.pcf.gz -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso8859-16 | ||
59 | 5x8-ISO8859-2.pcf.gz -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso8859-2 | ||
60 | 5x8-ISO8859-3.pcf.gz -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso8859-3 | ||
61 | 5x8-ISO8859-4.pcf.gz -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso8859-4 | ||
62 | 5x8-ISO8859-5.pcf.gz -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso8859-5 | ||
63 | 5x8-ISO8859-7.pcf.gz -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso8859-7 | ||
64 | 5x8-ISO8859-8.pcf.gz -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso8859-8 | ||
65 | 5x8-ISO8859-9.pcf.gz -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso8859-9 | ||
66 | 5x8-KOI8-R.pcf.gz -misc-fixed-medium-r-normal--8-80-75-75-c-50-koi8-r | ||
67 | 5x8.pcf.gz -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso10646-1 | ||
68 | 6x10-ISO8859-1.pcf.gz -misc-fixed-medium-r-normal--10-100-75-75-c-60-iso8859-1 | ||
69 | 6x10-ISO8859-10.pcf.gz -misc-fixed-medium-r-normal--10-100-75-75-c-60-iso8859-10 | ||
70 | 6x10-ISO8859-13.pcf.gz -misc-fixed-medium-r-normal--10-100-75-75-c-60-iso8859-13 | ||
71 | 6x10-ISO8859-14.pcf.gz -misc-fixed-medium-r-normal--10-100-75-75-c-60-iso8859-14 | ||
72 | 6x10-ISO8859-15.pcf.gz -misc-fixed-medium-r-normal--10-100-75-75-c-60-iso8859-15 | ||
73 | 6x10-ISO8859-16.pcf.gz -misc-fixed-medium-r-normal--10-100-75-75-c-60-iso8859-16 | ||
74 | 6x10-ISO8859-2.pcf.gz -misc-fixed-medium-r-normal--10-100-75-75-c-60-iso8859-2 | ||
75 | 6x10-ISO8859-3.pcf.gz -misc-fixed-medium-r-normal--10-100-75-75-c-60-iso8859-3 | ||
76 | 6x10-ISO8859-4.pcf.gz -misc-fixed-medium-r-normal--10-100-75-75-c-60-iso8859-4 | ||
77 | 6x10-ISO8859-5.pcf.gz -misc-fixed-medium-r-normal--10-100-75-75-c-60-iso8859-5 | ||
78 | 6x10-ISO8859-7.pcf.gz -misc-fixed-medium-r-normal--10-100-75-75-c-60-iso8859-7 | ||
79 | 6x10-ISO8859-8.pcf.gz -misc-fixed-medium-r-normal--10-100-75-75-c-60-iso8859-8 | ||
80 | 6x10-ISO8859-9.pcf.gz -misc-fixed-medium-r-normal--10-100-75-75-c-60-iso8859-9 | ||
81 | 6x10-KOI8-R.pcf.gz -misc-fixed-medium-r-normal--10-100-75-75-c-60-koi8-r | ||
82 | 6x10.pcf.gz -misc-fixed-medium-r-normal--10-100-75-75-c-60-iso10646-1 | ||
83 | 6x12-ISO8859-1.pcf.gz -misc-fixed-medium-r-semicondensed--12-110-75-75-c-60-iso8859-1 | ||
84 | 6x12-ISO8859-10.pcf.gz -misc-fixed-medium-r-semicondensed--12-110-75-75-c-60-iso8859-10 | ||
85 | 6x12-ISO8859-13.pcf.gz -misc-fixed-medium-r-semicondensed--12-110-75-75-c-60-iso8859-13 | ||
86 | 6x12-ISO8859-14.pcf.gz -misc-fixed-medium-r-semicondensed--12-110-75-75-c-60-iso8859-14 | ||
87 | 6x12-ISO8859-15.pcf.gz -misc-fixed-medium-r-semicondensed--12-110-75-75-c-60-iso8859-15 | ||
88 | 6x12-ISO8859-16.pcf.gz -misc-fixed-medium-r-semicondensed--12-110-75-75-c-60-iso8859-16 | ||
89 | 6x12-ISO8859-2.pcf.gz -misc-fixed-medium-r-semicondensed--12-110-75-75-c-60-iso8859-2 | ||
90 | 6x12-ISO8859-3.pcf.gz -misc-fixed-medium-r-semicondensed--12-110-75-75-c-60-iso8859-3 | ||
91 | 6x12-ISO8859-4.pcf.gz -misc-fixed-medium-r-semicondensed--12-110-75-75-c-60-iso8859-4 | ||
92 | 6x12-ISO8859-5.pcf.gz -misc-fixed-medium-r-semicondensed--12-110-75-75-c-60-iso8859-5 | ||
93 | 6x12-ISO8859-7.pcf.gz -misc-fixed-medium-r-semicondensed--12-110-75-75-c-60-iso8859-7 | ||
94 | 6x12-ISO8859-8.pcf.gz -misc-fixed-medium-r-semicondensed--12-110-75-75-c-60-iso8859-8 | ||
95 | 6x12-ISO8859-9.pcf.gz -misc-fixed-medium-r-semicondensed--12-110-75-75-c-60-iso8859-9 | ||
96 | 6x12-KOI8-R.pcf.gz -misc-fixed-medium-r-semicondensed--12-110-75-75-c-60-koi8-r | ||
97 | 6x12.pcf.gz -misc-fixed-medium-r-semicondensed--12-110-75-75-c-60-iso10646-1 | ||
98 | 6x13-ISO8859-1.pcf.gz -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1 | ||
99 | 6x13-ISO8859-10.pcf.gz -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-10 | ||
100 | 6x13-ISO8859-11.pcf.gz -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-11 | ||
101 | 6x13-ISO8859-13.pcf.gz -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-13 | ||
102 | 6x13-ISO8859-14.pcf.gz -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-14 | ||
103 | 6x13-ISO8859-15.pcf.gz -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-15 | ||
104 | 6x13-ISO8859-16.pcf.gz -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-16 | ||
105 | 6x13-ISO8859-2.pcf.gz -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-2 | ||
106 | 6x13-ISO8859-3.pcf.gz -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-3 | ||
107 | 6x13-ISO8859-4.pcf.gz -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-4 | ||
108 | 6x13-ISO8859-5.pcf.gz -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-5 | ||
109 | 6x13-ISO8859-7.pcf.gz -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-7 | ||
110 | 6x13-ISO8859-8.pcf.gz -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-8 | ||
111 | 6x13-ISO8859-9.pcf.gz -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-9 | ||
112 | 6x13-KOI8-R.pcf.gz -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-koi8-r | ||
113 | 6x13.pcf.gz -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1 | ||
114 | 6x13B-ISO8859-1.pcf.gz -misc-fixed-bold-r-semicondensed--13-120-75-75-c-60-iso8859-1 | ||
115 | 6x13B-ISO8859-10.pcf.gz -misc-fixed-bold-r-semicondensed--13-120-75-75-c-60-iso8859-10 | ||
116 | 6x13B-ISO8859-13.pcf.gz -misc-fixed-bold-r-semicondensed--13-120-75-75-c-60-iso8859-13 | ||
117 | 6x13B-ISO8859-14.pcf.gz -misc-fixed-bold-r-semicondensed--13-120-75-75-c-60-iso8859-14 | ||
118 | 6x13B-ISO8859-15.pcf.gz -misc-fixed-bold-r-semicondensed--13-120-75-75-c-60-iso8859-15 | ||
119 | 6x13B-ISO8859-16.pcf.gz -misc-fixed-bold-r-semicondensed--13-120-75-75-c-60-iso8859-16 | ||
120 | 6x13B-ISO8859-2.pcf.gz -misc-fixed-bold-r-semicondensed--13-120-75-75-c-60-iso8859-2 | ||
121 | 6x13B-ISO8859-3.pcf.gz -misc-fixed-bold-r-semicondensed--13-120-75-75-c-60-iso8859-3 | ||
122 | 6x13B-ISO8859-4.pcf.gz -misc-fixed-bold-r-semicondensed--13-120-75-75-c-60-iso8859-4 | ||
123 | 6x13B-ISO8859-5.pcf.gz -misc-fixed-bold-r-semicondensed--13-120-75-75-c-60-iso8859-5 | ||
124 | 6x13B-ISO8859-7.pcf.gz -misc-fixed-bold-r-semicondensed--13-120-75-75-c-60-iso8859-7 | ||
125 | 6x13B-ISO8859-8.pcf.gz -misc-fixed-bold-r-semicondensed--13-120-75-75-c-60-iso8859-8 | ||
126 | 6x13B-ISO8859-9.pcf.gz -misc-fixed-bold-r-semicondensed--13-120-75-75-c-60-iso8859-9 | ||
127 | 6x13B.pcf.gz -misc-fixed-bold-r-semicondensed--13-120-75-75-c-60-iso10646-1 | ||
128 | 6x13O-ISO8859-1.pcf.gz -misc-fixed-medium-o-semicondensed--13-120-75-75-c-60-iso8859-1 | ||
129 | 6x13O-ISO8859-10.pcf.gz -misc-fixed-medium-o-semicondensed--13-120-75-75-c-60-iso8859-10 | ||
130 | 6x13O-ISO8859-13.pcf.gz -misc-fixed-medium-o-semicondensed--13-120-75-75-c-60-iso8859-13 | ||
131 | 6x13O-ISO8859-14.pcf.gz -misc-fixed-medium-o-semicondensed--13-120-75-75-c-60-iso8859-14 | ||
132 | 6x13O-ISO8859-15.pcf.gz -misc-fixed-medium-o-semicondensed--13-120-75-75-c-60-iso8859-15 | ||
133 | 6x13O-ISO8859-16.pcf.gz -misc-fixed-medium-o-semicondensed--13-120-75-75-c-60-iso8859-16 | ||
134 | 6x13O-ISO8859-2.pcf.gz -misc-fixed-medium-o-semicondensed--13-120-75-75-c-60-iso8859-2 | ||
135 | 6x13O-ISO8859-3.pcf.gz -misc-fixed-medium-o-semicondensed--13-120-75-75-c-60-iso8859-3 | ||
136 | 6x13O-ISO8859-4.pcf.gz -misc-fixed-medium-o-semicondensed--13-120-75-75-c-60-iso8859-4 | ||
137 | 6x13O-ISO8859-5.pcf.gz -misc-fixed-medium-o-semicondensed--13-120-75-75-c-60-iso8859-5 | ||
138 | 6x13O-ISO8859-7.pcf.gz -misc-fixed-medium-o-semicondensed--13-120-75-75-c-60-iso8859-7 | ||
139 | 6x13O-ISO8859-9.pcf.gz -misc-fixed-medium-o-semicondensed--13-120-75-75-c-60-iso8859-9 | ||
140 | 6x13O.pcf.gz -misc-fixed-medium-o-semicondensed--13-120-75-75-c-60-iso10646-1 | ||
141 | 6x9-ISO8859-1.pcf.gz -misc-fixed-medium-r-normal--9-90-75-75-c-60-iso8859-1 | ||
142 | 6x9-ISO8859-10.pcf.gz -misc-fixed-medium-r-normal--9-90-75-75-c-60-iso8859-10 | ||
143 | 6x9-ISO8859-13.pcf.gz -misc-fixed-medium-r-normal--9-90-75-75-c-60-iso8859-13 | ||
144 | 6x9-ISO8859-14.pcf.gz -misc-fixed-medium-r-normal--9-90-75-75-c-60-iso8859-14 | ||
145 | 6x9-ISO8859-15.pcf.gz -misc-fixed-medium-r-normal--9-90-75-75-c-60-iso8859-15 | ||
146 | 6x9-ISO8859-16.pcf.gz -misc-fixed-medium-r-normal--9-90-75-75-c-60-iso8859-16 | ||
147 | 6x9-ISO8859-2.pcf.gz -misc-fixed-medium-r-normal--9-90-75-75-c-60-iso8859-2 | ||
148 | 6x9-ISO8859-3.pcf.gz -misc-fixed-medium-r-normal--9-90-75-75-c-60-iso8859-3 | ||
149 | 6x9-ISO8859-4.pcf.gz -misc-fixed-medium-r-normal--9-90-75-75-c-60-iso8859-4 | ||
150 | 6x9-ISO8859-5.pcf.gz -misc-fixed-medium-r-normal--9-90-75-75-c-60-iso8859-5 | ||
151 | 6x9-ISO8859-7.pcf.gz -misc-fixed-medium-r-normal--9-90-75-75-c-60-iso8859-7 | ||
152 | 6x9-ISO8859-8.pcf.gz -misc-fixed-medium-r-normal--9-90-75-75-c-60-iso8859-8 | ||
153 | 6x9-ISO8859-9.pcf.gz -misc-fixed-medium-r-normal--9-90-75-75-c-60-iso8859-9 | ||
154 | 6x9-KOI8-R.pcf.gz -misc-fixed-medium-r-normal--9-90-75-75-c-60-koi8-r | ||
155 | 6x9.pcf.gz -misc-fixed-medium-r-normal--9-90-75-75-c-60-iso10646-1 | ||
156 | 7x13-ISO8859-1.pcf.gz -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-1 | ||
157 | 7x13-ISO8859-10.pcf.gz -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-10 | ||
158 | 7x13-ISO8859-11.pcf.gz -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-11 | ||
159 | 7x13-ISO8859-13.pcf.gz -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-13 | ||
160 | 7x13-ISO8859-14.pcf.gz -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-14 | ||
161 | 7x13-ISO8859-15.pcf.gz -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-15 | ||
162 | 7x13-ISO8859-16.pcf.gz -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-16 | ||
163 | 7x13-ISO8859-2.pcf.gz -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-2 | ||
164 | 7x13-ISO8859-3.pcf.gz -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-3 | ||
165 | 7x13-ISO8859-4.pcf.gz -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-4 | ||
166 | 7x13-ISO8859-5.pcf.gz -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-5 | ||
167 | 7x13-ISO8859-7.pcf.gz -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-7 | ||
168 | 7x13-ISO8859-8.pcf.gz -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-8 | ||
169 | 7x13-ISO8859-9.pcf.gz -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-9 | ||
170 | 7x13-KOI8-R.pcf.gz -misc-fixed-medium-r-normal--13-120-75-75-c-70-koi8-r | ||
171 | 7x13.pcf.gz -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso10646-1 | ||
172 | 7x13B-ISO8859-1.pcf.gz -misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-1 | ||
173 | 7x13B-ISO8859-10.pcf.gz -misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-10 | ||
174 | 7x13B-ISO8859-11.pcf.gz -misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-11 | ||
175 | 7x13B-ISO8859-13.pcf.gz -misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-13 | ||
176 | 7x13B-ISO8859-14.pcf.gz -misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-14 | ||
177 | 7x13B-ISO8859-15.pcf.gz -misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-15 | ||
178 | 7x13B-ISO8859-16.pcf.gz -misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-16 | ||
179 | 7x13B-ISO8859-2.pcf.gz -misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-2 | ||
180 | 7x13B-ISO8859-3.pcf.gz -misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-3 | ||
181 | 7x13B-ISO8859-4.pcf.gz -misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-4 | ||
182 | 7x13B-ISO8859-5.pcf.gz -misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-5 | ||
183 | 7x13B-ISO8859-7.pcf.gz -misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-7 | ||
184 | 7x13B-ISO8859-8.pcf.gz -misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-8 | ||
185 | 7x13B-ISO8859-9.pcf.gz -misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-9 | ||
186 | 7x13B.pcf.gz -misc-fixed-bold-r-normal--13-120-75-75-c-70-iso10646-1 | ||
187 | 7x13O-ISO8859-1.pcf.gz -misc-fixed-medium-o-normal--13-120-75-75-c-70-iso8859-1 | ||
188 | 7x13O-ISO8859-10.pcf.gz -misc-fixed-medium-o-normal--13-120-75-75-c-70-iso8859-10 | ||
189 | 7x13O-ISO8859-11.pcf.gz -misc-fixed-medium-o-normal--13-120-75-75-c-70-iso8859-11 | ||
190 | 7x13O-ISO8859-13.pcf.gz -misc-fixed-medium-o-normal--13-120-75-75-c-70-iso8859-13 | ||
191 | 7x13O-ISO8859-14.pcf.gz -misc-fixed-medium-o-normal--13-120-75-75-c-70-iso8859-14 | ||
192 | 7x13O-ISO8859-15.pcf.gz -misc-fixed-medium-o-normal--13-120-75-75-c-70-iso8859-15 | ||
193 | 7x13O-ISO8859-16.pcf.gz -misc-fixed-medium-o-normal--13-120-75-75-c-70-iso8859-16 | ||
194 | 7x13O-ISO8859-2.pcf.gz -misc-fixed-medium-o-normal--13-120-75-75-c-70-iso8859-2 | ||
195 | 7x13O-ISO8859-3.pcf.gz -misc-fixed-medium-o-normal--13-120-75-75-c-70-iso8859-3 | ||
196 | 7x13O-ISO8859-4.pcf.gz -misc-fixed-medium-o-normal--13-120-75-75-c-70-iso8859-4 | ||
197 | 7x13O-ISO8859-5.pcf.gz -misc-fixed-medium-o-normal--13-120-75-75-c-70-iso8859-5 | ||
198 | 7x13O-ISO8859-7.pcf.gz -misc-fixed-medium-o-normal--13-120-75-75-c-70-iso8859-7 | ||
199 | 7x13O-ISO8859-9.pcf.gz -misc-fixed-medium-o-normal--13-120-75-75-c-70-iso8859-9 | ||
200 | 7x13O.pcf.gz -misc-fixed-medium-o-normal--13-120-75-75-c-70-iso10646-1 | ||
201 | 7x14-ISO8859-1.pcf.gz -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1 | ||
202 | 7x14-ISO8859-10.pcf.gz -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-10 | ||
203 | 7x14-ISO8859-11.pcf.gz -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-11 | ||
204 | 7x14-ISO8859-13.pcf.gz -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-13 | ||
205 | 7x14-ISO8859-14.pcf.gz -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-14 | ||
206 | 7x14-ISO8859-15.pcf.gz -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-15 | ||
207 | 7x14-ISO8859-16.pcf.gz -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-16 | ||
208 | 7x14-ISO8859-2.pcf.gz -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-2 | ||
209 | 7x14-ISO8859-3.pcf.gz -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-3 | ||
210 | 7x14-ISO8859-4.pcf.gz -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-4 | ||
211 | 7x14-ISO8859-5.pcf.gz -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-5 | ||
212 | 7x14-ISO8859-7.pcf.gz -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-7 | ||
213 | 7x14-ISO8859-8.pcf.gz -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-8 | ||
214 | 7x14-ISO8859-9.pcf.gz -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-9 | ||
215 | 7x14-JISX0201.1976-0.pcf.gz -misc-fixed-medium-r-normal--14-130-75-75-c-70-jisx0201.1976-0 | ||
216 | 7x14-KOI8-R.pcf.gz -misc-fixed-medium-r-normal--14-130-75-75-c-70-koi8-r | ||
217 | 7x14.pcf.gz -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1 | ||
218 | 7x14B-ISO8859-1.pcf.gz -misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-1 | ||
219 | 7x14B-ISO8859-10.pcf.gz -misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-10 | ||
220 | 7x14B-ISO8859-11.pcf.gz -misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-11 | ||
221 | 7x14B-ISO8859-13.pcf.gz -misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-13 | ||
222 | 7x14B-ISO8859-14.pcf.gz -misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-14 | ||
223 | 7x14B-ISO8859-15.pcf.gz -misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-15 | ||
224 | 7x14B-ISO8859-16.pcf.gz -misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-16 | ||
225 | 7x14B-ISO8859-2.pcf.gz -misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-2 | ||
226 | 7x14B-ISO8859-3.pcf.gz -misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-3 | ||
227 | 7x14B-ISO8859-4.pcf.gz -misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-4 | ||
228 | 7x14B-ISO8859-5.pcf.gz -misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-5 | ||
229 | 7x14B-ISO8859-7.pcf.gz -misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-7 | ||
230 | 7x14B-ISO8859-8.pcf.gz -misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-8 | ||
231 | 7x14B-ISO8859-9.pcf.gz -misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-9 | ||
232 | 7x14B.pcf.gz -misc-fixed-bold-r-normal--14-130-75-75-c-70-iso10646-1 | ||
233 | 8x13-ISO8859-1.pcf.gz -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso8859-1 | ||
234 | 8x13-ISO8859-10.pcf.gz -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso8859-10 | ||
235 | 8x13-ISO8859-13.pcf.gz -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso8859-13 | ||
236 | 8x13-ISO8859-14.pcf.gz -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso8859-14 | ||
237 | 8x13-ISO8859-15.pcf.gz -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso8859-15 | ||
238 | 8x13-ISO8859-16.pcf.gz -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso8859-16 | ||
239 | 8x13-ISO8859-2.pcf.gz -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso8859-2 | ||
240 | 8x13-ISO8859-3.pcf.gz -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso8859-3 | ||
241 | 8x13-ISO8859-4.pcf.gz -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso8859-4 | ||
242 | 8x13-ISO8859-5.pcf.gz -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso8859-5 | ||
243 | 8x13-ISO8859-7.pcf.gz -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso8859-7 | ||
244 | 8x13-ISO8859-8.pcf.gz -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso8859-8 | ||
245 | 8x13-ISO8859-9.pcf.gz -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso8859-9 | ||
246 | 8x13-KOI8-R.pcf.gz -misc-fixed-medium-r-normal--13-120-75-75-c-80-koi8-r | ||
247 | 8x13.pcf.gz -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso10646-1 | ||
248 | 8x13B-ISO8859-1.pcf.gz -misc-fixed-bold-r-normal--13-120-75-75-c-80-iso8859-1 | ||
249 | 8x13B-ISO8859-10.pcf.gz -misc-fixed-bold-r-normal--13-120-75-75-c-80-iso8859-10 | ||
250 | 8x13B-ISO8859-13.pcf.gz -misc-fixed-bold-r-normal--13-120-75-75-c-80-iso8859-13 | ||
251 | 8x13B-ISO8859-14.pcf.gz -misc-fixed-bold-r-normal--13-120-75-75-c-80-iso8859-14 | ||
252 | 8x13B-ISO8859-15.pcf.gz -misc-fixed-bold-r-normal--13-120-75-75-c-80-iso8859-15 | ||
253 | 8x13B-ISO8859-16.pcf.gz -misc-fixed-bold-r-normal--13-120-75-75-c-80-iso8859-16 | ||
254 | 8x13B-ISO8859-2.pcf.gz -misc-fixed-bold-r-normal--13-120-75-75-c-80-iso8859-2 | ||
255 | 8x13B-ISO8859-3.pcf.gz -misc-fixed-bold-r-normal--13-120-75-75-c-80-iso8859-3 | ||
256 | 8x13B-ISO8859-4.pcf.gz -misc-fixed-bold-r-normal--13-120-75-75-c-80-iso8859-4 | ||
257 | 8x13B-ISO8859-5.pcf.gz -misc-fixed-bold-r-normal--13-120-75-75-c-80-iso8859-5 | ||
258 | 8x13B-ISO8859-7.pcf.gz -misc-fixed-bold-r-normal--13-120-75-75-c-80-iso8859-7 | ||
259 | 8x13B-ISO8859-8.pcf.gz -misc-fixed-bold-r-normal--13-120-75-75-c-80-iso8859-8 | ||
260 | 8x13B-ISO8859-9.pcf.gz -misc-fixed-bold-r-normal--13-120-75-75-c-80-iso8859-9 | ||
261 | 8x13B.pcf.gz -misc-fixed-bold-r-normal--13-120-75-75-c-80-iso10646-1 | ||
262 | 8x13O-ISO8859-1.pcf.gz -misc-fixed-medium-o-normal--13-120-75-75-c-80-iso8859-1 | ||
263 | 8x13O-ISO8859-10.pcf.gz -misc-fixed-medium-o-normal--13-120-75-75-c-80-iso8859-10 | ||
264 | 8x13O-ISO8859-13.pcf.gz -misc-fixed-medium-o-normal--13-120-75-75-c-80-iso8859-13 | ||
265 | 8x13O-ISO8859-14.pcf.gz -misc-fixed-medium-o-normal--13-120-75-75-c-80-iso8859-14 | ||
266 | 8x13O-ISO8859-15.pcf.gz -misc-fixed-medium-o-normal--13-120-75-75-c-80-iso8859-15 | ||
267 | 8x13O-ISO8859-16.pcf.gz -misc-fixed-medium-o-normal--13-120-75-75-c-80-iso8859-16 | ||
268 | 8x13O-ISO8859-2.pcf.gz -misc-fixed-medium-o-normal--13-120-75-75-c-80-iso8859-2 | ||
269 | 8x13O-ISO8859-3.pcf.gz -misc-fixed-medium-o-normal--13-120-75-75-c-80-iso8859-3 | ||
270 | 8x13O-ISO8859-4.pcf.gz -misc-fixed-medium-o-normal--13-120-75-75-c-80-iso8859-4 | ||
271 | 8x13O-ISO8859-5.pcf.gz -misc-fixed-medium-o-normal--13-120-75-75-c-80-iso8859-5 | ||
272 | 8x13O-ISO8859-7.pcf.gz -misc-fixed-medium-o-normal--13-120-75-75-c-80-iso8859-7 | ||
273 | 8x13O-ISO8859-9.pcf.gz -misc-fixed-medium-o-normal--13-120-75-75-c-80-iso8859-9 | ||
274 | 8x13O.pcf.gz -misc-fixed-medium-o-normal--13-120-75-75-c-80-iso10646-1 | ||
275 | 8x16.pcf.gz -sony-fixed-medium-r-normal--16-120-100-100-c-80-iso8859-1 | ||
276 | 8x16rk.pcf.gz -sony-fixed-medium-r-normal--16-120-100-100-c-80-jisx0201.1976-0 | ||
277 | 9x15-ISO8859-1.pcf.gz -misc-fixed-medium-r-normal--15-140-75-75-c-90-iso8859-1 | ||
278 | 9x15-ISO8859-10.pcf.gz -misc-fixed-medium-r-normal--15-140-75-75-c-90-iso8859-10 | ||
279 | 9x15-ISO8859-11.pcf.gz -misc-fixed-medium-r-normal--15-140-75-75-c-90-iso8859-11 | ||
280 | 9x15-ISO8859-13.pcf.gz -misc-fixed-medium-r-normal--15-140-75-75-c-90-iso8859-13 | ||
281 | 9x15-ISO8859-14.pcf.gz -misc-fixed-medium-r-normal--15-140-75-75-c-90-iso8859-14 | ||
282 | 9x15-ISO8859-15.pcf.gz -misc-fixed-medium-r-normal--15-140-75-75-c-90-iso8859-15 | ||
283 | 9x15-ISO8859-16.pcf.gz -misc-fixed-medium-r-normal--15-140-75-75-c-90-iso8859-16 | ||
284 | 9x15-ISO8859-2.pcf.gz -misc-fixed-medium-r-normal--15-140-75-75-c-90-iso8859-2 | ||
285 | 9x15-ISO8859-3.pcf.gz -misc-fixed-medium-r-normal--15-140-75-75-c-90-iso8859-3 | ||
286 | 9x15-ISO8859-4.pcf.gz -misc-fixed-medium-r-normal--15-140-75-75-c-90-iso8859-4 | ||
287 | 9x15-ISO8859-5.pcf.gz -misc-fixed-medium-r-normal--15-140-75-75-c-90-iso8859-5 | ||
288 | 9x15-ISO8859-7.pcf.gz -misc-fixed-medium-r-normal--15-140-75-75-c-90-iso8859-7 | ||
289 | 9x15-ISO8859-8.pcf.gz -misc-fixed-medium-r-normal--15-140-75-75-c-90-iso8859-8 | ||
290 | 9x15-ISO8859-9.pcf.gz -misc-fixed-medium-r-normal--15-140-75-75-c-90-iso8859-9 | ||
291 | 9x15-KOI8-R.pcf.gz -misc-fixed-medium-r-normal--15-140-75-75-c-90-koi8-r | ||
292 | 9x15.pcf.gz -misc-fixed-medium-r-normal--15-140-75-75-c-90-iso10646-1 | ||
293 | 9x15B-ISO8859-1.pcf.gz -misc-fixed-bold-r-normal--15-140-75-75-c-90-iso8859-1 | ||
294 | 9x15B-ISO8859-10.pcf.gz -misc-fixed-bold-r-normal--15-140-75-75-c-90-iso8859-10 | ||
295 | 9x15B-ISO8859-11.pcf.gz -misc-fixed-bold-r-normal--15-140-75-75-c-90-iso8859-11 | ||
296 | 9x15B-ISO8859-13.pcf.gz -misc-fixed-bold-r-normal--15-140-75-75-c-90-iso8859-13 | ||
297 | 9x15B-ISO8859-14.pcf.gz -misc-fixed-bold-r-normal--15-140-75-75-c-90-iso8859-14 | ||
298 | 9x15B-ISO8859-15.pcf.gz -misc-fixed-bold-r-normal--15-140-75-75-c-90-iso8859-15 | ||
299 | 9x15B-ISO8859-16.pcf.gz -misc-fixed-bold-r-normal--15-140-75-75-c-90-iso8859-16 | ||
300 | 9x15B-ISO8859-2.pcf.gz -misc-fixed-bold-r-normal--15-140-75-75-c-90-iso8859-2 | ||
301 | 9x15B-ISO8859-3.pcf.gz -misc-fixed-bold-r-normal--15-140-75-75-c-90-iso8859-3 | ||
302 | 9x15B-ISO8859-4.pcf.gz -misc-fixed-bold-r-normal--15-140-75-75-c-90-iso8859-4 | ||
303 | 9x15B-ISO8859-5.pcf.gz -misc-fixed-bold-r-normal--15-140-75-75-c-90-iso8859-5 | ||
304 | 9x15B-ISO8859-7.pcf.gz -misc-fixed-bold-r-normal--15-140-75-75-c-90-iso8859-7 | ||
305 | 9x15B-ISO8859-8.pcf.gz -misc-fixed-bold-r-normal--15-140-75-75-c-90-iso8859-8 | ||
306 | 9x15B-ISO8859-9.pcf.gz -misc-fixed-bold-r-normal--15-140-75-75-c-90-iso8859-9 | ||
307 | 9x15B.pcf.gz -misc-fixed-bold-r-normal--15-140-75-75-c-90-iso10646-1 | ||
308 | 9x18-ISO8859-1.pcf.gz -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso8859-1 | ||
309 | 9x18-ISO8859-10.pcf.gz -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso8859-10 | ||
310 | 9x18-ISO8859-11.pcf.gz -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso8859-11 | ||
311 | 9x18-ISO8859-13.pcf.gz -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso8859-13 | ||
312 | 9x18-ISO8859-14.pcf.gz -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso8859-14 | ||
313 | 9x18-ISO8859-15.pcf.gz -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso8859-15 | ||
314 | 9x18-ISO8859-16.pcf.gz -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso8859-16 | ||
315 | 9x18-ISO8859-2.pcf.gz -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso8859-2 | ||
316 | 9x18-ISO8859-3.pcf.gz -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso8859-3 | ||
317 | 9x18-ISO8859-4.pcf.gz -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso8859-4 | ||
318 | 9x18-ISO8859-5.pcf.gz -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso8859-5 | ||
319 | 9x18-ISO8859-7.pcf.gz -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso8859-7 | ||
320 | 9x18-ISO8859-8.pcf.gz -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso8859-8 | ||
321 | 9x18-ISO8859-9.pcf.gz -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso8859-9 | ||
322 | 9x18-KOI8-R.pcf.gz -misc-fixed-medium-r-normal--18-120-100-100-c-90-koi8-r | ||
323 | 9x18.pcf.gz -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1 | ||
324 | 9x18B-ISO8859-1.pcf.gz -misc-fixed-bold-r-normal--18-120-100-100-c-90-iso8859-1 | ||
325 | 9x18B-ISO8859-10.pcf.gz -misc-fixed-bold-r-normal--18-120-100-100-c-90-iso8859-10 | ||
326 | 9x18B-ISO8859-13.pcf.gz -misc-fixed-bold-r-normal--18-120-100-100-c-90-iso8859-13 | ||
327 | 9x18B-ISO8859-14.pcf.gz -misc-fixed-bold-r-normal--18-120-100-100-c-90-iso8859-14 | ||
328 | 9x18B-ISO8859-15.pcf.gz -misc-fixed-bold-r-normal--18-120-100-100-c-90-iso8859-15 | ||
329 | 9x18B-ISO8859-16.pcf.gz -misc-fixed-bold-r-normal--18-120-100-100-c-90-iso8859-16 | ||
330 | 9x18B-ISO8859-2.pcf.gz -misc-fixed-bold-r-normal--18-120-100-100-c-90-iso8859-2 | ||
331 | 9x18B-ISO8859-3.pcf.gz -misc-fixed-bold-r-normal--18-120-100-100-c-90-iso8859-3 | ||
332 | 9x18B-ISO8859-4.pcf.gz -misc-fixed-bold-r-normal--18-120-100-100-c-90-iso8859-4 | ||
333 | 9x18B-ISO8859-5.pcf.gz -misc-fixed-bold-r-normal--18-120-100-100-c-90-iso8859-5 | ||
334 | 9x18B-ISO8859-7.pcf.gz -misc-fixed-bold-r-normal--18-120-100-100-c-90-iso8859-7 | ||
335 | 9x18B-ISO8859-8.pcf.gz -misc-fixed-bold-r-normal--18-120-100-100-c-90-iso8859-8 | ||
336 | 9x18B-ISO8859-9.pcf.gz -misc-fixed-bold-r-normal--18-120-100-100-c-90-iso8859-9 | ||
337 | 9x18B.pcf.gz -misc-fixed-bold-r-normal--18-120-100-100-c-90-iso10646-1 | ||
338 | arabic24.pcf.gz -arabic-newspaper-medium-r-normal--32-246-100-100-p-137-iso10646-1 | ||
339 | clB6x10.pcf.gz -schumacher-clean-bold-r-normal--10-100-75-75-c-60-iso646.1991-irv | ||
340 | clB6x12.pcf.gz -schumacher-clean-bold-r-normal--12-120-75-75-c-60-iso646.1991-irv | ||
341 | clB8x10.pcf.gz -schumacher-clean-bold-r-normal--10-100-75-75-c-80-iso646.1991-irv | ||
342 | clB8x12.pcf.gz -schumacher-clean-bold-r-normal--12-120-75-75-c-80-iso646.1991-irv | ||
343 | clB8x13.pcf.gz -schumacher-clean-bold-r-normal--13-130-75-75-c-80-iso646.1991-irv | ||
344 | clB8x14.pcf.gz -schumacher-clean-bold-r-normal--14-140-75-75-c-80-iso646.1991-irv | ||
345 | clB8x16.pcf.gz -schumacher-clean-bold-r-normal--16-160-75-75-c-80-iso646.1991-irv | ||
346 | clB8x8.pcf.gz -schumacher-clean-bold-r-normal--8-80-75-75-c-80-iso646.1991-irv | ||
347 | clB9x15.pcf.gz -schumacher-clean-bold-r-normal--15-150-75-75-c-90-iso646.1991-irv | ||
348 | clI6x12.pcf.gz -schumacher-clean-medium-i-normal--12-120-75-75-c-60-iso646.1991-irv | ||
349 | clI8x8.pcf.gz -schumacher-clean-medium-i-normal--8-80-75-75-c-80-iso646.1991-irv | ||
350 | clR4x6.pcf.gz -schumacher-clean-medium-r-normal--6-60-75-75-c-40-iso646.1991-irv | ||
351 | clR5x10.pcf.gz -schumacher-clean-medium-r-normal--10-100-75-75-c-50-iso646.1991-irv | ||
352 | clR5x6.pcf.gz -schumacher-clean-medium-r-normal--6-60-75-75-c-50-iso646.1991-irv | ||
353 | clR5x8.pcf.gz -schumacher-clean-medium-r-normal--8-80-75-75-c-50-iso646.1991-irv | ||
354 | clR6x10.pcf.gz -schumacher-clean-medium-r-normal--10-100-75-75-c-60-iso646.1991-irv | ||
355 | clR6x12-ISO8859-1.pcf.gz -schumacher-clean-medium-r-normal--12-120-75-75-c-60-iso8859-1 | ||
356 | clR6x12-ISO8859-10.pcf.gz -schumacher-clean-medium-r-normal--12-120-75-75-c-60-iso8859-10 | ||
357 | clR6x12-ISO8859-13.pcf.gz -schumacher-clean-medium-r-normal--12-120-75-75-c-60-iso8859-13 | ||
358 | clR6x12-ISO8859-14.pcf.gz -schumacher-clean-medium-r-normal--12-120-75-75-c-60-iso8859-14 | ||
359 | clR6x12-ISO8859-15.pcf.gz -schumacher-clean-medium-r-normal--12-120-75-75-c-60-iso8859-15 | ||
360 | clR6x12-ISO8859-16.pcf.gz -schumacher-clean-medium-r-normal--12-120-75-75-c-60-iso8859-16 | ||
361 | clR6x12-ISO8859-2.pcf.gz -schumacher-clean-medium-r-normal--12-120-75-75-c-60-iso8859-2 | ||
362 | clR6x12-ISO8859-3.pcf.gz -schumacher-clean-medium-r-normal--12-120-75-75-c-60-iso8859-3 | ||
363 | clR6x12-ISO8859-4.pcf.gz -schumacher-clean-medium-r-normal--12-120-75-75-c-60-iso8859-4 | ||
364 | clR6x12-ISO8859-5.pcf.gz -schumacher-clean-medium-r-normal--12-120-75-75-c-60-iso8859-5 | ||
365 | clR6x12-ISO8859-7.pcf.gz -schumacher-clean-medium-r-normal--12-120-75-75-c-60-iso8859-7 | ||
366 | clR6x12-ISO8859-8.pcf.gz -schumacher-clean-medium-r-normal--12-120-75-75-c-60-iso8859-8 | ||
367 | clR6x12-ISO8859-9.pcf.gz -schumacher-clean-medium-r-normal--12-120-75-75-c-60-iso8859-9 | ||
368 | clR6x12-KOI8-R.pcf.gz -schumacher-clean-medium-r-normal--12-120-75-75-c-60-koi8-r | ||
369 | clR6x12.pcf.gz -schumacher-clean-medium-r-normal--12-120-75-75-c-60-iso10646-1 | ||
370 | clR6x13.pcf.gz -schumacher-clean-medium-r-normal--13-130-75-75-c-60-iso646.1991-irv | ||
371 | clR6x6.pcf.gz -schumacher-clean-medium-r-normal--6-60-75-75-c-60-iso646.1991-irv | ||
372 | clR6x8.pcf.gz -schumacher-clean-medium-r-normal--8-80-75-75-c-60-iso646.1991-irv | ||
373 | clR7x10.pcf.gz -schumacher-clean-medium-r-normal--10-100-75-75-c-70-iso646.1991-irv | ||
374 | clR7x12.pcf.gz -schumacher-clean-medium-r-normal--12-120-75-75-c-70-iso646.1991-irv | ||
375 | clR7x14.pcf.gz -schumacher-clean-medium-r-normal--14-140-75-75-c-70-iso646.1991-irv | ||
376 | clR7x8.pcf.gz -schumacher-clean-medium-r-normal--8-80-75-75-c-70-iso646.1991-irv | ||
377 | clR8x10.pcf.gz -schumacher-clean-medium-r-normal--10-100-75-75-c-80-iso646.1991-irv | ||
378 | clR8x12.pcf.gz -schumacher-clean-medium-r-normal--12-120-75-75-c-80-iso646.1991-irv | ||
379 | clR8x13.pcf.gz -schumacher-clean-medium-r-normal--13-130-75-75-c-80-iso646.1991-irv | ||
380 | clR8x14.pcf.gz -schumacher-clean-medium-r-normal--14-140-75-75-c-80-iso646.1991-irv | ||
381 | clR8x16.pcf.gz -schumacher-clean-medium-r-normal--16-160-75-75-c-80-iso646.1991-irv | ||
382 | clR8x8.pcf.gz -schumacher-clean-medium-r-normal--8-80-75-75-c-80-iso646.1991-irv | ||
383 | clR9x15.pcf.gz -schumacher-clean-medium-r-normal--15-150-75-75-c-90-iso646.1991-irv | ||
384 | cu-alt12.pcf.gz -mutt-clearlyu alternate glyphs-medium-r-normal--17-120-100-100-p-122-iso10646-1 | ||
385 | cu-arabic12.pcf.gz -mutt-clearlyu arabic extra-medium-r-normal--17-120-100-100-p-101-fontspecific-0 | ||
386 | cu-devnag12.pcf.gz -mutt-clearlyu devangari extra-medium-r-normal--17-120-100-100-p-105-fontspecific-0 | ||
387 | cu-lig12.pcf.gz -mutt-clearlyu ligature-medium-r-normal--17-120-100-100-p-141-fontspecific-0 | ||
388 | cu-pua12.pcf.gz -mutt-clearlyu pua-medium-r-normal--17-120-100-100-p-110-iso10646-1 | ||
389 | cu12.pcf.gz -mutt-clearlyu-medium-r-normal--17-120-100-100-p-123-iso10646-1 | ||
390 | cuarabic12.pcf.gz -mutt-clearlyu arabic-medium-r-normal--17-120-100-100-p-93-iso10646-1 | ||
391 | cudevnag12.pcf.gz -mutt-clearlyu devanagari-medium-r-normal--15-120-90-90-p-104-fontspecific-0 | ||
392 | cursor.pcf.gz cursor | ||
393 | deccurs.pcf.gz decw$cursor | ||
394 | decsess.pcf.gz decw$session | ||
395 | gb16fs.pcf.gz -isas-fangsong ti-medium-r-normal--16-160-72-72-c-160-gb2312.1980-0 | ||
396 | gb16st.pcf.gz -isas-song ti-medium-r-normal--16-160-72-72-c-160-gb2312.1980-0 | ||
397 | gb24st.pcf.gz -isas-song ti-medium-r-normal--24-240-72-72-c-240-gb2312.1980-0 | ||
398 | hanglg16.pcf.gz -daewoo-gothic-medium-r-normal--16-120-100-100-c-160-ksc5601.1987-0 | ||
399 | hanglm16.pcf.gz -daewoo-mincho-medium-r-normal--16-120-100-100-c-160-ksc5601.1987-0 | ||
400 | hanglm24.pcf.gz -daewoo-mincho-medium-r-normal--24-170-100-100-c-240-ksc5601.1987-0 | ||
401 | jiskan16.pcf.gz -jis-fixed-medium-r-normal--16-150-75-75-c-160-jisx0208.1983-0 | ||
402 | jiskan24.pcf.gz -jis-fixed-medium-r-normal--24-230-75-75-c-240-jisx0208.1983-0 | ||
403 | k14.pcf.gz -misc-fixed-medium-r-normal--14-130-75-75-c-140-jisx0208.1983-0 | ||
404 | micro.pcf.gz micro | ||
405 | nil2.pcf.gz -misc-nil-medium-r-normal--2-20-75-75-c-10-misc-fontspecific | ||
406 | olcursor.pcf.gz -sun-open look cursor-----12-120-75-75-p-160-sunolcursor-1 | ||
407 | olgl10.pcf.gz -sun-open look glyph-----10-100-75-75-p-101-sunolglyph-1 | ||
408 | olgl12.pcf.gz -sun-open look glyph-----12-120-75-75-p-113-sunolglyph-1 | ||
409 | olgl14.pcf.gz -sun-open look glyph-----14-140-75-75-p-128-sunolglyph-1 | ||
410 | olgl19.pcf.gz -sun-open look glyph-----19-190-75-75-p-154-sunolglyph-1 | ||
diff --git a/meta/recipes-graphics/xorg-lib/libapplewm_1.0.0.bb b/meta/recipes-graphics/xorg-lib/libapplewm_1.0.0.bb new file mode 100644 index 0000000000..bc502fb505 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libapplewm_1.0.0.bb | |||
@@ -0,0 +1,7 @@ | |||
1 | require xorg-lib-common.inc | ||
2 | |||
3 | DEPENDS += "libxext applewmproto" | ||
4 | PR = "r1" | ||
5 | PE = "1" | ||
6 | |||
7 | XORG_PN = "libAppleWM" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libdmx_1.1.0.bb b/meta/recipes-graphics/xorg-lib/libdmx_1.1.0.bb new file mode 100644 index 0000000000..20523b894e --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libdmx_1.1.0.bb | |||
@@ -0,0 +1,11 @@ | |||
1 | require xorg-lib-common.inc | ||
2 | |||
3 | DESCRIPTION = "X11 Distributed Multihead extension library" | ||
4 | |||
5 | LICENSE = "MIT" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=4641deddaa80fe7ca88e944e1fd94a94 \ | ||
7 | file://src/dmx.c;endline=33;md5=79ff7aacf716dafea0d490316f998a11" | ||
8 | |||
9 | DEPENDS += "libxext dmxproto" | ||
10 | PR = "r1" | ||
11 | PE = "1" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libfontenc_1.0.5.bb b/meta/recipes-graphics/xorg-lib/libfontenc_1.0.5.bb new file mode 100644 index 0000000000..dc7b62d02d --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libfontenc_1.0.5.bb | |||
@@ -0,0 +1,12 @@ | |||
1 | DESCRIPTION = "X11 font encoding library" | ||
2 | |||
3 | require xorg-lib-common.inc | ||
4 | |||
5 | LICENSE = "MIT" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=96254c20ab81c63e65b26f0dbcd4a1c1" | ||
7 | |||
8 | DEPENDS += "zlib xproto" | ||
9 | PR = "r0" | ||
10 | PE = "1" | ||
11 | |||
12 | BBCLASSEXTEND = "native" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libfs_1.0.1.bb b/meta/recipes-graphics/xorg-lib/libfs_1.0.1.bb new file mode 100644 index 0000000000..010aa311e0 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libfs_1.0.1.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | require xorg-lib-common.inc | ||
2 | |||
3 | DESCRIPTION = "X11 Font Services library" | ||
4 | DEPENDS += "xproto fontsproto xtrans" | ||
5 | PR = "r1" | ||
6 | PE = "1" | ||
7 | |||
8 | XORG_PN = "libFS" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libice_1.0.6.bb b/meta/recipes-graphics/xorg-lib/libice_1.0.6.bb new file mode 100644 index 0000000000..ec3ad136a0 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libice_1.0.6.bb | |||
@@ -0,0 +1,16 @@ | |||
1 | DESCRIPTION = "X11 Inter-Client Exchange library" | ||
2 | |||
3 | require xorg-lib-common.inc | ||
4 | |||
5 | LICENSE = "MIT-style" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=d162b1b3c6fa812da9d804dcf8584a93" | ||
7 | |||
8 | DEPENDS += "xproto xtrans" | ||
9 | PROVIDES = "ice" | ||
10 | |||
11 | PR = "r0" | ||
12 | PE = "1" | ||
13 | |||
14 | XORG_PN = "libICE" | ||
15 | |||
16 | BBCLASSEXTEND = "native" | ||
diff --git a/meta/recipes-graphics/xorg-lib/liblbxutil/mkg3states.patch b/meta/recipes-graphics/xorg-lib/liblbxutil/mkg3states.patch new file mode 100644 index 0000000000..029d761d95 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/liblbxutil/mkg3states.patch | |||
@@ -0,0 +1,63 @@ | |||
1 | During the build process the mkg3states binary needs to be run. This patch | ||
2 | allows it to be built with the build systems gcc allowing this to work. | ||
3 | |||
4 | RP 31/3/10 | ||
5 | |||
6 | Index: liblbxutil-1.1.0/configure.ac | ||
7 | =================================================================== | ||
8 | --- liblbxutil-1.1.0.orig/configure.ac 2009-12-04 22:52:04.000000000 +0000 | ||
9 | +++ liblbxutil-1.1.0/configure.ac 2010-03-31 15:26:33.000000000 +0100 | ||
10 | @@ -50,4 +50,5 @@ | ||
11 | |||
12 | AC_OUTPUT([Makefile | ||
13 | src/Makefile | ||
14 | + src/image/Makefile | ||
15 | lbxutil.pc]) | ||
16 | Index: liblbxutil-1.1.0/src/Makefile.am | ||
17 | =================================================================== | ||
18 | --- liblbxutil-1.1.0.orig/src/Makefile.am 2009-12-04 23:03:17.000000000 +0000 | ||
19 | +++ liblbxutil-1.1.0/src/Makefile.am 2010-03-31 15:27:25.000000000 +0100 | ||
20 | @@ -3,10 +3,7 @@ | ||
21 | AM_CFLAGS = $(CWARNFLAGS) $(LBXUTIL_CFLAGS) | ||
22 | INCLUDES = -I$(top_srcdir)/include | ||
23 | |||
24 | -noinst_PROGRAMS = mkg3states | ||
25 | - | ||
26 | -mkg3states_SOURCES = \ | ||
27 | - $(srcdir)/image/mkg3states.c | ||
28 | +SUBDIRS = image | ||
29 | |||
30 | liblbxutil_la_SOURCES = \ | ||
31 | $(srcdir)/lbx_zlib/reqstats.h \ | ||
32 | @@ -38,9 +35,8 @@ | ||
33 | |||
34 | $(srcdir)/image/dfaxg42d.c: g3states.h | ||
35 | |||
36 | -g3states.h: mkg3states | ||
37 | - -rm -f g3states.h | ||
38 | - $(AM_V_GEN) ./mkg3states -c > g3states.h_ && mv g3states.h_ g3states.h | ||
39 | +g3states.h: image/mkg3states | ||
40 | + ./image/mkg3states -c > g3states.h_ && mv g3states.h_ g3states.h | ||
41 | |||
42 | liblbxutil_la_LDFLAGS = -version-number 1:0:0 -no-undefined | ||
43 | |||
44 | Index: liblbxutil-1.1.0/src/image/Makefile.am | ||
45 | =================================================================== | ||
46 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
47 | +++ liblbxutil-1.1.0/src/image/Makefile.am 2010-03-31 15:26:33.000000000 +0100 | ||
48 | @@ -0,0 +1,15 @@ | ||
49 | +# evil hack | ||
50 | +CFLAGS=$(CFLAGS_FOR_BUILD) | ||
51 | +CPPFLAGS=$(CPPFLAGS_FOR_BUILD) | ||
52 | +LDFLAGS=$(LDFLAGS_FOR_BUILD) | ||
53 | + | ||
54 | +CC=$(CC_FOR_BUILD) | ||
55 | +LIBTOOL = @LIBTOOL@ --tag=CC | ||
56 | + | ||
57 | +noinst_PROGRAMS = mkg3states | ||
58 | + | ||
59 | +mkg3states_SOURCES = \ | ||
60 | + mkg3states.c | ||
61 | + | ||
62 | +mkg3states_CFLAGS=$(CFLAGS_FOR_BUILD) | ||
63 | +mkg3states_LDFLAGS=$(LDFLAGS_FOR_BUILD) | ||
diff --git a/meta/recipes-graphics/xorg-lib/liblbxutil_1.1.0.bb b/meta/recipes-graphics/xorg-lib/liblbxutil_1.1.0.bb new file mode 100644 index 0000000000..cdf3509246 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/liblbxutil_1.1.0.bb | |||
@@ -0,0 +1,11 @@ | |||
1 | require xorg-lib-common.inc | ||
2 | |||
3 | DESCRIPTION = "XFIXES Extension" | ||
4 | DEPENDS += " libxext xextproto xproto zlib" | ||
5 | PROVIDES = "lbxutil" | ||
6 | PE = "1" | ||
7 | PR = "r1" | ||
8 | |||
9 | SRC_URI += "file://mkg3states.patch;patch=1" | ||
10 | |||
11 | export CC_FOR_BUILD = "gcc" | ||
diff --git a/meta/recipes-graphics/xorg-lib/liboldx_1.0.1.bb b/meta/recipes-graphics/xorg-lib/liboldx_1.0.1.bb new file mode 100644 index 0000000000..84470cbc78 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/liboldx_1.0.1.bb | |||
@@ -0,0 +1,6 @@ | |||
1 | require xorg-lib-common.inc | ||
2 | |||
3 | DEPENDS += " virtual/libx11" | ||
4 | PE = "1" | ||
5 | |||
6 | XORG_PN = "liboldX" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libpciaccess_0.11.0.bb b/meta/recipes-graphics/xorg-lib/libpciaccess_0.11.0.bb new file mode 100644 index 0000000000..b4032c0a10 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libpciaccess_0.11.0.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | DESCRIPTION = "Generic PCI access library" | ||
2 | |||
3 | require xorg-lib-common.inc | ||
4 | |||
5 | LICENSE = "MIT & MIT-style" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=ad1647740bccb2315e6f6368dce05c6d" | ||
7 | |||
8 | PR = "r0" | ||
9 | |||
10 | DEPENDS += "xproto virtual/libx11" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libsm_1.1.1.bb b/meta/recipes-graphics/xorg-lib/libsm_1.1.1.bb new file mode 100644 index 0000000000..0ec38c5aa9 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libsm_1.1.1.bb | |||
@@ -0,0 +1,15 @@ | |||
1 | DESCRIPTION = "X11 Session management library" | ||
2 | |||
3 | require xorg-lib-common.inc | ||
4 | |||
5 | LICENSE = "MIT-style" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=451a87de5b38d25ec6b96d548087934d" | ||
7 | |||
8 | DEPENDS += "libice xproto xtrans e2fsprogs" | ||
9 | |||
10 | PR = "r0" | ||
11 | PE = "1" | ||
12 | |||
13 | XORG_PN = "libSM" | ||
14 | |||
15 | BBCLASSEXTEND = "native" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libwindowswm_1.0.0.bb b/meta/recipes-graphics/xorg-lib/libwindowswm_1.0.0.bb new file mode 100644 index 0000000000..a03d49505b --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libwindowswm_1.0.0.bb | |||
@@ -0,0 +1,6 @@ | |||
1 | require xorg-lib-common.inc | ||
2 | |||
3 | DEPENDS += "libxext windowswmproto" | ||
4 | PE = "1" | ||
5 | |||
6 | XORG_PN = "libWindowsWM" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libx11-1.3.4/include_fix.patch b/meta/recipes-graphics/xorg-lib/libx11-1.3.4/include_fix.patch new file mode 100644 index 0000000000..c8aa08595d --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libx11-1.3.4/include_fix.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | --- | ||
2 | configure.ac | 6 +++--- | ||
3 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
4 | |||
5 | --- libX11-1.3.4.orig/configure.ac | ||
6 | +++ libX11-1.3.4/configure.ac | ||
7 | @@ -353,9 +353,9 @@ | ||
8 | # | ||
9 | # Find keysymdef.h | ||
10 | # | ||
11 | -AC_MSG_CHECKING([keysymdef.h]) | ||
12 | -dir=`$PKG_CONFIG --variable=includedir xproto` | ||
13 | -KEYSYMDEF="$dir/X11/keysymdef.h" | ||
14 | +AC_ARG_WITH(keysymdef, | ||
15 | + AC_HELP_STRING([--with-keysymdef=DIR/keysymdef.h], [The location of keysymdef.h]), | ||
16 | + KEYSYMDEF=$withval, KEYSYMDEF="") | ||
17 | if test -f "$KEYSYMDEF"; then | ||
18 | AC_MSG_RESULT([$KEYSYMDEF]) | ||
19 | else | ||
diff --git a/meta/recipes-graphics/xorg-lib/libx11-1.3.4/nodolt.patch b/meta/recipes-graphics/xorg-lib/libx11-1.3.4/nodolt.patch new file mode 100644 index 0000000000..011c23e8d8 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libx11-1.3.4/nodolt.patch | |||
@@ -0,0 +1,10 @@ | |||
1 | --- libX11-1.3.4.orig/configure.ac | ||
2 | +++ libX11-1.3.4/configure.ac | ||
3 | @@ -32,7 +32,6 @@ | ||
4 | |||
5 | # Checks for programs. | ||
6 | AC_PROG_LIBTOOL | ||
7 | -DOLT | ||
8 | AC_PROG_CC | ||
9 | PKG_PROG_PKG_CONFIG | ||
10 | |||
diff --git a/meta/recipes-graphics/xorg-lib/libx11-1.3.4/x11_disable_makekeys.patch b/meta/recipes-graphics/xorg-lib/libx11-1.3.4/x11_disable_makekeys.patch new file mode 100644 index 0000000000..4036757e54 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libx11-1.3.4/x11_disable_makekeys.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | --- | ||
2 | src/util/Makefile.am | 21 ----------------- | ||
3 | 1 file changed, 21 deletions(-) | ||
4 | |||
5 | --- libX11-1.3.4.orig/src/util/Makefile.am | ||
6 | +++ libX11-1.3.4/src/util/Makefile.am | ||
7 | @@ -1,24 +1,3 @@ | ||
8 | |||
9 | -noinst_PROGRAMS=makekeys | ||
10 | - | ||
11 | -makekeys_CFLAGS = \ | ||
12 | - $(X11_CFLAGS) \ | ||
13 | - $(CWARNFLAGS) | ||
14 | - | ||
15 | -CC = @CC_FOR_BUILD@ | ||
16 | -CPPFLAGS = @CPPFLAGS_FOR_BUILD@ | ||
17 | -CFLAGS = @CFLAGS_FOR_BUILD@ | ||
18 | -LDFLAGS = @LDFLAGS_FOR_BUILD@ | ||
19 | - | ||
20 | EXTRA_DIST = mkks.sh | ||
21 | |||
22 | -if LINT | ||
23 | -# Check source code with tools like lint & sparse | ||
24 | - | ||
25 | -ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ | ||
26 | - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) | ||
27 | - | ||
28 | -lint: | ||
29 | - $(LINT) $(ALL_LINT_FLAGS) makekeys.c | ||
30 | - | ||
31 | -endif LINT | ||
diff --git a/meta/recipes-graphics/xorg-lib/libx11-diet_1.3.bb b/meta/recipes-graphics/xorg-lib/libx11-diet_1.3.bb new file mode 100644 index 0000000000..a76aba16e4 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libx11-diet_1.3.bb | |||
@@ -0,0 +1,17 @@ | |||
1 | require libx11.inc | ||
2 | |||
3 | PR = "r1" | ||
4 | |||
5 | SRC_URI += "file://x11_disable_makekeys.patch;patch=1 \ | ||
6 | file://include_fix.patch;patch=1 \ | ||
7 | file://X18NCMSstubs.diff;patch=1 \ | ||
8 | file://fix-disable-xlocale.diff;patch=1 \ | ||
9 | file://fix-utf8-wrong-define.patch;patch=1" | ||
10 | |||
11 | DEPENDS += "bigreqsproto xproto xextproto xtrans libxau xcmiscproto \ | ||
12 | libxdmcp xf86bigfontproto kbproto inputproto xproto-native" | ||
13 | |||
14 | FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/libx11" | ||
15 | |||
16 | EXTRA_OECONF += "--without-xcb --disable-udc --disable-xcms --disable-xlocale" | ||
17 | CFLAGS += "-D_GNU_SOURCE" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libx11-diet_git.bb b/meta/recipes-graphics/xorg-lib/libx11-diet_git.bb new file mode 100644 index 0000000000..d1f0a753fa --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libx11-diet_git.bb | |||
@@ -0,0 +1,12 @@ | |||
1 | require libx11.inc | ||
2 | require libx11_git.inc | ||
3 | |||
4 | SRC_URI += "file://X18NCMSstubs.diff;patch=1 \ | ||
5 | file://fix-disable-xlocale.diff;patch=1 \ | ||
6 | file://fix-utf8-wrong-define.patch;patch=1" | ||
7 | |||
8 | DEPENDS += "bigreqsproto xproto xextproto xtrans libxau xcmiscproto \ | ||
9 | libxdmcp xf86bigfontproto kbproto inputproto xproto-native" | ||
10 | |||
11 | EXTRA_OECONF += "--without-xcb --disable-udc --disable-xcms --disable-xlocale" | ||
12 | CFLAGS += "-D_GNU_SOURCE" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libx11-git/X18NCMSstubs.diff b/meta/recipes-graphics/xorg-lib/libx11-git/X18NCMSstubs.diff new file mode 100644 index 0000000000..2dd27fc94f --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libx11-git/X18NCMSstubs.diff | |||
@@ -0,0 +1,568 @@ | |||
1 | --- | ||
2 | configure.ac | 9 - | ||
3 | src/Makefile.am | 5 | ||
4 | src/X18NCMSstubs.c | 428 +++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
5 | src/imConv.c | 4 | ||
6 | src/locking.c | 4 | ||
7 | 5 files changed, 448 insertions(+), 2 deletions(-) | ||
8 | |||
9 | --- git.orig/configure.ac | ||
10 | +++ git/configure.ac | ||
11 | @@ -263,11 +263,18 @@ if test -f "$KEYSYMDEF"; then | ||
12 | else | ||
13 | AC_MSG_ERROR([Cannot find keysymdef.h]) | ||
14 | fi | ||
15 | AC_SUBST(KEYSYMDEF) | ||
16 | |||
17 | -AM_CONDITIONAL(UDC, test xfalse = xtrue) | ||
18 | +AC_ARG_ENABLE(udc, | ||
19 | + AC_HELP_STRING([--disable-udc], | ||
20 | + [Disable Xlib support for UDC *EXPERIMENTAL*]), | ||
21 | + [UDC=$enableval],[UDC=yes]) | ||
22 | +AM_CONDITIONAL(UDC, [test x$UDC = xyes ]) | ||
23 | +if test x"$UDC" = "xyes"; then | ||
24 | + AC_DEFINE(UDC,1,[Include support for UDC]) | ||
25 | +fi | ||
26 | |||
27 | AC_ARG_ENABLE(xcms, | ||
28 | AC_HELP_STRING([--disable-xcms], | ||
29 | [Disable Xlib support for CMS *EXPERIMENTAL*]), | ||
30 | [XCMS=$enableval],[XCMS=yes]) | ||
31 | --- git.orig/src/Makefile.am | ||
32 | +++ git/src/Makefile.am | ||
33 | @@ -329,18 +329,21 @@ endif | ||
34 | |||
35 | if THRSTUBS | ||
36 | libX11_la_SOURCES+=UIThrStubs.c | ||
37 | endif | ||
38 | |||
39 | +libX11_la_SOURCES+=X18NCMSstubs.c | ||
40 | + | ||
41 | x11datadir = @X11_DATADIR@ | ||
42 | x11data_DATA = XKeysymDB XErrorDB | ||
43 | |||
44 | EXTRA_DIST = \ | ||
45 | $(x11data_DATA) \ | ||
46 | os2Stubs.c \ | ||
47 | udcInf.c \ | ||
48 | - UIThrStubs.c | ||
49 | + UIThrStubs.c \ | ||
50 | + X18NCMSstubs.c | ||
51 | |||
52 | if XCB | ||
53 | libX11_la_SOURCES += \ | ||
54 | xcb_lock.c \ | ||
55 | xcb_disp.c \ | ||
56 | --- /dev/null | ||
57 | +++ git/src/X18NCMSstubs.c | ||
58 | @@ -0,0 +1,428 @@ | ||
59 | +/* | ||
60 | + * X18NCMSstubs.c | ||
61 | + * - Provides stubs and dummy funcs needed when Xcms and XLocale stuff removed | ||
62 | + * | ||
63 | + * Copyright © 2003 Matthew Allum | ||
64 | + * | ||
65 | + * Permission to use, copy, modify, distribute, and sell this software and its | ||
66 | + * documentation for any purpose is hereby granted without fee, provided that | ||
67 | + * the above copyright notice appear in all copies and that both that | ||
68 | + * copyright notice and this permission notice appear in supporting | ||
69 | + * documentation, and that the name of Matthew Allum not be used in | ||
70 | + * advertising or publicity pertaining to distribution of the software without | ||
71 | + * specific, written prior permission. Keith Packard and Compaq makes no | ||
72 | + * representations about the suitability of this software for any purpose. It | ||
73 | + * is provided "as is" without express or implied warranty. | ||
74 | + * | ||
75 | + * MATTHEW ALLUM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS | ||
76 | + * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, | ||
77 | + * IN NO EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR | ||
78 | + * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, | ||
79 | + * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER | ||
80 | + * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
81 | + * PERFORMANCE OF THIS SOFTWARE. | ||
82 | + */ | ||
83 | + | ||
84 | +#include <stdlib.h> | ||
85 | +#include "Xlibint.h" | ||
86 | +#include "Xlcint.h" | ||
87 | +#include <X11/Xlocale.h> | ||
88 | +#include <X11/Xos.h> | ||
89 | +#ifdef WIN32 | ||
90 | +#undef close | ||
91 | +#endif | ||
92 | +#include <X11/Xutil.h> | ||
93 | +#include "XlcPubI.h" | ||
94 | + | ||
95 | +#include "Xcmsint.h" /* for XcmsCCC type */ | ||
96 | +#include "XlcPubI.h" /* for XLCd type */ | ||
97 | +#include "config.h" | ||
98 | + | ||
99 | +#if ! XLOCALE | ||
100 | + | ||
101 | +Bool | ||
102 | +XSupportsLocale() | ||
103 | +{ | ||
104 | + return False; | ||
105 | +} | ||
106 | + | ||
107 | +char * | ||
108 | +XSetLocaleModifiers( | ||
109 | + const char *modifiers) | ||
110 | +{ | ||
111 | + return NULL; | ||
112 | +} | ||
113 | + | ||
114 | +XLCd | ||
115 | +_XOpenLC( | ||
116 | + char *name) | ||
117 | +{ | ||
118 | + return NULL; | ||
119 | +} | ||
120 | + | ||
121 | +XLCd | ||
122 | +_XlcCurrentLC() | ||
123 | +{ | ||
124 | + return NULL; | ||
125 | +} | ||
126 | + | ||
127 | +void | ||
128 | +_XlcVaToArgList( | ||
129 | + va_list var, | ||
130 | + int count, | ||
131 | + XlcArgList *args_ret) | ||
132 | +{ | ||
133 | + return; | ||
134 | +} | ||
135 | + | ||
136 | +void | ||
137 | +_XlcCountVaList( | ||
138 | + va_list var, | ||
139 | + int *count_ret) | ||
140 | +{ | ||
141 | + return; | ||
142 | +} | ||
143 | + | ||
144 | +void | ||
145 | +_XCloseLC( | ||
146 | + XLCd lcd) | ||
147 | +{ | ||
148 | + return; | ||
149 | +} | ||
150 | + | ||
151 | +int | ||
152 | +_XlcConvert( | ||
153 | + XlcConv conv, | ||
154 | + XPointer *from, | ||
155 | + int *from_left, | ||
156 | + XPointer *to, | ||
157 | + int *to_left, | ||
158 | + XPointer *args, | ||
159 | + int num_args) | ||
160 | +{ | ||
161 | + return 0; | ||
162 | +} | ||
163 | + | ||
164 | +/* XIM Stubs */ | ||
165 | + | ||
166 | +XPointer | ||
167 | +_XimGetLocaleCode ( _Xconst char* encoding_name ) | ||
168 | +{ | ||
169 | + return NULL; | ||
170 | +} | ||
171 | + | ||
172 | +int | ||
173 | +_XimGetCharCode ( | ||
174 | + XPointer ucs_conv, | ||
175 | + KeySym keysym, | ||
176 | + unsigned char* buf, | ||
177 | + int nbytes) | ||
178 | +{ | ||
179 | + return 0; | ||
180 | +} | ||
181 | + | ||
182 | +/* Xrm Stubs */ | ||
183 | + | ||
184 | +XrmMethods | ||
185 | +_XrmInitParseInfo( | ||
186 | + XPointer *state) | ||
187 | +{ | ||
188 | + return (XrmMethods) NULL; | ||
189 | +} | ||
190 | + | ||
191 | +/* Xwc Stubs */ | ||
192 | + | ||
193 | +int | ||
194 | +XwcTextExtents( | ||
195 | + XFontSet font_set, | ||
196 | + _Xconst wchar_t *text, | ||
197 | + int text_len, | ||
198 | + XRectangle *overall_ink_extents, | ||
199 | + XRectangle *overall_logical_extents) | ||
200 | +{ | ||
201 | + return 0; | ||
202 | +} | ||
203 | + | ||
204 | +void | ||
205 | +XwcDrawString(Display *display, | ||
206 | + Drawable d, | ||
207 | + XFontSet font_set, | ||
208 | + GC gc, | ||
209 | + int x, int y, | ||
210 | + _Xconst wchar_t *string, | ||
211 | + int num_wchars) | ||
212 | +{ | ||
213 | + ; | ||
214 | +} | ||
215 | + | ||
216 | +void | ||
217 | +XwcDrawText( | ||
218 | + Display *dpy, | ||
219 | + Drawable d, | ||
220 | + GC gc, | ||
221 | + int x, | ||
222 | + int y, | ||
223 | + XwcTextItem *text_items, | ||
224 | + int nitems) | ||
225 | +{ | ||
226 | + ; | ||
227 | +} | ||
228 | + | ||
229 | +void | ||
230 | +XwcDrawImageString( | ||
231 | + Display *dpy, | ||
232 | + Drawable d, | ||
233 | + XFontSet font_set, | ||
234 | + GC gc, | ||
235 | + int x, | ||
236 | + int y, | ||
237 | + _Xconst wchar_t *text, | ||
238 | + int text_len) | ||
239 | +{ | ||
240 | + ; | ||
241 | +} | ||
242 | + | ||
243 | +int | ||
244 | +XwcTextEscapement( | ||
245 | + XFontSet font_set, | ||
246 | + _Xconst wchar_t *text, | ||
247 | + int text_len) | ||
248 | +{ | ||
249 | + return 0; | ||
250 | +} | ||
251 | + | ||
252 | +Status | ||
253 | +XwcTextPerCharExtents( | ||
254 | + XFontSet font_set, | ||
255 | + _Xconst wchar_t *text, | ||
256 | + int text_len, | ||
257 | + XRectangle *ink_extents_buffer, | ||
258 | + XRectangle *logical_extents_buffer, | ||
259 | + int buffer_size, | ||
260 | + int *num_chars, | ||
261 | + XRectangle *max_ink_extents, | ||
262 | + XRectangle *max_logical_extents) | ||
263 | +{ | ||
264 | + ; | ||
265 | +} | ||
266 | + | ||
267 | +int | ||
268 | +XwcTextPropertyToTextList( | ||
269 | + Display *dpy, | ||
270 | + const XTextProperty *text_prop, | ||
271 | + wchar_t ***list_ret, | ||
272 | + int *count_ret) | ||
273 | +{ | ||
274 | + return 0; | ||
275 | +} | ||
276 | + | ||
277 | +int | ||
278 | +XwcTextListToTextProperty( | ||
279 | + Display *dpy, | ||
280 | + wchar_t **list, | ||
281 | + int count, | ||
282 | + XICCEncodingStyle style, | ||
283 | + XTextProperty *text_prop) | ||
284 | +{ | ||
285 | + return 0; | ||
286 | +} | ||
287 | + | ||
288 | +void | ||
289 | +XwcFreeStringList(wchar_t **list) | ||
290 | +{ | ||
291 | + return; | ||
292 | +} | ||
293 | + | ||
294 | + | ||
295 | +void XmbSetWMProperties ( /* Actually from mbWMProps.c */ | ||
296 | + Display *dpy, | ||
297 | + Window w, | ||
298 | + _Xconst char *windowName, | ||
299 | + _Xconst char *iconName, | ||
300 | + char **argv, | ||
301 | + int argc, | ||
302 | + XSizeHints *sizeHints, | ||
303 | + XWMHints *wmHints, | ||
304 | + XClassHint *classHints) | ||
305 | +{ | ||
306 | + return; | ||
307 | +} | ||
308 | + | ||
309 | +int | ||
310 | +XmbTextPropertyToTextList( | ||
311 | + Display *dpy, | ||
312 | + const XTextProperty *text_prop, | ||
313 | + char ***list_ret, | ||
314 | + int *count_ret) | ||
315 | +{ | ||
316 | + return XLocaleNotSupported; | ||
317 | +} | ||
318 | + | ||
319 | +int | ||
320 | +XmbTextListToTextProperty( | ||
321 | + Display *dpy, | ||
322 | + char **list, | ||
323 | + int count, | ||
324 | + XICCEncodingStyle style, | ||
325 | + XTextProperty *text_prop) | ||
326 | +{ | ||
327 | + return XLocaleNotSupported; | ||
328 | +} | ||
329 | + | ||
330 | +int | ||
331 | +XmbTextExtents( | ||
332 | + XFontSet font_set, | ||
333 | + _Xconst char *text, | ||
334 | + int text_len, | ||
335 | + XRectangle *overall_ink_extents, | ||
336 | + XRectangle *overall_logical_extents) | ||
337 | +{ | ||
338 | + return 0; | ||
339 | +} | ||
340 | + | ||
341 | +void | ||
342 | +XmbDrawText( | ||
343 | + Display *dpy, | ||
344 | + Drawable d, | ||
345 | + GC gc, | ||
346 | + int x, | ||
347 | + int y, | ||
348 | + XmbTextItem *text_items, | ||
349 | + int nitems) | ||
350 | +{ | ||
351 | + ; | ||
352 | +} | ||
353 | + | ||
354 | +void | ||
355 | +XmbDrawString( | ||
356 | + Display *dpy, | ||
357 | + Drawable d, | ||
358 | + XFontSet font_set, | ||
359 | + GC gc, | ||
360 | + int x, | ||
361 | + int y, | ||
362 | + _Xconst char *text, | ||
363 | + int text_len) | ||
364 | +{ | ||
365 | + ; | ||
366 | +} | ||
367 | + | ||
368 | +void | ||
369 | +XmbDrawImageString( | ||
370 | + Display *dpy, | ||
371 | + Drawable d, | ||
372 | + XFontSet font_set, | ||
373 | + GC gc, | ||
374 | + int x, | ||
375 | + int y, | ||
376 | + _Xconst char *text, | ||
377 | + int text_len) | ||
378 | +{ | ||
379 | + ; | ||
380 | +} | ||
381 | + | ||
382 | +int | ||
383 | +XmbTextEscapement( | ||
384 | + XFontSet font_set, | ||
385 | + _Xconst char *text, | ||
386 | + int text_len) | ||
387 | +{ | ||
388 | + return 0; | ||
389 | +} | ||
390 | + | ||
391 | +Status | ||
392 | +XmbTextPerCharExtents( | ||
393 | + XFontSet font_set, | ||
394 | + _Xconst char *text, | ||
395 | + int text_len, | ||
396 | + XRectangle *ink_extents_buffer, | ||
397 | + XRectangle *logical_extents_buffer, | ||
398 | + int buffer_size, | ||
399 | + int *num_chars, | ||
400 | + XRectangle *max_ink_extents, | ||
401 | + XRectangle *max_logical_extents) | ||
402 | +{ | ||
403 | + return 0; | ||
404 | +} | ||
405 | + | ||
406 | +unsigned int | ||
407 | +KeySymToUcs4(KeySym keysym) | ||
408 | +{ | ||
409 | + return 0; | ||
410 | +} | ||
411 | + | ||
412 | +#endif | ||
413 | + | ||
414 | +#if ! XCMS | ||
415 | + | ||
416 | +XcmsCCC | ||
417 | +XcmsCCCOfColormap(dpy, cmap) | ||
418 | + Display *dpy; | ||
419 | + Colormap cmap; | ||
420 | +{ | ||
421 | + return NULL; | ||
422 | +} | ||
423 | + | ||
424 | +Status | ||
425 | +_XcmsResolveColorString ( | ||
426 | + XcmsCCC ccc, | ||
427 | + const char **color_string, | ||
428 | + XcmsColor *pColor_exact_return, | ||
429 | + XcmsColorFormat result_format) | ||
430 | +{ | ||
431 | + return(XcmsFailure); | ||
432 | +} | ||
433 | + | ||
434 | +void | ||
435 | +_XcmsUnresolveColor( | ||
436 | + XcmsCCC ccc, | ||
437 | + XcmsColor *pColor) | ||
438 | +{ | ||
439 | + return; | ||
440 | +} | ||
441 | + | ||
442 | +void | ||
443 | +_XUnresolveColor( | ||
444 | + XcmsCCC ccc, | ||
445 | + XColor *pXColor) | ||
446 | +{ | ||
447 | + return; | ||
448 | +} | ||
449 | + | ||
450 | +XcmsCmapRec * | ||
451 | +_XcmsAddCmapRec(dpy, cmap, windowID, visual) | ||
452 | + Display *dpy; | ||
453 | + Colormap cmap; | ||
454 | + Window windowID; | ||
455 | + Visual *visual; | ||
456 | +{ | ||
457 | + return NULL; | ||
458 | +} | ||
459 | + | ||
460 | +void | ||
461 | +_XcmsRGB_to_XColor( | ||
462 | + XcmsColor *pColors, | ||
463 | + XColor *pXColors, | ||
464 | + unsigned int nColors) | ||
465 | +{ | ||
466 | + return; | ||
467 | +} | ||
468 | + | ||
469 | +XcmsCmapRec * | ||
470 | +_XcmsCopyCmapRecAndFree( | ||
471 | + Display *dpy, | ||
472 | + Colormap src_cmap, | ||
473 | + Colormap copy_cmap) | ||
474 | +{ | ||
475 | + return NULL; | ||
476 | +} | ||
477 | + | ||
478 | +void | ||
479 | +_XcmsDeleteCmapRec( | ||
480 | + Display *dpy, | ||
481 | + Colormap cmap) | ||
482 | +{ | ||
483 | + return; | ||
484 | +} | ||
485 | + | ||
486 | +#endif | ||
487 | --- git.orig/src/imConv.c | ||
488 | +++ git/src/imConv.c | ||
489 | @@ -81,10 +81,11 @@ static const struct SubstRec SubstTable[ | ||
490 | /* | ||
491 | * Given the name of a charset, returns the pointer to convertors | ||
492 | * from UCS char to specified charset char. | ||
493 | * This converter is needed for _XimGetCharCode subroutine. | ||
494 | */ | ||
495 | +#ifdef XLOCALE | ||
496 | XPointer | ||
497 | _XimGetLocaleCode ( | ||
498 | _Xconst char* encoding_name) | ||
499 | { | ||
500 | XPointer cvt = _Utf8GetConvByName(encoding_name); | ||
501 | @@ -94,10 +95,11 @@ _XimGetLocaleCode ( | ||
502 | if (!strcmp(encoding_name, SubstTable[i].encoding_name)) | ||
503 | return _Utf8GetConvByName(SubstTable[i].charset_name); | ||
504 | } | ||
505 | return cvt; | ||
506 | } | ||
507 | +#endif | ||
508 | |||
509 | /* | ||
510 | * Returns the locale dependent representation of a keysym. | ||
511 | * The locale's encoding is passed in form of pointer to UCS convertor. | ||
512 | * The resulting multi-byte sequence is placed starting at buf (a buffer | ||
513 | @@ -105,10 +107,11 @@ _XimGetLocaleCode ( | ||
514 | * Returns the length of the resulting multi-byte sequence, excluding the | ||
515 | * terminating NUL byte. Return 0 if the keysym is not representable in the | ||
516 | * locale | ||
517 | */ | ||
518 | /*ARGSUSED*/ | ||
519 | +#ifdef XLOCALE | ||
520 | int | ||
521 | _XimGetCharCode ( | ||
522 | XPointer ucs_conv, | ||
523 | KeySym keysym, | ||
524 | unsigned char* buf, | ||
525 | @@ -133,10 +136,11 @@ _XimGetCharCode ( | ||
526 | return nbytes; | ||
527 | if (count<nbytes) | ||
528 | buf[count]= '\0'; | ||
529 | return count; | ||
530 | } | ||
531 | +#endif | ||
532 | |||
533 | #ifdef XKB | ||
534 | static int lookup_string( | ||
535 | XKeyEvent* event, | ||
536 | char* buffer, | ||
537 | --- git.orig/src/locking.c | ||
538 | +++ git/src/locking.c | ||
539 | @@ -53,11 +53,13 @@ in this Software without prior written a | ||
540 | #endif | ||
541 | |||
542 | #define NUM_FREE_CVLS 4 | ||
543 | |||
544 | /* in lcWrap.c */ | ||
545 | +#ifdef XLOCALE | ||
546 | extern LockInfoPtr _Xi18n_lock; | ||
547 | +#endif | ||
548 | |||
549 | #ifdef WIN32 | ||
550 | static DWORD _X_TlsIndex = (DWORD)-1; | ||
551 | |||
552 | void _Xthread_init() | ||
553 | @@ -623,13 +625,15 @@ Status XInitThreads() | ||
554 | return 0; | ||
555 | } | ||
556 | _Xglobal_lock = &global_lock; | ||
557 | xmutex_init(_Xglobal_lock->lock); | ||
558 | xmutex_set_name(_Xglobal_lock->lock, "Xlib global"); | ||
559 | +#ifdef XLOCALE | ||
560 | _Xi18n_lock = &i18n_lock; | ||
561 | xmutex_init(_Xi18n_lock->lock); | ||
562 | xmutex_set_name(_Xi18n_lock->lock, "Xlib i18n"); | ||
563 | +#endif | ||
564 | _XLockMutex_fn = _XLockMutex; | ||
565 | _XUnlockMutex_fn = _XUnlockMutex; | ||
566 | _XCreateMutex_fn = _XCreateMutex; | ||
567 | _XFreeMutex_fn = _XFreeMutex; | ||
568 | _XInitDisplayLock_fn = _XInitDisplayLock; | ||
diff --git a/meta/recipes-graphics/xorg-lib/libx11-git/fix-disable-xlocale.diff b/meta/recipes-graphics/xorg-lib/libx11-git/fix-disable-xlocale.diff new file mode 100644 index 0000000000..9dbf6dac68 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libx11-git/fix-disable-xlocale.diff | |||
@@ -0,0 +1,14 @@ | |||
1 | --- libX11-X11R7.0-1.0.0/src/Font.c.orig 2006-03-12 18:35:42.000000000 +0100 | ||
2 | +++ libX11-X11R7.0-1.0.0/src/Font.c 2006-03-12 18:40:27.000000000 +0100 | ||
3 | @@ -701,7 +701,11 @@ | ||
4 | } | ||
5 | if (l - 2 - (p - charset) < 0) | ||
6 | return 0; | ||
7 | +#ifdef XLOCALE | ||
8 | if (_XlcNCompareISOLatin1(name + l - 2 - (p - charset), charset, p - charset)) | ||
9 | +#else | ||
10 | + if (strncasecmp(name + l - 2 - (p - charset), charset, p - charset)) | ||
11 | +#endif | ||
12 | return 0; | ||
13 | if (strlen(p + 1) + l - 1 >= sizeof(buf) - 1) | ||
14 | return 0; | ||
diff --git a/meta/recipes-graphics/xorg-lib/libx11-git/fix-utf8-wrong-define.patch b/meta/recipes-graphics/xorg-lib/libx11-git/fix-utf8-wrong-define.patch new file mode 100644 index 0000000000..a098db1941 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libx11-git/fix-utf8-wrong-define.patch | |||
@@ -0,0 +1,16 @@ | |||
1 | |||
2 | # | ||
3 | # Patch managed by http://www.holgerschurig.de/patcher.html | ||
4 | # | ||
5 | |||
6 | --- libX11-X11R7.0-1.0.0/include/X11/Xlib.h~fix-utf8-wrong-define | ||
7 | +++ libX11-X11R7.0-1.0.0/include/X11/Xlib.h | ||
8 | @@ -103,7 +103,7 @@ | ||
9 | |||
10 | /* API mentioning "UTF8" or "utf8" is an XFree86 extension, introduced in | ||
11 | November 2000. Its presence is indicated through the following macro. */ | ||
12 | -#define X_HAVE_UTF8_STRING 1 | ||
13 | +#undef X_HAVE_UTF8_STRING | ||
14 | |||
15 | typedef char *XPointer; | ||
16 | |||
diff --git a/meta/recipes-graphics/xorg-lib/libx11-git/include_fix.patch b/meta/recipes-graphics/xorg-lib/libx11-git/include_fix.patch new file mode 100644 index 0000000000..99ed57194e --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libx11-git/include_fix.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | --- | ||
2 | configure.ac | 6 +++--- | ||
3 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
4 | |||
5 | --- libX11-1.1.5.orig/configure.ac | ||
6 | +++ libX11-1.1.5/configure.ac | ||
7 | @@ -218,13 +218,13 @@ AC_SUBST(XDMCP_LIBS) | ||
8 | AC_CHECK_FUNC(poll, [AC_DEFINE(USE_POLL, 1, [poll() function is available])], ) | ||
9 | |||
10 | # | ||
11 | # Find keysymdef.h | ||
12 | # | ||
13 | -AC_MSG_CHECKING([keysymdef.h]) | ||
14 | -dir=`pkg-config --variable=includedir xproto` | ||
15 | -KEYSYMDEF="$dir/X11/keysymdef.h" | ||
16 | +AC_ARG_WITH(keysymdef, | ||
17 | + AC_HELP_STRING([--with-keysymdef=DIR/keysymdef.h], [The location of keysymdef.h]), | ||
18 | + KEYSYMDEF=$withval, KEYSYMDEF="") | ||
19 | if test -f "$KEYSYMDEF"; then | ||
20 | AC_MSG_RESULT([$KEYSYMDEF]) | ||
21 | else | ||
22 | AC_MSG_ERROR([Cannot find keysymdef.h]) | ||
23 | fi | ||
diff --git a/meta/recipes-graphics/xorg-lib/libx11-git/nodolt.patch b/meta/recipes-graphics/xorg-lib/libx11-git/nodolt.patch new file mode 100644 index 0000000000..ecf9625cad --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libx11-git/nodolt.patch | |||
@@ -0,0 +1,12 @@ | |||
1 | Index: libX11-1.2.1/configure.ac | ||
2 | =================================================================== | ||
3 | --- libX11-1.2.1.orig/configure.ac 2009-07-02 14:07:54.000000000 +0100 | ||
4 | +++ libX11-1.2.1/configure.ac 2009-07-02 14:08:01.000000000 +0100 | ||
5 | @@ -20,7 +20,6 @@ | ||
6 | |||
7 | # Checks for programs. | ||
8 | AC_PROG_LIBTOOL | ||
9 | -DOLT | ||
10 | AC_PROG_CC | ||
11 | XORG_CWARNFLAGS | ||
12 | |||
diff --git a/meta/recipes-graphics/xorg-lib/libx11-git/x11_disable_makekeys.patch b/meta/recipes-graphics/xorg-lib/libx11-git/x11_disable_makekeys.patch new file mode 100644 index 0000000000..9cc2bbbbdd --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libx11-git/x11_disable_makekeys.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | --- | ||
2 | src/util/Makefile.am | 17 ----------------- | ||
3 | 1 file changed, 17 deletions(-) | ||
4 | |||
5 | Index: git/src/util/Makefile.am | ||
6 | =================================================================== | ||
7 | --- git.orig/src/util/Makefile.am 2010-01-28 22:24:29.000000000 +0000 | ||
8 | +++ git/src/util/Makefile.am 2010-01-28 22:29:26.000000000 +0000 | ||
9 | @@ -1,19 +1,2 @@ | ||
10 | |||
11 | -noinst_PROGRAMS=makekeys | ||
12 | |||
13 | -makekeys_CFLAGS=$(X11_CFLAGS) | ||
14 | - | ||
15 | -CC = @CC_FOR_BUILD@ | ||
16 | - | ||
17 | -EXTRA_DIST = mkks.sh | ||
18 | - | ||
19 | -if LINT | ||
20 | -# Check source code with tools like lint & sparse | ||
21 | - | ||
22 | -ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ | ||
23 | - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) | ||
24 | - | ||
25 | -lint: | ||
26 | - $(LINT) $(ALL_LINT_FLAGS) makekeys.c | ||
27 | - | ||
28 | -endif LINT | ||
diff --git a/meta/recipes-graphics/xorg-lib/libx11-git/xim.patch b/meta/recipes-graphics/xorg-lib/libx11-git/xim.patch new file mode 100644 index 0000000000..0eab197a80 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libx11-git/xim.patch | |||
@@ -0,0 +1,55 @@ | |||
1 | --- libX11-6.2.1/src/X18NCMSstubs.c 2003-12-04 22:47:47.000000000 +0000 | ||
2 | +++ libX11-6.2.1/src/X18NCMSstubs.c-new 2005-12-09 12:09:03.000000000 +0000 | ||
3 | @@ -90,6 +90,52 @@ | ||
4 | return; | ||
5 | } | ||
6 | |||
7 | +XIM | ||
8 | +XOpenIM ( | ||
9 | + Display* display, | ||
10 | + struct _XrmHashBucketRec* rdb, | ||
11 | + char* res_name, | ||
12 | + char* res_class) | ||
13 | +{ | ||
14 | + return (XIM) NULL; | ||
15 | +} | ||
16 | + | ||
17 | +Status | ||
18 | +XCloseIM ( XIM im ) | ||
19 | +{ | ||
20 | + return NULL; | ||
21 | +} | ||
22 | + | ||
23 | +XIC | ||
24 | +XCreateIC ( XIM im, ...) | ||
25 | +{ | ||
26 | + return NULL; | ||
27 | +} | ||
28 | + | ||
29 | +void | ||
30 | +XDestroyIC ( XIC ic ) | ||
31 | +{ | ||
32 | + return; | ||
33 | +} | ||
34 | + | ||
35 | +int | ||
36 | +XmbLookupString ( | ||
37 | + XIC ic, | ||
38 | + XKeyPressedEvent* ev, | ||
39 | + char* buffer, | ||
40 | + int nbytes, | ||
41 | + KeySym* keysym, | ||
42 | + Status* status) | ||
43 | +{ | ||
44 | + return XLookupNone; | ||
45 | +} | ||
46 | + | ||
47 | +char * | ||
48 | +XGetICValues( XIC ic, ...) | ||
49 | +{ | ||
50 | + return (char *) NULL; | ||
51 | +} | ||
52 | + | ||
53 | XPointer | ||
54 | _XimGetLocaleCode ( _Xconst char* encoding_name ) | ||
55 | { | ||
diff --git a/meta/recipes-graphics/xorg-lib/libx11-trim/include_fix.patch b/meta/recipes-graphics/xorg-lib/libx11-trim/include_fix.patch new file mode 100644 index 0000000000..99ed57194e --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libx11-trim/include_fix.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | --- | ||
2 | configure.ac | 6 +++--- | ||
3 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
4 | |||
5 | --- libX11-1.1.5.orig/configure.ac | ||
6 | +++ libX11-1.1.5/configure.ac | ||
7 | @@ -218,13 +218,13 @@ AC_SUBST(XDMCP_LIBS) | ||
8 | AC_CHECK_FUNC(poll, [AC_DEFINE(USE_POLL, 1, [poll() function is available])], ) | ||
9 | |||
10 | # | ||
11 | # Find keysymdef.h | ||
12 | # | ||
13 | -AC_MSG_CHECKING([keysymdef.h]) | ||
14 | -dir=`pkg-config --variable=includedir xproto` | ||
15 | -KEYSYMDEF="$dir/X11/keysymdef.h" | ||
16 | +AC_ARG_WITH(keysymdef, | ||
17 | + AC_HELP_STRING([--with-keysymdef=DIR/keysymdef.h], [The location of keysymdef.h]), | ||
18 | + KEYSYMDEF=$withval, KEYSYMDEF="") | ||
19 | if test -f "$KEYSYMDEF"; then | ||
20 | AC_MSG_RESULT([$KEYSYMDEF]) | ||
21 | else | ||
22 | AC_MSG_ERROR([Cannot find keysymdef.h]) | ||
23 | fi | ||
diff --git a/meta/recipes-graphics/xorg-lib/libx11-trim/nodolt.patch b/meta/recipes-graphics/xorg-lib/libx11-trim/nodolt.patch new file mode 100644 index 0000000000..ecf9625cad --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libx11-trim/nodolt.patch | |||
@@ -0,0 +1,12 @@ | |||
1 | Index: libX11-1.2.1/configure.ac | ||
2 | =================================================================== | ||
3 | --- libX11-1.2.1.orig/configure.ac 2009-07-02 14:07:54.000000000 +0100 | ||
4 | +++ libX11-1.2.1/configure.ac 2009-07-02 14:08:01.000000000 +0100 | ||
5 | @@ -20,7 +20,6 @@ | ||
6 | |||
7 | # Checks for programs. | ||
8 | AC_PROG_LIBTOOL | ||
9 | -DOLT | ||
10 | AC_PROG_CC | ||
11 | XORG_CWARNFLAGS | ||
12 | |||
diff --git a/meta/recipes-graphics/xorg-lib/libx11-trim/x11_disable_makekeys.patch b/meta/recipes-graphics/xorg-lib/libx11-trim/x11_disable_makekeys.patch new file mode 100644 index 0000000000..670578257c --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libx11-trim/x11_disable_makekeys.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | --- | ||
2 | src/util/Makefile.am | 17 ----------------- | ||
3 | 1 file changed, 17 deletions(-) | ||
4 | |||
5 | Index: libX11-1.2.1/src/util/Makefile.am | ||
6 | =================================================================== | ||
7 | --- libX11-1.2.1.orig/src/util/Makefile.am 2008-10-07 18:18:19.000000000 +0100 | ||
8 | +++ libX11-1.2.1/src/util/Makefile.am 2009-07-02 14:04:38.000000000 +0100 | ||
9 | @@ -1,20 +1,3 @@ | ||
10 | # $XdotOrg: lib/X11/src/util/Makefile.am,v 1.4 2006-02-19 02:14:12 jamey Exp $ | ||
11 | |||
12 | -noinst_PROGRAMS=makekeys | ||
13 | - | ||
14 | -makekeys_CFLAGS=$(X11_CFLAGS) | ||
15 | - | ||
16 | -CC = @CC_FOR_BUILD@ | ||
17 | - | ||
18 | EXTRA_DIST = mkks.sh | ||
19 | - | ||
20 | -if LINT | ||
21 | -# Check source code with tools like lint & sparse | ||
22 | - | ||
23 | -ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ | ||
24 | - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) | ||
25 | - | ||
26 | -lint: | ||
27 | - $(LINT) $(ALL_LINT_FLAGS) makekeys.c | ||
28 | - | ||
29 | -endif LINT | ||
diff --git a/meta/recipes-graphics/xorg-lib/libx11-trim_1.3.4.bb b/meta/recipes-graphics/xorg-lib/libx11-trim_1.3.4.bb new file mode 100644 index 0000000000..190217d387 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libx11-trim_1.3.4.bb | |||
@@ -0,0 +1,14 @@ | |||
1 | require libx11.inc | ||
2 | |||
3 | LICENSE = "MIT & MIT-style & BSD" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=bf75bfe4d05068311b5e6862d4b5f2c5" | ||
5 | |||
6 | PR = "r0" | ||
7 | |||
8 | DEPENDS += "libxcb xproto xextproto xtrans libxau kbproto inputproto xf86bigfontproto xproto-native" | ||
9 | |||
10 | SRC_URI += "file://../libx11-${PV}/x11_disable_makekeys.patch \ | ||
11 | file://../libx11-${PV}/include_fix.patch \ | ||
12 | file://../libx11-${PV}/nodolt.patch" | ||
13 | |||
14 | EXTRA_OECONF += "--disable-xcms --with-xcb" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libx11-trim_git.bb b/meta/recipes-graphics/xorg-lib/libx11-trim_git.bb new file mode 100644 index 0000000000..99426c3c5d --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libx11-trim_git.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | require libx11.inc | ||
2 | require libx11_git.inc | ||
3 | |||
4 | PR = "r2" | ||
5 | |||
6 | DEPENDS += "libxcb xproto xextproto xtrans libxau kbproto inputproto xf86bigfontproto xproto-native" | ||
7 | |||
8 | EXTRA_OECONF += "--disable-xcms --with-xcb" | ||
9 | CFLAGS += "-D_GNU_SOURCE" | ||
10 | |||
diff --git a/meta/recipes-graphics/xorg-lib/libx11.inc b/meta/recipes-graphics/xorg-lib/libx11.inc new file mode 100644 index 0000000000..f8c17b1a6d --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libx11.inc | |||
@@ -0,0 +1,34 @@ | |||
1 | DESCRIPTION = "X11 protocol and utility library" | ||
2 | |||
3 | require xorg-lib-common.inc | ||
4 | |||
5 | PROVIDES = "virtual/libx11" | ||
6 | |||
7 | XORG_PN = "libX11" | ||
8 | LEAD_SONAME = "libX11.so" | ||
9 | |||
10 | EXTRA_OECONF += "--with-keysymdef=${STAGING_INCDIR}/X11/keysymdef.h" | ||
11 | |||
12 | FILES_${PN} += "${datadir}/X11/XKeysymDB ${datadir}/X11/XErrorDB ${libdir}/X11/Xcms.txt" | ||
13 | FILES_${PN}-locale += "${datadir}/X11/locale ${libdir}/X11/locale" | ||
14 | |||
15 | do_compile() { | ||
16 | cd ${S}/src/util | ||
17 | mv makekeys.c.orig makekeys.c || true | ||
18 | touch makekeys-makekeys.o | ||
19 | ( | ||
20 | unset CC LD CXX CCLD CFLAGS CPPFLAGS LDFLAGS CXXFLAGS | ||
21 | ${BUILD_CC} ${BUILD_CFLAGS} -I${STAGING_INCDIR_NATIVE} makekeys.c -o makekeys | ||
22 | ) | ||
23 | if [ "$?" != "0" ]; then | ||
24 | exit 1 | ||
25 | fi | ||
26 | # mv to stop it getting rebuilt | ||
27 | mv makekeys.c makekeys.c.orig | ||
28 | cd ${S} | ||
29 | oe_runmake | ||
30 | } | ||
31 | |||
32 | # Multiple libx11 derivatives from from this file and are selected by virtual/libx11 | ||
33 | # A world build should only build the correct version, not all of them. | ||
34 | EXCLUDE_FROM_WORLD = "1" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libx11/X18NCMSstubs.diff b/meta/recipes-graphics/xorg-lib/libx11/X18NCMSstubs.diff new file mode 100644 index 0000000000..54b1727a95 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libx11/X18NCMSstubs.diff | |||
@@ -0,0 +1,528 @@ | |||
1 | --- libX11-X11R7.0-1.0.0/src/imConv.c.orig 2006-03-08 09:46:03.000000000 +0100 | ||
2 | +++ libX11-X11R7.0-1.0.0/src/imConv.c 2006-03-08 10:50:10.000000000 +0100 | ||
3 | @@ -83,6 +83,7 @@ | ||
4 | * from UCS char to specified charset char. | ||
5 | * This converter is needed for _XimGetCharCode subroutine. | ||
6 | */ | ||
7 | +#ifdef XLOCALE | ||
8 | XPointer | ||
9 | _XimGetLocaleCode ( | ||
10 | _Xconst char* encoding_name) | ||
11 | @@ -96,6 +97,7 @@ | ||
12 | } | ||
13 | return cvt; | ||
14 | } | ||
15 | +#endif | ||
16 | |||
17 | /* | ||
18 | * Returns the locale dependent representation of a keysym. | ||
19 | @@ -107,6 +109,7 @@ | ||
20 | * locale | ||
21 | */ | ||
22 | /*ARGSUSED*/ | ||
23 | +#ifdef XLOCALE | ||
24 | int | ||
25 | _XimGetCharCode ( | ||
26 | XPointer ucs_conv, | ||
27 | @@ -135,6 +138,7 @@ | ||
28 | buf[count]= '\0'; | ||
29 | return count; | ||
30 | } | ||
31 | +#endif | ||
32 | |||
33 | #ifdef XKB | ||
34 | static int lookup_string( | ||
35 | --- libX11-X11R7.0-1.0.0/src/X18NCMSstubs.c.orig 2006-03-08 08:43:19.000000000 +0100 | ||
36 | +++ libX11-X11R7.0-1.0.0/src/X18NCMSstubs.c 2006-03-08 11:41:28.000000000 +0100 | ||
37 | @@ -0,0 +1,428 @@ | ||
38 | +/* | ||
39 | + * X18NCMSstubs.c | ||
40 | + * - Provides stubs and dummy funcs needed when Xcms and XLocale stuff removed | ||
41 | + * | ||
42 | + * Copyright © 2003 Matthew Allum | ||
43 | + * | ||
44 | + * Permission to use, copy, modify, distribute, and sell this software and its | ||
45 | + * documentation for any purpose is hereby granted without fee, provided that | ||
46 | + * the above copyright notice appear in all copies and that both that | ||
47 | + * copyright notice and this permission notice appear in supporting | ||
48 | + * documentation, and that the name of Matthew Allum not be used in | ||
49 | + * advertising or publicity pertaining to distribution of the software without | ||
50 | + * specific, written prior permission. Keith Packard and Compaq makes no | ||
51 | + * representations about the suitability of this software for any purpose. It | ||
52 | + * is provided "as is" without express or implied warranty. | ||
53 | + * | ||
54 | + * MATTHEW ALLUM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS | ||
55 | + * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, | ||
56 | + * IN NO EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR | ||
57 | + * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, | ||
58 | + * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER | ||
59 | + * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
60 | + * PERFORMANCE OF THIS SOFTWARE. | ||
61 | + */ | ||
62 | + | ||
63 | +#include <stdlib.h> | ||
64 | +#include "Xlibint.h" | ||
65 | +#include "Xlcint.h" | ||
66 | +#include <X11/Xlocale.h> | ||
67 | +#include <X11/Xos.h> | ||
68 | +#ifdef WIN32 | ||
69 | +#undef close | ||
70 | +#endif | ||
71 | +#include <X11/Xutil.h> | ||
72 | +#include "XlcPubI.h" | ||
73 | + | ||
74 | +#include "Xcmsint.h" /* for XcmsCCC type */ | ||
75 | +#include "XlcPubI.h" /* for XLCd type */ | ||
76 | +#include "config.h" | ||
77 | + | ||
78 | +#if ! XLOCALE | ||
79 | + | ||
80 | +Bool | ||
81 | +XSupportsLocale() | ||
82 | +{ | ||
83 | + return False; | ||
84 | +} | ||
85 | + | ||
86 | +char * | ||
87 | +XSetLocaleModifiers( | ||
88 | + const char *modifiers) | ||
89 | +{ | ||
90 | + return NULL; | ||
91 | +} | ||
92 | + | ||
93 | +XLCd | ||
94 | +_XOpenLC( | ||
95 | + char *name) | ||
96 | +{ | ||
97 | + return NULL; | ||
98 | +} | ||
99 | + | ||
100 | +XLCd | ||
101 | +_XlcCurrentLC() | ||
102 | +{ | ||
103 | + return NULL; | ||
104 | +} | ||
105 | + | ||
106 | +void | ||
107 | +_XlcVaToArgList( | ||
108 | + va_list var, | ||
109 | + int count, | ||
110 | + XlcArgList *args_ret) | ||
111 | +{ | ||
112 | + return; | ||
113 | +} | ||
114 | + | ||
115 | +void | ||
116 | +_XlcCountVaList( | ||
117 | + va_list var, | ||
118 | + int *count_ret) | ||
119 | +{ | ||
120 | + return; | ||
121 | +} | ||
122 | + | ||
123 | +void | ||
124 | +_XCloseLC( | ||
125 | + XLCd lcd) | ||
126 | +{ | ||
127 | + return; | ||
128 | +} | ||
129 | + | ||
130 | +int | ||
131 | +_XlcConvert( | ||
132 | + XlcConv conv, | ||
133 | + XPointer *from, | ||
134 | + int *from_left, | ||
135 | + XPointer *to, | ||
136 | + int *to_left, | ||
137 | + XPointer *args, | ||
138 | + int num_args) | ||
139 | +{ | ||
140 | + return 0; | ||
141 | +} | ||
142 | + | ||
143 | +/* XIM Stubs */ | ||
144 | + | ||
145 | +XPointer | ||
146 | +_XimGetLocaleCode ( _Xconst char* encoding_name ) | ||
147 | +{ | ||
148 | + return NULL; | ||
149 | +} | ||
150 | + | ||
151 | +int | ||
152 | +_XimGetCharCode ( | ||
153 | + XPointer ucs_conv, | ||
154 | + KeySym keysym, | ||
155 | + unsigned char* buf, | ||
156 | + int nbytes) | ||
157 | +{ | ||
158 | + return 0; | ||
159 | +} | ||
160 | + | ||
161 | +/* Xrm Stubs */ | ||
162 | + | ||
163 | +XrmMethods | ||
164 | +_XrmInitParseInfo( | ||
165 | + XPointer *state) | ||
166 | +{ | ||
167 | + return (XrmMethods) NULL; | ||
168 | +} | ||
169 | + | ||
170 | +/* Xwc Stubs */ | ||
171 | + | ||
172 | +int | ||
173 | +XwcTextExtents( | ||
174 | + XFontSet font_set, | ||
175 | + _Xconst wchar_t *text, | ||
176 | + int text_len, | ||
177 | + XRectangle *overall_ink_extents, | ||
178 | + XRectangle *overall_logical_extents) | ||
179 | +{ | ||
180 | + return 0; | ||
181 | +} | ||
182 | + | ||
183 | +void | ||
184 | +XwcDrawString(Display *display, | ||
185 | + Drawable d, | ||
186 | + XFontSet font_set, | ||
187 | + GC gc, | ||
188 | + int x, int y, | ||
189 | + _Xconst wchar_t *string, | ||
190 | + int num_wchars) | ||
191 | +{ | ||
192 | + ; | ||
193 | +} | ||
194 | + | ||
195 | +void | ||
196 | +XwcDrawText( | ||
197 | + Display *dpy, | ||
198 | + Drawable d, | ||
199 | + GC gc, | ||
200 | + int x, | ||
201 | + int y, | ||
202 | + XwcTextItem *text_items, | ||
203 | + int nitems) | ||
204 | +{ | ||
205 | + ; | ||
206 | +} | ||
207 | + | ||
208 | +void | ||
209 | +XwcDrawImageString( | ||
210 | + Display *dpy, | ||
211 | + Drawable d, | ||
212 | + XFontSet font_set, | ||
213 | + GC gc, | ||
214 | + int x, | ||
215 | + int y, | ||
216 | + _Xconst wchar_t *text, | ||
217 | + int text_len) | ||
218 | +{ | ||
219 | + ; | ||
220 | +} | ||
221 | + | ||
222 | +int | ||
223 | +XwcTextEscapement( | ||
224 | + XFontSet font_set, | ||
225 | + _Xconst wchar_t *text, | ||
226 | + int text_len) | ||
227 | +{ | ||
228 | + return 0; | ||
229 | +} | ||
230 | + | ||
231 | +Status | ||
232 | +XwcTextPerCharExtents( | ||
233 | + XFontSet font_set, | ||
234 | + _Xconst wchar_t *text, | ||
235 | + int text_len, | ||
236 | + XRectangle *ink_extents_buffer, | ||
237 | + XRectangle *logical_extents_buffer, | ||
238 | + int buffer_size, | ||
239 | + int *num_chars, | ||
240 | + XRectangle *max_ink_extents, | ||
241 | + XRectangle *max_logical_extents) | ||
242 | +{ | ||
243 | + ; | ||
244 | +} | ||
245 | + | ||
246 | +int | ||
247 | +XwcTextPropertyToTextList( | ||
248 | + Display *dpy, | ||
249 | + const XTextProperty *text_prop, | ||
250 | + wchar_t ***list_ret, | ||
251 | + int *count_ret) | ||
252 | +{ | ||
253 | + return 0; | ||
254 | +} | ||
255 | + | ||
256 | +int | ||
257 | +XwcTextListToTextProperty( | ||
258 | + Display *dpy, | ||
259 | + wchar_t **list, | ||
260 | + int count, | ||
261 | + XICCEncodingStyle style, | ||
262 | + XTextProperty *text_prop) | ||
263 | +{ | ||
264 | + return 0; | ||
265 | +} | ||
266 | + | ||
267 | +void | ||
268 | +XwcFreeStringList(wchar_t **list) | ||
269 | +{ | ||
270 | + return; | ||
271 | +} | ||
272 | + | ||
273 | + | ||
274 | +void XmbSetWMProperties ( /* Actually from mbWMProps.c */ | ||
275 | + Display *dpy, | ||
276 | + Window w, | ||
277 | + _Xconst char *windowName, | ||
278 | + _Xconst char *iconName, | ||
279 | + char **argv, | ||
280 | + int argc, | ||
281 | + XSizeHints *sizeHints, | ||
282 | + XWMHints *wmHints, | ||
283 | + XClassHint *classHints) | ||
284 | +{ | ||
285 | + return; | ||
286 | +} | ||
287 | + | ||
288 | +int | ||
289 | +XmbTextPropertyToTextList( | ||
290 | + Display *dpy, | ||
291 | + const XTextProperty *text_prop, | ||
292 | + char ***list_ret, | ||
293 | + int *count_ret) | ||
294 | +{ | ||
295 | + return XLocaleNotSupported; | ||
296 | +} | ||
297 | + | ||
298 | +int | ||
299 | +XmbTextListToTextProperty( | ||
300 | + Display *dpy, | ||
301 | + char **list, | ||
302 | + int count, | ||
303 | + XICCEncodingStyle style, | ||
304 | + XTextProperty *text_prop) | ||
305 | +{ | ||
306 | + return XLocaleNotSupported; | ||
307 | +} | ||
308 | + | ||
309 | +int | ||
310 | +XmbTextExtents( | ||
311 | + XFontSet font_set, | ||
312 | + _Xconst char *text, | ||
313 | + int text_len, | ||
314 | + XRectangle *overall_ink_extents, | ||
315 | + XRectangle *overall_logical_extents) | ||
316 | +{ | ||
317 | + return 0; | ||
318 | +} | ||
319 | + | ||
320 | +void | ||
321 | +XmbDrawText( | ||
322 | + Display *dpy, | ||
323 | + Drawable d, | ||
324 | + GC gc, | ||
325 | + int x, | ||
326 | + int y, | ||
327 | + XmbTextItem *text_items, | ||
328 | + int nitems) | ||
329 | +{ | ||
330 | + ; | ||
331 | +} | ||
332 | + | ||
333 | +void | ||
334 | +XmbDrawString( | ||
335 | + Display *dpy, | ||
336 | + Drawable d, | ||
337 | + XFontSet font_set, | ||
338 | + GC gc, | ||
339 | + int x, | ||
340 | + int y, | ||
341 | + _Xconst char *text, | ||
342 | + int text_len) | ||
343 | +{ | ||
344 | + ; | ||
345 | +} | ||
346 | + | ||
347 | +void | ||
348 | +XmbDrawImageString( | ||
349 | + Display *dpy, | ||
350 | + Drawable d, | ||
351 | + XFontSet font_set, | ||
352 | + GC gc, | ||
353 | + int x, | ||
354 | + int y, | ||
355 | + _Xconst char *text, | ||
356 | + int text_len) | ||
357 | +{ | ||
358 | + ; | ||
359 | +} | ||
360 | + | ||
361 | +int | ||
362 | +XmbTextEscapement( | ||
363 | + XFontSet font_set, | ||
364 | + _Xconst char *text, | ||
365 | + int text_len) | ||
366 | +{ | ||
367 | + return 0; | ||
368 | +} | ||
369 | + | ||
370 | +Status | ||
371 | +XmbTextPerCharExtents( | ||
372 | + XFontSet font_set, | ||
373 | + _Xconst char *text, | ||
374 | + int text_len, | ||
375 | + XRectangle *ink_extents_buffer, | ||
376 | + XRectangle *logical_extents_buffer, | ||
377 | + int buffer_size, | ||
378 | + int *num_chars, | ||
379 | + XRectangle *max_ink_extents, | ||
380 | + XRectangle *max_logical_extents) | ||
381 | +{ | ||
382 | + return 0; | ||
383 | +} | ||
384 | + | ||
385 | +unsigned int | ||
386 | +KeySymToUcs4(KeySym keysym) | ||
387 | +{ | ||
388 | + return 0; | ||
389 | +} | ||
390 | + | ||
391 | +#endif | ||
392 | + | ||
393 | +#if ! XCMS | ||
394 | + | ||
395 | +XcmsCCC | ||
396 | +XcmsCCCOfColormap(dpy, cmap) | ||
397 | + Display *dpy; | ||
398 | + Colormap cmap; | ||
399 | +{ | ||
400 | + return NULL; | ||
401 | +} | ||
402 | + | ||
403 | +Status | ||
404 | +_XcmsResolveColorString ( | ||
405 | + XcmsCCC ccc, | ||
406 | + const char **color_string, | ||
407 | + XcmsColor *pColor_exact_return, | ||
408 | + XcmsColorFormat result_format) | ||
409 | +{ | ||
410 | + return(XcmsFailure); | ||
411 | +} | ||
412 | + | ||
413 | +void | ||
414 | +_XcmsUnresolveColor( | ||
415 | + XcmsCCC ccc, | ||
416 | + XcmsColor *pColor) | ||
417 | +{ | ||
418 | + return; | ||
419 | +} | ||
420 | + | ||
421 | +void | ||
422 | +_XUnresolveColor( | ||
423 | + XcmsCCC ccc, | ||
424 | + XColor *pXColor) | ||
425 | +{ | ||
426 | + return; | ||
427 | +} | ||
428 | + | ||
429 | +XcmsCmapRec * | ||
430 | +_XcmsAddCmapRec(dpy, cmap, windowID, visual) | ||
431 | + Display *dpy; | ||
432 | + Colormap cmap; | ||
433 | + Window windowID; | ||
434 | + Visual *visual; | ||
435 | +{ | ||
436 | + return NULL; | ||
437 | +} | ||
438 | + | ||
439 | +void | ||
440 | +_XcmsRGB_to_XColor( | ||
441 | + XcmsColor *pColors, | ||
442 | + XColor *pXColors, | ||
443 | + unsigned int nColors) | ||
444 | +{ | ||
445 | + return; | ||
446 | +} | ||
447 | + | ||
448 | +XcmsCmapRec * | ||
449 | +_XcmsCopyCmapRecAndFree( | ||
450 | + Display *dpy, | ||
451 | + Colormap src_cmap, | ||
452 | + Colormap copy_cmap) | ||
453 | +{ | ||
454 | + return NULL; | ||
455 | +} | ||
456 | + | ||
457 | +void | ||
458 | +_XcmsDeleteCmapRec( | ||
459 | + Display *dpy, | ||
460 | + Colormap cmap) | ||
461 | +{ | ||
462 | + return; | ||
463 | +} | ||
464 | + | ||
465 | +#endif | ||
466 | --- libX11-X11R7.0-1.0.0/src/Makefile.am.orig 2006-03-08 08:31:09.000000000 +0100 | ||
467 | +++ libX11-X11R7.0-1.0.0/src/Makefile.am 2006-03-08 09:36:23.000000000 +0100 | ||
468 | @@ -331,6 +331,8 @@ | ||
469 | libX11_la_SOURCES+=UIThrStubs.c | ||
470 | endif | ||
471 | |||
472 | +libX11_la_SOURCES+=X18NCMSstubs.c | ||
473 | + | ||
474 | x11datadir = @X11_DATADIR@ | ||
475 | x11data_DATA = XKeysymDB XErrorDB | ||
476 | |||
477 | @@ -338,7 +340,8 @@ | ||
478 | $(x11data_DATA) \ | ||
479 | os2Stubs.c \ | ||
480 | udcInf.c \ | ||
481 | - UIThrStubs.c | ||
482 | + UIThrStubs.c \ | ||
483 | + X18NCMSstubs.c | ||
484 | |||
485 | # | ||
486 | # Figure out which sub-libraries to link into Xlib | ||
487 | --- libX11-X11R7.0-1.0.0/src/locking.c.orig 2006-03-08 11:05:56.000000000 +0100 | ||
488 | +++ libX11-X11R7.0-1.0.0/src/locking.c 2006-03-08 11:06:37.000000000 +0100 | ||
489 | @@ -55,7 +55,9 @@ | ||
490 | #define NUM_FREE_CVLS 4 | ||
491 | |||
492 | /* in lcWrap.c */ | ||
493 | +#ifdef XLOCALE | ||
494 | extern LockInfoPtr _Xi18n_lock; | ||
495 | +#endif | ||
496 | |||
497 | #ifdef WIN32 | ||
498 | static DWORD _X_TlsIndex = (DWORD)-1; | ||
499 | @@ -625,9 +627,11 @@ | ||
500 | _Xglobal_lock = &global_lock; | ||
501 | xmutex_init(_Xglobal_lock->lock); | ||
502 | xmutex_set_name(_Xglobal_lock->lock, "Xlib global"); | ||
503 | +#ifdef XLOCALE | ||
504 | _Xi18n_lock = &i18n_lock; | ||
505 | xmutex_init(_Xi18n_lock->lock); | ||
506 | xmutex_set_name(_Xi18n_lock->lock, "Xlib i18n"); | ||
507 | +#endif | ||
508 | _XLockMutex_fn = _XLockMutex; | ||
509 | _XUnlockMutex_fn = _XUnlockMutex; | ||
510 | _XCreateMutex_fn = _XCreateMutex; | ||
511 | --- libX11-X11R7.0-1.0.0/configure.ac.orig 2006-03-08 10:03:57.000000000 +0100 | ||
512 | +++ libX11-X11R7.0-1.0.0/configure.ac 2006-03-08 10:06:01.000000000 +0100 | ||
513 | @@ -215,7 +215,14 @@ | ||
514 | esac | ||
515 | AC_SUBST(KEYSYMDEF) | ||
516 | |||
517 | -AM_CONDITIONAL(UDC, test xfalse = xtrue) | ||
518 | +AC_ARG_ENABLE(udc, | ||
519 | + AC_HELP_STRING([--disable-udc], | ||
520 | + [Disable Xlib support for UDC *EXPERIMENTAL*]), | ||
521 | + [UDC=$enableval],[UDC=yes]) | ||
522 | +AM_CONDITIONAL(UDC, [test x$UDC = xyes ]) | ||
523 | +if test x"$UDC" = "xyes"; then | ||
524 | + AC_DEFINE(UDC,1,[Include support for UDC]) | ||
525 | +fi | ||
526 | |||
527 | AC_ARG_ENABLE(xcms, | ||
528 | AC_HELP_STRING([--disable-xcms], | ||
diff --git a/meta/recipes-graphics/xorg-lib/libx11/fix-disable-xlocale.diff b/meta/recipes-graphics/xorg-lib/libx11/fix-disable-xlocale.diff new file mode 100644 index 0000000000..9dbf6dac68 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libx11/fix-disable-xlocale.diff | |||
@@ -0,0 +1,14 @@ | |||
1 | --- libX11-X11R7.0-1.0.0/src/Font.c.orig 2006-03-12 18:35:42.000000000 +0100 | ||
2 | +++ libX11-X11R7.0-1.0.0/src/Font.c 2006-03-12 18:40:27.000000000 +0100 | ||
3 | @@ -701,7 +701,11 @@ | ||
4 | } | ||
5 | if (l - 2 - (p - charset) < 0) | ||
6 | return 0; | ||
7 | +#ifdef XLOCALE | ||
8 | if (_XlcNCompareISOLatin1(name + l - 2 - (p - charset), charset, p - charset)) | ||
9 | +#else | ||
10 | + if (strncasecmp(name + l - 2 - (p - charset), charset, p - charset)) | ||
11 | +#endif | ||
12 | return 0; | ||
13 | if (strlen(p + 1) + l - 1 >= sizeof(buf) - 1) | ||
14 | return 0; | ||
diff --git a/meta/recipes-graphics/xorg-lib/libx11/fix-utf8-wrong-define.patch b/meta/recipes-graphics/xorg-lib/libx11/fix-utf8-wrong-define.patch new file mode 100644 index 0000000000..a098db1941 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libx11/fix-utf8-wrong-define.patch | |||
@@ -0,0 +1,16 @@ | |||
1 | |||
2 | # | ||
3 | # Patch managed by http://www.holgerschurig.de/patcher.html | ||
4 | # | ||
5 | |||
6 | --- libX11-X11R7.0-1.0.0/include/X11/Xlib.h~fix-utf8-wrong-define | ||
7 | +++ libX11-X11R7.0-1.0.0/include/X11/Xlib.h | ||
8 | @@ -103,7 +103,7 @@ | ||
9 | |||
10 | /* API mentioning "UTF8" or "utf8" is an XFree86 extension, introduced in | ||
11 | November 2000. Its presence is indicated through the following macro. */ | ||
12 | -#define X_HAVE_UTF8_STRING 1 | ||
13 | +#undef X_HAVE_UTF8_STRING | ||
14 | |||
15 | typedef char *XPointer; | ||
16 | |||
diff --git a/meta/recipes-graphics/xorg-lib/libx11/include_fix.patch b/meta/recipes-graphics/xorg-lib/libx11/include_fix.patch new file mode 100644 index 0000000000..99ed57194e --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libx11/include_fix.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | --- | ||
2 | configure.ac | 6 +++--- | ||
3 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
4 | |||
5 | --- libX11-1.1.5.orig/configure.ac | ||
6 | +++ libX11-1.1.5/configure.ac | ||
7 | @@ -218,13 +218,13 @@ AC_SUBST(XDMCP_LIBS) | ||
8 | AC_CHECK_FUNC(poll, [AC_DEFINE(USE_POLL, 1, [poll() function is available])], ) | ||
9 | |||
10 | # | ||
11 | # Find keysymdef.h | ||
12 | # | ||
13 | -AC_MSG_CHECKING([keysymdef.h]) | ||
14 | -dir=`pkg-config --variable=includedir xproto` | ||
15 | -KEYSYMDEF="$dir/X11/keysymdef.h" | ||
16 | +AC_ARG_WITH(keysymdef, | ||
17 | + AC_HELP_STRING([--with-keysymdef=DIR/keysymdef.h], [The location of keysymdef.h]), | ||
18 | + KEYSYMDEF=$withval, KEYSYMDEF="") | ||
19 | if test -f "$KEYSYMDEF"; then | ||
20 | AC_MSG_RESULT([$KEYSYMDEF]) | ||
21 | else | ||
22 | AC_MSG_ERROR([Cannot find keysymdef.h]) | ||
23 | fi | ||
diff --git a/meta/recipes-graphics/xorg-lib/libx11/nodolt.patch b/meta/recipes-graphics/xorg-lib/libx11/nodolt.patch new file mode 100644 index 0000000000..ecf9625cad --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libx11/nodolt.patch | |||
@@ -0,0 +1,12 @@ | |||
1 | Index: libX11-1.2.1/configure.ac | ||
2 | =================================================================== | ||
3 | --- libX11-1.2.1.orig/configure.ac 2009-07-02 14:07:54.000000000 +0100 | ||
4 | +++ libX11-1.2.1/configure.ac 2009-07-02 14:08:01.000000000 +0100 | ||
5 | @@ -20,7 +20,6 @@ | ||
6 | |||
7 | # Checks for programs. | ||
8 | AC_PROG_LIBTOOL | ||
9 | -DOLT | ||
10 | AC_PROG_CC | ||
11 | XORG_CWARNFLAGS | ||
12 | |||
diff --git a/meta/recipes-graphics/xorg-lib/libx11/x11_disable_makekeys.patch b/meta/recipes-graphics/xorg-lib/libx11/x11_disable_makekeys.patch new file mode 100644 index 0000000000..670578257c --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libx11/x11_disable_makekeys.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | --- | ||
2 | src/util/Makefile.am | 17 ----------------- | ||
3 | 1 file changed, 17 deletions(-) | ||
4 | |||
5 | Index: libX11-1.2.1/src/util/Makefile.am | ||
6 | =================================================================== | ||
7 | --- libX11-1.2.1.orig/src/util/Makefile.am 2008-10-07 18:18:19.000000000 +0100 | ||
8 | +++ libX11-1.2.1/src/util/Makefile.am 2009-07-02 14:04:38.000000000 +0100 | ||
9 | @@ -1,20 +1,3 @@ | ||
10 | # $XdotOrg: lib/X11/src/util/Makefile.am,v 1.4 2006-02-19 02:14:12 jamey Exp $ | ||
11 | |||
12 | -noinst_PROGRAMS=makekeys | ||
13 | - | ||
14 | -makekeys_CFLAGS=$(X11_CFLAGS) | ||
15 | - | ||
16 | -CC = @CC_FOR_BUILD@ | ||
17 | - | ||
18 | EXTRA_DIST = mkks.sh | ||
19 | - | ||
20 | -if LINT | ||
21 | -# Check source code with tools like lint & sparse | ||
22 | - | ||
23 | -ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ | ||
24 | - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) | ||
25 | - | ||
26 | -lint: | ||
27 | - $(LINT) $(ALL_LINT_FLAGS) makekeys.c | ||
28 | - | ||
29 | -endif LINT | ||
diff --git a/meta/recipes-graphics/xorg-lib/libx11/xim.patch b/meta/recipes-graphics/xorg-lib/libx11/xim.patch new file mode 100644 index 0000000000..0eab197a80 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libx11/xim.patch | |||
@@ -0,0 +1,55 @@ | |||
1 | --- libX11-6.2.1/src/X18NCMSstubs.c 2003-12-04 22:47:47.000000000 +0000 | ||
2 | +++ libX11-6.2.1/src/X18NCMSstubs.c-new 2005-12-09 12:09:03.000000000 +0000 | ||
3 | @@ -90,6 +90,52 @@ | ||
4 | return; | ||
5 | } | ||
6 | |||
7 | +XIM | ||
8 | +XOpenIM ( | ||
9 | + Display* display, | ||
10 | + struct _XrmHashBucketRec* rdb, | ||
11 | + char* res_name, | ||
12 | + char* res_class) | ||
13 | +{ | ||
14 | + return (XIM) NULL; | ||
15 | +} | ||
16 | + | ||
17 | +Status | ||
18 | +XCloseIM ( XIM im ) | ||
19 | +{ | ||
20 | + return NULL; | ||
21 | +} | ||
22 | + | ||
23 | +XIC | ||
24 | +XCreateIC ( XIM im, ...) | ||
25 | +{ | ||
26 | + return NULL; | ||
27 | +} | ||
28 | + | ||
29 | +void | ||
30 | +XDestroyIC ( XIC ic ) | ||
31 | +{ | ||
32 | + return; | ||
33 | +} | ||
34 | + | ||
35 | +int | ||
36 | +XmbLookupString ( | ||
37 | + XIC ic, | ||
38 | + XKeyPressedEvent* ev, | ||
39 | + char* buffer, | ||
40 | + int nbytes, | ||
41 | + KeySym* keysym, | ||
42 | + Status* status) | ||
43 | +{ | ||
44 | + return XLookupNone; | ||
45 | +} | ||
46 | + | ||
47 | +char * | ||
48 | +XGetICValues( XIC ic, ...) | ||
49 | +{ | ||
50 | + return (char *) NULL; | ||
51 | +} | ||
52 | + | ||
53 | XPointer | ||
54 | _XimGetLocaleCode ( _Xconst char* encoding_name ) | ||
55 | { | ||
diff --git a/meta/recipes-graphics/xorg-lib/libx11_1.3.4.bb b/meta/recipes-graphics/xorg-lib/libx11_1.3.4.bb new file mode 100644 index 0000000000..aaeb38e2d6 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libx11_1.3.4.bb | |||
@@ -0,0 +1,18 @@ | |||
1 | require libx11.inc | ||
2 | |||
3 | LICENSE = "MIT & MIT-style & BSD" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=bf75bfe4d05068311b5e6862d4b5f2c5" | ||
5 | |||
6 | PE = "1" | ||
7 | PR = "r0" | ||
8 | |||
9 | SRC_URI += "file://x11_disable_makekeys.patch \ | ||
10 | file://nodolt.patch \ | ||
11 | file://include_fix.patch" | ||
12 | |||
13 | DEPENDS += "bigreqsproto xproto xextproto xtrans libxau xcmiscproto \ | ||
14 | libxdmcp xf86bigfontproto kbproto inputproto xproto-native gettext" | ||
15 | |||
16 | EXTRA_OECONF += "--without-xcb" | ||
17 | |||
18 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libx11_git.bb b/meta/recipes-graphics/xorg-lib/libx11_git.bb new file mode 100644 index 0000000000..a976a16cd3 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libx11_git.bb | |||
@@ -0,0 +1,11 @@ | |||
1 | require libx11.inc | ||
2 | require libx11_git.inc | ||
3 | |||
4 | PR = "r2" | ||
5 | |||
6 | DEPENDS = "xproto xextproto xcmiscproto xf86bigfontproto kbproto inputproto \ | ||
7 | bigreqsproto xtrans libxau libxcb libxdmcp util-macros gettext" | ||
8 | |||
9 | DEFAULT_PREFERENCE = "-1" | ||
10 | |||
11 | BBCLASSEXTEND = "nativesdk" \ No newline at end of file | ||
diff --git a/meta/recipes-graphics/xorg-lib/libx11_git.inc b/meta/recipes-graphics/xorg-lib/libx11_git.inc new file mode 100644 index 0000000000..40d806178f --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libx11_git.inc | |||
@@ -0,0 +1,11 @@ | |||
1 | PV = "1.2.1+git${SRCPV}" | ||
2 | |||
3 | SRC_URI = "git://anongit.freedesktop.org/git/xorg/lib/libX11;protocol=git" | ||
4 | S = "${WORKDIR}/git" | ||
5 | |||
6 | SRC_URI += "file://x11_disable_makekeys.patch;patch=1 \ | ||
7 | file://include_fix.patch;patch=1 \ | ||
8 | file://nodolt.patch;patch=1" | ||
9 | |||
10 | FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/libx11-git" | ||
11 | FILESPATH = "${FILE_DIRNAME}/libx11-git" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxau_1.0.5.bb b/meta/recipes-graphics/xorg-lib/libxau_1.0.5.bb new file mode 100644 index 0000000000..65374611ba --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxau_1.0.5.bb | |||
@@ -0,0 +1,16 @@ | |||
1 | DESCRIPTION = "A Sample Authorization Protocol for X" | ||
2 | |||
3 | require xorg-lib-common.inc | ||
4 | |||
5 | LICENSE = "MIT-style" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=7908e342491198401321cec1956807ec" | ||
7 | |||
8 | DEPENDS += " xproto gettext" | ||
9 | PROVIDES = "xau" | ||
10 | |||
11 | PR = "r0" | ||
12 | PE = "1" | ||
13 | |||
14 | XORG_PN = "libXau" | ||
15 | |||
16 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxaw_1.0.5.bb b/meta/recipes-graphics/xorg-lib/libxaw_1.0.5.bb new file mode 100644 index 0000000000..489f456647 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxaw_1.0.5.bb | |||
@@ -0,0 +1,21 @@ | |||
1 | require xorg-lib-common.inc | ||
2 | |||
3 | DESCRIPTION = "X Athena Widget Set" | ||
4 | DEPENDS += "xproto virtual/libx11 libxext xextproto libxt libxmu libxpm libxp printproto libxau" | ||
5 | PROVIDES = "xaw" | ||
6 | PR = "r1" | ||
7 | PE = "1" | ||
8 | |||
9 | XORG_PN = "libXaw" | ||
10 | |||
11 | do_install_append () { | ||
12 | ln -sf libXaw6.so.6 ${D}${libdir}/libXaw.so.6 | ||
13 | ln -sf libXaw7.so.7 ${D}${libdir}/libXaw.so.7 | ||
14 | ln -sf libXaw7.so.7 ${D}${libdir}/libXaw.so | ||
15 | } | ||
16 | |||
17 | PACKAGES =+ "libxaw6 libxaw7 libxaw8" | ||
18 | |||
19 | FILES_libxaw6 = "${libdir}/libXaw6.so.6*" | ||
20 | FILES_libxaw7 = "${libdir}/libXaw7.so.7*" | ||
21 | FILES_libxaw8 = "${libdir}/libXaw8.so.8*" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxcalibrate/fix-xcb.patch b/meta/recipes-graphics/xorg-lib/libxcalibrate/fix-xcb.patch new file mode 100644 index 0000000000..0d7efc70f3 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxcalibrate/fix-xcb.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | There is no extra reply data and if we say not to disgard it, xcb | ||
2 | throws fatal asserts. | ||
3 | |||
4 | RP - 26/11/09 | ||
5 | |||
6 | Index: git/xcalibrate.c | ||
7 | =================================================================== | ||
8 | --- git.orig/xcalibrate.c 2009-11-26 08:11:48.000000000 +0000 | ||
9 | +++ git/xcalibrate.c 2009-11-26 08:09:55.000000000 +0000 | ||
10 | @@ -216,7 +216,7 @@ | ||
11 | req->reqType = info->codes->major_opcode; | ||
12 | req->xCalibrateReqType = X_XCalibrateRawMode; | ||
13 | req->on = enable; | ||
14 | - if (!_XReply (dpy, (xReply *) &rep, 0, xFalse)) | ||
15 | + if (!_XReply (dpy, (xReply *) &rep, 0, xTrue)) | ||
16 | { | ||
17 | UnlockDisplay (dpy); | ||
18 | SyncHandle (); | ||
19 | @@ -240,7 +240,7 @@ | ||
20 | req->xCalibrateReqType = X_XCalibrateScreenToCoord; | ||
21 | req->x = *x; | ||
22 | req->y = *y; | ||
23 | - if (!_XReply (dpy, (xReply *) &rep, 0, xFalse)) | ||
24 | + if (!_XReply (dpy, (xReply *) &rep, 0, xTrue)) | ||
25 | { | ||
26 | UnlockDisplay (dpy); | ||
27 | SyncHandle (); | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxcalibrate_git.bb b/meta/recipes-graphics/xorg-lib/libxcalibrate_git.bb new file mode 100644 index 0000000000..8ca731b2ef --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxcalibrate_git.bb | |||
@@ -0,0 +1,19 @@ | |||
1 | DESCRIPTION = "Touchscreen calibration client library" | ||
2 | |||
3 | require xorg-lib-common.inc | ||
4 | |||
5 | LICENSE = "MIT-style" | ||
6 | LIC_FILES_CHKSUM = "file://xcalibrate.h;endline=21;md5=fa572df6439f0f235f2612f370f153d7 \ | ||
7 | file://xcalibrate.c;endline=21;md5=fa572df6439f0f235f2612f370f153d7" | ||
8 | |||
9 | DEPENDS = "virtual/libx11 calibrateproto libxext" | ||
10 | |||
11 | PV = "0.0+git${SRCPV}" | ||
12 | PR = "r0" | ||
13 | |||
14 | SRC_URI = "git://anongit.freedesktop.org/git/xorg/lib/libXCalibrate;protocol=git \ | ||
15 | file://fix-xcb.patch" | ||
16 | |||
17 | S = "${WORKDIR}/git" | ||
18 | |||
19 | FILES_${PN}-locale += "${datadir}/X11/locale" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxcomposite/change-include-order.patch b/meta/recipes-graphics/xorg-lib/libxcomposite/change-include-order.patch new file mode 100644 index 0000000000..9b10d1a26d --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxcomposite/change-include-order.patch | |||
@@ -0,0 +1,14 @@ | |||
1 | This patch makes the build use its own Xcomposite.h over rather than an | ||
2 | older Xcomposite.h that might already be installed in the staging dir. | ||
3 | |||
4 | --- libXcomposite-0.4.1/src/Makefile.am.orig 2010-06-27 15:50:05.000000000 +0800 | ||
5 | +++ libXcomposite-0.4.1/src/Makefile.am 2010-06-27 15:51:48.000000000 +0800 | ||
6 | @@ -19,7 +19,7 @@ | ||
7 | # TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
8 | # PERFORMANCE OF THIS SOFTWARE. | ||
9 | |||
10 | -AM_CFLAGS = $(CWARNFLAGS) $(XCOMPOSITE_CFLAGS) $(X_CFLAGS) | ||
11 | +AM_CFLAGS = -I$(top_srcdir)/include $(CWARNFLAGS) $(XCOMPOSITE_CFLAGS) $(X_CFLAGS) | ||
12 | AM_CPPFLAGS = -I$(top_srcdir)/include | ||
13 | |||
14 | lib_LTLIBRARIES = libXcomposite.la | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxcomposite_0.4.1.bb b/meta/recipes-graphics/xorg-lib/libxcomposite_0.4.1.bb new file mode 100644 index 0000000000..8c5ca022c7 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxcomposite_0.4.1.bb | |||
@@ -0,0 +1,16 @@ | |||
1 | DESCRIPTION = "X Composite extension library." | ||
2 | |||
3 | require xorg-lib-common.inc | ||
4 | |||
5 | LICENSE= "MIT-style" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=90b90b60eb30f65fc9c2673d7cf59e24" | ||
7 | |||
8 | DEPENDS += " compositeproto virtual/libx11 libxfixes libxext" | ||
9 | PROVIDES = "xcomposite" | ||
10 | |||
11 | PE = "1" | ||
12 | PR = "r0" | ||
13 | |||
14 | XORG_PN = "libXcomposite" | ||
15 | |||
16 | SRC_URI += " file://change-include-order.patch" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxcursor_1.1.10.bb b/meta/recipes-graphics/xorg-lib/libxcursor_1.1.10.bb new file mode 100644 index 0000000000..4b0a3b1ab4 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxcursor_1.1.10.bb | |||
@@ -0,0 +1,13 @@ | |||
1 | DESCRIPTION = "X cursor management library" | ||
2 | |||
3 | require xorg-lib-common.inc | ||
4 | |||
5 | LICENSE = "MIT-style" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=8902e6643f7bcd7793b23dcd5d8031a4" | ||
7 | |||
8 | DEPENDS += "libxrender libxfixes" | ||
9 | |||
10 | PR = "r0" | ||
11 | PE = "1" | ||
12 | |||
13 | XORG_PN = "libXcursor" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxdamage_1.1.2.bb b/meta/recipes-graphics/xorg-lib/libxdamage_1.1.2.bb new file mode 100644 index 0000000000..2ea9891c92 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxdamage_1.1.2.bb | |||
@@ -0,0 +1,14 @@ | |||
1 | DESCRIPTION = "X11 damaged region extension library" | ||
2 | |||
3 | require xorg-lib-common.inc | ||
4 | |||
5 | LICENSE = "MIT" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=10c8c88d1faea6d7c3a82d54c2b8fd2b" | ||
7 | |||
8 | DEPENDS += "damageproto libxfixes" | ||
9 | PROVIDES = "xdamage" | ||
10 | |||
11 | PR = "r0" | ||
12 | PE = "1" | ||
13 | |||
14 | XORG_PN = "libXdamage" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxdmcp_1.0.3.bb b/meta/recipes-graphics/xorg-lib/libxdmcp_1.0.3.bb new file mode 100644 index 0000000000..b1648fbf38 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxdmcp_1.0.3.bb | |||
@@ -0,0 +1,18 @@ | |||
1 | DESCRIPTION = "X Display Manager Control Protocol library" | ||
2 | |||
3 | require xorg-lib-common.inc | ||
4 | |||
5 | LICENSE = "MIT-style" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=d559fb26e129626022e052a5e6e0e123" | ||
7 | |||
8 | DEPENDS += "xproto" | ||
9 | PROVIDES = "xdmcp" | ||
10 | |||
11 | PR = "r0" | ||
12 | PE = "1" | ||
13 | |||
14 | DEPENDS += "gettext" | ||
15 | |||
16 | XORG_PN = "libXdmcp" | ||
17 | |||
18 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxevie_1.0.2.bb b/meta/recipes-graphics/xorg-lib/libxevie_1.0.2.bb new file mode 100644 index 0000000000..6c6b4595aa --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxevie_1.0.2.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | require xorg-lib-common.inc | ||
2 | |||
3 | DESCRIPTION = "X11 EvIE extension library" | ||
4 | DEPENDS += "libxext evieext" | ||
5 | PR = "r1" | ||
6 | PE = "1" | ||
7 | |||
8 | XORG_PN = "libXevie" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxext_1.1.2.bb b/meta/recipes-graphics/xorg-lib/libxext_1.1.2.bb new file mode 100644 index 0000000000..14e6c1fb7e --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxext_1.1.2.bb | |||
@@ -0,0 +1,16 @@ | |||
1 | DESCRIPTION = "X11 miscellaneous extension library" | ||
2 | |||
3 | require xorg-lib-common.inc | ||
4 | |||
5 | LICENSE = "MIT-style" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=c70692f0f710dda89d6cfcc412d8a1aa" | ||
7 | |||
8 | DEPENDS += "xproto virtual/libx11 xextproto libxau libxdmcp" | ||
9 | PROVIDES = "xext" | ||
10 | |||
11 | PR = "r0" | ||
12 | PE = "1" | ||
13 | |||
14 | XORG_PN = "libXext" | ||
15 | |||
16 | BBCLASSEXTEND = "nativesdk" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxext_git.bb b/meta/recipes-graphics/xorg-lib/libxext_git.bb new file mode 100644 index 0000000000..d0b3d7fbf5 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxext_git.bb | |||
@@ -0,0 +1,14 @@ | |||
1 | require xorg-lib-common.inc | ||
2 | |||
3 | DESCRIPTION = "X11 miscellaneous extension library" | ||
4 | DEPENDS += "xproto virtual/libx11 xextproto libxau libxdmcp" | ||
5 | PROVIDES = "xext" | ||
6 | PE = "1" | ||
7 | PV = "1.0.99.1+gitr${SRCPV}" | ||
8 | |||
9 | XORG_PN = "libXext" | ||
10 | |||
11 | SRC_URI = "git://anongit.freedesktop.org/git/xorg/lib/${XORG_PN};protocol=git" | ||
12 | S = "${WORKDIR}/git/" | ||
13 | |||
14 | BBCLASSEXTEND = "nativesdk" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxfixes_4.0.4.bb b/meta/recipes-graphics/xorg-lib/libxfixes_4.0.4.bb new file mode 100644 index 0000000000..b3ee0711dc --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxfixes_4.0.4.bb | |||
@@ -0,0 +1,15 @@ | |||
1 | DESCRIPTION = "X Fixes extension library." | ||
2 | |||
3 | require xorg-lib-common.inc | ||
4 | |||
5 | LICENSE = "MIT-style" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=90b90b60eb30f65fc9c2673d7cf59e24" | ||
7 | |||
8 | DEPENDS += "virtual/libx11 xproto fixesproto xextproto" | ||
9 | |||
10 | PR = "r0" | ||
11 | PE = "1" | ||
12 | |||
13 | XORG_PN = "libXfixes" | ||
14 | |||
15 | BBCLASSEXTEND = "nativesdk" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxfont/no-scalable-crash.patch b/meta/recipes-graphics/xorg-lib/libxfont/no-scalable-crash.patch new file mode 100644 index 0000000000..90bded6fba --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxfont/no-scalable-crash.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | --- /tmp/fontdir.c 2006-08-01 16:17:22.000000000 +0200 | ||
2 | +++ libXfont-1.2.0/src/fontfile/fontdir.c 2006-08-01 16:20:37.248306000 +0200 | ||
3 | @@ -695,6 +695,11 @@ | ||
4 | */ | ||
5 | if (isscale) | ||
6 | { | ||
7 | + /* If the fontname says it is scalable, make sure that the | ||
8 | + * renderer supports OpenScalable and GetInfoScalable. | ||
9 | + */ | ||
10 | + if (renderer->OpenScalable && renderer->GetInfoScalable) | ||
11 | + { | ||
12 | if (vals.values_supplied & SIZE_SPECIFY_MASK) | ||
13 | { | ||
14 | bzero((char *)&zeroVals, sizeof(zeroVals)); | ||
15 | @@ -794,6 +799,7 @@ | ||
16 | bitmap->name.name); | ||
17 | } | ||
18 | } | ||
19 | + } | ||
20 | } | ||
21 | return TRUE; | ||
22 | } | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxfont_1.4.2.bb b/meta/recipes-graphics/xorg-lib/libxfont_1.4.2.bb new file mode 100644 index 0000000000..6aa83c4ac6 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxfont_1.4.2.bb | |||
@@ -0,0 +1,18 @@ | |||
1 | DESCRIPTION = "X11 font rasterisation library" | ||
2 | |||
3 | require xorg-lib-common.inc | ||
4 | |||
5 | LICENSE= "MIT & MIT-style & BSD" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=deeee1c29f32ca774cecf0c83b46bb5c" | ||
7 | |||
8 | DEPENDS += "freetype fontcacheproto xtrans fontsproto libfontenc" | ||
9 | PROVIDES = "xfont" | ||
10 | |||
11 | PR = "r0" | ||
12 | PE = "1" | ||
13 | |||
14 | #SRC_URI += "file://no-scalable-crash.patch;patch=1" | ||
15 | |||
16 | XORG_PN = "libXfont" | ||
17 | |||
18 | BBCLASSEXTEND = "native" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxfontcache_1.0.5.bb b/meta/recipes-graphics/xorg-lib/libxfontcache_1.0.5.bb new file mode 100644 index 0000000000..97f7ed6272 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxfontcache_1.0.5.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | require xorg-lib-common.inc | ||
2 | |||
3 | DESCRIPTION = "X-TrueType font cache extension client library" | ||
4 | DEPENDS += "libxext fontcacheproto" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=62a75d5d3da40f1f6eb1cbe3bcc0a5d0" | ||
6 | PR = "r0" | ||
7 | PE = "1" | ||
8 | |||
9 | XORG_PN = "libXfontcache" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxft_2.1.14.bb b/meta/recipes-graphics/xorg-lib/libxft_2.1.14.bb new file mode 100644 index 0000000000..7f5ccdd0fb --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxft_2.1.14.bb | |||
@@ -0,0 +1,25 @@ | |||
1 | DESCRIPTION = "FreeType-based font drawing library for X" | ||
2 | |||
3 | require xorg-lib-common.inc | ||
4 | |||
5 | LICENSE = "MIT" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=90b90b60eb30f65fc9c2673d7cf59e24" | ||
7 | |||
8 | DEPENDS += "libxrender freetype fontconfig" | ||
9 | PROVIDES = "xft" | ||
10 | |||
11 | PR = "r0" | ||
12 | PE = "1" | ||
13 | |||
14 | XORG_PN = "libXft" | ||
15 | |||
16 | python do_package() { | ||
17 | if bb.data.getVar('DEBIAN_NAMES', d, 1): | ||
18 | bb.data.setVar('PKG_${PN}', 'libxft2', d) | ||
19 | bb.build.exec_func('package_do_package', d) | ||
20 | } | ||
21 | |||
22 | FILES_${PN} = "${libdir}/lib*${SOLIBS}" | ||
23 | FILES_${PN}-dev = "${includedir} ${libdir}/lib*${SOLIBSDEV} ${libdir}/*.la \ | ||
24 | ${libdir}/*.a ${libdir}/pkgconfig \ | ||
25 | ${datadir}/aclocal ${bindir} ${sbindir}" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxi_1.3.bb b/meta/recipes-graphics/xorg-lib/libxi_1.3.bb new file mode 100644 index 0000000000..bd21eadd13 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxi_1.3.bb | |||
@@ -0,0 +1,13 @@ | |||
1 | require xorg-lib-common.inc | ||
2 | |||
3 | DESCRIPTION = "X11 Input extension library" | ||
4 | |||
5 | LICENSE = "MIT & MIT-style" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=2aafbfe6127f6f03eb776283e6138cce \ | ||
7 | file://src/XIGetDevFocus.c;endline=23;md5=cdfb0d435a33ec57ea0d1e8e395b729f" | ||
8 | |||
9 | DEPENDS += "libxext inputproto" | ||
10 | PE = "1" | ||
11 | |||
12 | XORG_PN = "libXi" | ||
13 | |||
diff --git a/meta/recipes-graphics/xorg-lib/libxi_git.bb b/meta/recipes-graphics/xorg-lib/libxi_git.bb new file mode 100644 index 0000000000..30c1778c3e --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxi_git.bb | |||
@@ -0,0 +1,11 @@ | |||
1 | require xorg-lib-common.inc | ||
2 | |||
3 | DESCRIPTION = "X11 Input extension library" | ||
4 | DEPENDS += "libxext inputproto" | ||
5 | PE = "1" | ||
6 | PV = "1.2.99.5+gitr${SRCPV}" | ||
7 | |||
8 | XORG_PN = "libXi" | ||
9 | |||
10 | SRC_URI = "git://anongit.freedesktop.org/git/xorg/lib/${XORG_PN};protocol=git" | ||
11 | S = "${WORKDIR}/git" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxinerama_1.1.bb b/meta/recipes-graphics/xorg-lib/libxinerama_1.1.bb new file mode 100644 index 0000000000..35a967cff0 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxinerama_1.1.bb | |||
@@ -0,0 +1,14 @@ | |||
1 | require xorg-lib-common.inc | ||
2 | |||
3 | DESCRIPTION = "X11 Xinerama extension library" | ||
4 | |||
5 | LICENSE = "MIT" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=4641deddaa80fe7ca88e944e1fd94a94 \ | ||
7 | file://src/Xinerama.c;beginline=2;endline=25;md5=098e0bc089368a988092b3cbda617a57" | ||
8 | |||
9 | DEPENDS += "libxext xineramaproto" | ||
10 | PROVIDES = "xinerama" | ||
11 | PR = "r3" | ||
12 | PE = "1" | ||
13 | |||
14 | XORG_PN = "libXinerama" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxkbfile_1.0.6.bb b/meta/recipes-graphics/xorg-lib/libxkbfile_1.0.6.bb new file mode 100644 index 0000000000..f46c147e4a --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxkbfile_1.0.6.bb | |||
@@ -0,0 +1,13 @@ | |||
1 | DESCRIPTION = "X11 keyboard file manipulation library" | ||
2 | |||
3 | require xorg-lib-common.inc | ||
4 | |||
5 | LICENSE = "MIT-style" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=aa32e1b87f1da02948ab7b55e129bf5f" | ||
7 | |||
8 | DEPENDS += "virtual/libx11 kbproto" | ||
9 | |||
10 | PR = "r0" | ||
11 | PE = "1" | ||
12 | |||
13 | BBCLASSEXTEND = "native" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxkbui_1.0.2.bb b/meta/recipes-graphics/xorg-lib/libxkbui_1.0.2.bb new file mode 100644 index 0000000000..9a3f5f1327 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxkbui_1.0.2.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | require xorg-lib-common.inc | ||
2 | |||
3 | DESCRIPTION = "X11 keyboard UI presentation library" | ||
4 | LICENSE= "GPL" | ||
5 | DEPENDS += "virtual/libx11 libxt libxkbfile" | ||
6 | PROVIDES = "xkbui" | ||
7 | PR = "r1" | ||
8 | PE = "1" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxmu_1.0.5.bb b/meta/recipes-graphics/xorg-lib/libxmu_1.0.5.bb new file mode 100644 index 0000000000..761746e2cc --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxmu_1.0.5.bb | |||
@@ -0,0 +1,21 @@ | |||
1 | DESCRIPTION = "X11 miscellaneous utility library" | ||
2 | |||
3 | require xorg-lib-common.inc | ||
4 | |||
5 | LICENSE = "MIT & MIT-style" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=bb8d1df693806ad17c7268086f1d5394" | ||
7 | |||
8 | DEPENDS += "libxt libxext" | ||
9 | PROVIDES = "xmu" | ||
10 | |||
11 | PR = "r0" | ||
12 | PE = "1" | ||
13 | |||
14 | XORG_PN = "libXmu" | ||
15 | |||
16 | LEAD_SONAME = "libXmu" | ||
17 | |||
18 | PACKAGES =+ "libxmuu libxmuu-dev" | ||
19 | |||
20 | FILES_libxmuu = "${libdir}/libXmuu.so.*" | ||
21 | FILES_libxmuu-dev = "${libdir}/libXmuu.so" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxp_1.0.0.bb b/meta/recipes-graphics/xorg-lib/libxp_1.0.0.bb new file mode 100644 index 0000000000..7d3b87473c --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxp_1.0.0.bb | |||
@@ -0,0 +1,15 @@ | |||
1 | require xorg-lib-common.inc | ||
2 | |||
3 | DESCRIPTION = "X Printing Extension (Xprint) client library" | ||
4 | |||
5 | LICENSE = "MIT & MIT-style" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=329e54eb6793b3d4830a4f6f1ca16e3f \ | ||
7 | file://src/XpPage.c;beginline=2;endline=37;md5=886b68ac3721003d54abfbd82bafc5ad" | ||
8 | |||
9 | DEPENDS += "libxext libxau printproto" | ||
10 | PR = "r1" | ||
11 | PE = "1" | ||
12 | |||
13 | XORG_PN = "libXp" | ||
14 | |||
15 | CFLAGS_append += " -I ${S}/include/X11/XprintUtil -I ${S}/include/X11/extensions" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxpm_3.5.7.bb b/meta/recipes-graphics/xorg-lib/libxpm_3.5.7.bb new file mode 100644 index 0000000000..75c10bf2c9 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxpm_3.5.7.bb | |||
@@ -0,0 +1,13 @@ | |||
1 | require xorg-lib-common.inc | ||
2 | |||
3 | DESCRIPTION = "X11 Pixmap library" | ||
4 | LICENSE = "X-BSD" | ||
5 | DEPENDS += "libxext libsm libxt" | ||
6 | PR = "r3" | ||
7 | PE = "1" | ||
8 | |||
9 | XORG_PN = "libXpm" | ||
10 | |||
11 | PACKAGES =+ "sxpm cxpm" | ||
12 | FILES_cxpm = "${bindir}/cxpm" | ||
13 | FILES_sxpm = "${bindir}/sxpm" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxprintapputil_1.0.1.bb b/meta/recipes-graphics/xorg-lib/libxprintapputil_1.0.1.bb new file mode 100644 index 0000000000..3a24a888d1 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxprintapputil_1.0.1.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | require xorg-lib-common.inc | ||
2 | |||
3 | DESCRIPTION = "Xprint job utility client library" | ||
4 | DEPENDS += "libxp libxt libxprintutil" | ||
5 | PR = "r1" | ||
6 | PE = "1" | ||
7 | |||
8 | XORG_PN = "libXprintAppUtil" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxprintutil_1.0.1.bb b/meta/recipes-graphics/xorg-lib/libxprintutil_1.0.1.bb new file mode 100644 index 0000000000..327138e7fd --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxprintutil_1.0.1.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | require xorg-lib-common.inc | ||
2 | |||
3 | DESCRIPTION = "Xprint printer utility client library" | ||
4 | DEPENDS += "libxp libxt" | ||
5 | PR = "r1" | ||
6 | PE = "1" | ||
7 | |||
8 | XORG_PN = "libXprintUtil" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxrandr_1.3.0.bb b/meta/recipes-graphics/xorg-lib/libxrandr_1.3.0.bb new file mode 100644 index 0000000000..461dff424b --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxrandr_1.3.0.bb | |||
@@ -0,0 +1,15 @@ | |||
1 | DESCRIPTION = "X11 Resize and Rotate extension library" | ||
2 | |||
3 | require xorg-lib-common.inc | ||
4 | |||
5 | LICENSE = "MIT-style" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=660ef232af253760087c069d76287b85" | ||
7 | |||
8 | DEPENDS += "randrproto libxrender libxext" | ||
9 | |||
10 | PR = "r0" | ||
11 | PE = "1" | ||
12 | |||
13 | XORG_PN = "libXrandr" | ||
14 | |||
15 | BBCLASSEXTEND = "nativesdk" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxrender_0.9.5.bb b/meta/recipes-graphics/xorg-lib/libxrender_0.9.5.bb new file mode 100644 index 0000000000..662796e90b --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxrender_0.9.5.bb | |||
@@ -0,0 +1,15 @@ | |||
1 | DESCRIPTION = "X11 Rendering Extension client library" | ||
2 | |||
3 | require xorg-lib-common.inc | ||
4 | |||
5 | LICENSE = "MIT-style" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=90b90b60eb30f65fc9c2673d7cf59e24" | ||
7 | |||
8 | DEPENDS += "virtual/libx11 renderproto xproto xdmcp" | ||
9 | |||
10 | PR = "r0" | ||
11 | PE = "1" | ||
12 | |||
13 | XORG_PN = "libXrender" | ||
14 | |||
15 | BBCLASSEXTEND = "nativesdk" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxres_1.0.4.bb b/meta/recipes-graphics/xorg-lib/libxres_1.0.4.bb new file mode 100644 index 0000000000..5c8c47ccbf --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxres_1.0.4.bb | |||
@@ -0,0 +1,13 @@ | |||
1 | DESCRIPTION = "X11 Resource extension library" | ||
2 | |||
3 | require xorg-lib-common.inc | ||
4 | |||
5 | LICENSE = "MIT" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=8c89441a8df261bdc56587465e13c7fa" | ||
7 | |||
8 | DEPENDS += "libxext resourceproto" | ||
9 | |||
10 | PR = "r0" | ||
11 | PE = "1" | ||
12 | |||
13 | XORG_PN = "libXres" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxscrnsaver_1.2.0.bb b/meta/recipes-graphics/xorg-lib/libxscrnsaver_1.2.0.bb new file mode 100644 index 0000000000..ff22c337a0 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxscrnsaver_1.2.0.bb | |||
@@ -0,0 +1,11 @@ | |||
1 | require xorg-lib-common.inc | ||
2 | |||
3 | DESCRIPTION = "X Screen Saver extension library" | ||
4 | LICENSE = "GPL" | ||
5 | DEPENDS += "libxext scrnsaverproto" | ||
6 | PROVIDES = "libxss" | ||
7 | RREPLACES = "libxss" | ||
8 | PR = "r1" | ||
9 | PE = "1" | ||
10 | |||
11 | XORG_PN = "libXScrnSaver" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxt_1.0.8.bb b/meta/recipes-graphics/xorg-lib/libxt_1.0.8.bb new file mode 100644 index 0000000000..a35d03eb03 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxt_1.0.8.bb | |||
@@ -0,0 +1,30 @@ | |||
1 | DESCRIPTION = "X11 toolkit intrinsics library" | ||
2 | |||
3 | require xorg-lib-common.inc | ||
4 | |||
5 | LICENSE = "MIT & MIT-style" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=0629f81eb944a4317bc6fe134614769f" | ||
7 | |||
8 | |||
9 | DEPENDS += "libsm virtual/libx11 kbproto libxdmcp" | ||
10 | PROVIDES = "xt" | ||
11 | |||
12 | PR = "r0" | ||
13 | PE = "1" | ||
14 | |||
15 | XORG_PN = "libXt" | ||
16 | |||
17 | BBCLASSEXTEND = "native" | ||
18 | |||
19 | EXTRA_OECONF += "--disable-install-makestrs --disable-xkb" | ||
20 | |||
21 | do_compile() { | ||
22 | ( | ||
23 | unset CC LD CXX CCLD CFLAGS | ||
24 | oe_runmake -C util 'XT_CFLAGS=' 'CC=${BUILD_CC}' 'LD=${BUILD_LD}' 'CXX=${BUILD_CXX}' 'CCLD=${BUILD_CCLD}' 'CFLAGS=-D_GNU_SOURCE -I${STAGING_INCDIR_NATIVE} ${BUILD_CFLAGS}' 'LDFLAGS=${BUILD_LDFLAGS}' 'CXXFLAGS=${BUILD_CXXFLAGS}' 'CPPFLAGS=${BUILD_CPPFLAGS}' makestrs | ||
25 | ) | ||
26 | if [ "$?" != "0" ]; then | ||
27 | exit 1 | ||
28 | fi | ||
29 | oe_runmake | ||
30 | } | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxtrap_1.0.0.bb b/meta/recipes-graphics/xorg-lib/libxtrap_1.0.0.bb new file mode 100644 index 0000000000..7a25ae5bce --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxtrap_1.0.0.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | require xorg-lib-common.inc | ||
2 | |||
3 | DESCRIPTION = "X11 event trapping extension library" | ||
4 | DEPENDS += "libxt trapproto libxext" | ||
5 | PR = "r1" | ||
6 | PE = "1" | ||
7 | |||
8 | XORG_PN = "libXTrap" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxtst_1.1.0.bb b/meta/recipes-graphics/xorg-lib/libxtst_1.1.0.bb new file mode 100644 index 0000000000..bd18fb3c6b --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxtst_1.1.0.bb | |||
@@ -0,0 +1,14 @@ | |||
1 | require xorg-lib-common.inc | ||
2 | |||
3 | DESCRIPTION = "X Test Extension: client side library" | ||
4 | |||
5 | LICENSE = "MIT-style" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=cba677ca25c42ad29ee8ff351b50ece8 \ | ||
7 | file://src/XTest.c;beginline=2;endline=32;md5=1491d278aeb574e84c5235eb44cdac74" | ||
8 | |||
9 | DEPENDS += "libxext recordproto inputproto libxi" | ||
10 | PROVIDES = "xtst" | ||
11 | PR = "r2" | ||
12 | PE = "1" | ||
13 | |||
14 | XORG_PN = "libXtst" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxv_1.0.5.bb b/meta/recipes-graphics/xorg-lib/libxv_1.0.5.bb new file mode 100644 index 0000000000..d6e5777bcc --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxv_1.0.5.bb | |||
@@ -0,0 +1,12 @@ | |||
1 | DESCRIPTION = "X11 Video extension library" | ||
2 | |||
3 | require xorg-lib-common.inc | ||
4 | |||
5 | LICENSE = "MIT-style" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=916ffd3d79baef9fb56d2c2af28f93f2" | ||
7 | |||
8 | DEPENDS += "libxext videoproto" | ||
9 | |||
10 | PR = "r0" | ||
11 | |||
12 | XORG_PN = "libXv" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxvmc_1.0.5.bb b/meta/recipes-graphics/xorg-lib/libxvmc_1.0.5.bb new file mode 100644 index 0000000000..7a8013fa53 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxvmc_1.0.5.bb | |||
@@ -0,0 +1,14 @@ | |||
1 | DESCRIPTION = "X Video Motion Compensation extension library" | ||
2 | |||
3 | require xorg-lib-common.inc | ||
4 | |||
5 | LICENSE = "MIT" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=4641deddaa80fe7ca88e944e1fd94a94 \ | ||
7 | file://src/XvMCWrapper.c;endline=26;md5=5151daa8172a3f1bb0cb0e0ff157d9de" | ||
8 | |||
9 | DEPENDS += "libxext libxv videoproto" | ||
10 | |||
11 | PR = "r0" | ||
12 | PE = "1" | ||
13 | |||
14 | XORG_PN = "libXvMC" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxxf86dga_1.1.1.bb b/meta/recipes-graphics/xorg-lib/libxxf86dga_1.1.1.bb new file mode 100644 index 0000000000..6d5bd6aaa8 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxxf86dga_1.1.1.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | require xorg-lib-common.inc | ||
2 | |||
3 | DESCRIPTION = "X11 Direct Graphics Access extension library" | ||
4 | DEPENDS += "libxext xf86dgaproto" | ||
5 | PR = "r1" | ||
6 | PE = "1" | ||
7 | |||
8 | XORG_PN = "libXxf86dga" | ||
9 | |||
10 | LIC_FILES_CHKSUM = "file://COPYING;md5=978fbe536ab97ed49f45ba81159fe4b3" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxxf86misc_1.0.2.bb b/meta/recipes-graphics/xorg-lib/libxxf86misc_1.0.2.bb new file mode 100644 index 0000000000..8284dac231 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxxf86misc_1.0.2.bb | |||
@@ -0,0 +1,14 @@ | |||
1 | DESCRIPTION = "X11 XFree86 miscellaneous extension library" | ||
2 | |||
3 | require xorg-lib-common.inc | ||
4 | |||
5 | LICENSE = "MIT" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=27c91ecc435bd3d2bfad868914c94b45" | ||
7 | |||
8 | DEPENDS += "libxext xf86miscproto" | ||
9 | PROVIDES = "xxf86misc" | ||
10 | |||
11 | PR = "r0" | ||
12 | PE = "1" | ||
13 | |||
14 | XORG_PN = "libXxf86misc" | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxxf86vm_1.1.0.bb b/meta/recipes-graphics/xorg-lib/libxxf86vm_1.1.0.bb new file mode 100644 index 0000000000..7dc4a3a12b --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxxf86vm_1.1.0.bb | |||
@@ -0,0 +1,13 @@ | |||
1 | DESCRIPTION = "X11 XFree86 video mode extension library" | ||
2 | |||
3 | require xorg-lib-common.inc | ||
4 | |||
5 | LICENSE = "MIT" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=de77b7cff98cf5d7a9a148069ebb4e1a" | ||
7 | |||
8 | DEPENDS += "libxext xf86vidmodeproto" | ||
9 | |||
10 | PR = "r0" | ||
11 | PE = "1" | ||
12 | |||
13 | XORG_PN = "libXxf86vm" | ||
diff --git a/meta/recipes-graphics/xorg-lib/pixman_0.18.2.bb b/meta/recipes-graphics/xorg-lib/pixman_0.18.2.bb new file mode 100644 index 0000000000..3bc1f0202f --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/pixman_0.18.2.bb | |||
@@ -0,0 +1,15 @@ | |||
1 | DESCRIPTION = "Library for lowlevel pixel operations" | ||
2 | |||
3 | require xorg-lib-common.inc | ||
4 | |||
5 | LICENSE = "MIT & MIT-style & Public Domain" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=fea989a44fb012b5e79584972a863d22 \ | ||
7 | file://pixman/pixman-matrix.c;endline=25;md5=ba6e8769bfaaee2c41698755af04c4be \ | ||
8 | file://pixman/pixman-arm-neon-asm.h;endline=24;md5=9a9cc1e51abbf1da58f4d9528ec9d49b \ | ||
9 | file://pixman/pixman-x64-mmx-emulation.h;beginline=4;endline=9;md5=4e32716f2efaa6c4659222667c339bb8" | ||
10 | |||
11 | DEPENDS = "virtual/libx11" | ||
12 | |||
13 | PR="r0" | ||
14 | |||
15 | EXTRA_OECONF="--disable-gtk" | ||
diff --git a/meta/recipes-graphics/xorg-lib/xkeyboard-config_1.9.bb b/meta/recipes-graphics/xorg-lib/xkeyboard-config_1.9.bb new file mode 100644 index 0000000000..0e59bd506f --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/xkeyboard-config_1.9.bb | |||
@@ -0,0 +1,24 @@ | |||
1 | DESCRIPTION = "Keyboard configuration database for X Window" | ||
2 | HOMEPAGE = "http://freedesktop.org/wiki/Software/XKeyboardConfig" | ||
3 | BUGTRACKER = "https://bugs.freedesktop.org/enter_bug.cgi?product=xkeyboard-config" | ||
4 | |||
5 | LICENSE = "MIT & MIT-style" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=0e7f21ca7db975c63467d2e7624a12f9" | ||
7 | |||
8 | SRC_URI = "http://people.freedesktop.org/~svu/xkeyboard-config-${PV}.tar.bz2" | ||
9 | SECTION = "x11/libs" | ||
10 | DEPENDS = "intltool xkbcomp-native glib-2.0" | ||
11 | |||
12 | PR = "r0" | ||
13 | |||
14 | EXTRA_OECONF = "--with-xkb-rules-symlink=xorg" | ||
15 | |||
16 | RDEPENDS_${PN} += "xkbcomp" | ||
17 | FILES_${PN} += "${datadir}/X11/xkb" | ||
18 | |||
19 | inherit autotools pkgconfig | ||
20 | |||
21 | do_install_append () { | ||
22 | install -d ${D}/usr/share/X11/xkb/compiled | ||
23 | cd ${D}${datadir}/X11/xkb/rules && ln -sf base xorg | ||
24 | } | ||
diff --git a/meta/recipes-graphics/xorg-lib/xorg-lib-common.inc b/meta/recipes-graphics/xorg-lib/xorg-lib-common.inc new file mode 100644 index 0000000000..4ed8c866ea --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/xorg-lib-common.inc | |||
@@ -0,0 +1,16 @@ | |||
1 | HOMEPAGE = "http://www.x.org" | ||
2 | BUGTRACKER = "https://bugs.freedesktop.org/enter_bug.cgi?product=xorg" | ||
3 | |||
4 | SECTION = "x11/libs" | ||
5 | LICENSE = "MIT-X" | ||
6 | DEPENDS = "util-macros" | ||
7 | |||
8 | XORG_PN = "${BPN}" | ||
9 | |||
10 | SRC_URI = "${XORG_MIRROR}/individual/lib/${XORG_PN}-${PV}.tar.bz2" | ||
11 | |||
12 | S = "${WORKDIR}/${XORG_PN}-${PV}" | ||
13 | |||
14 | inherit autotools pkgconfig | ||
15 | |||
16 | EXTRA_OECONF = "--enable-malloc0returnsnull" | ||
diff --git a/meta/recipes-graphics/xorg-lib/xtrans/abstract_socket_fix.patch b/meta/recipes-graphics/xorg-lib/xtrans/abstract_socket_fix.patch new file mode 100644 index 0000000000..197da0735d --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/xtrans/abstract_socket_fix.patch | |||
@@ -0,0 +1,58 @@ | |||
1 | From 556a351de83fc6f401b02213dae95731553c216d Mon Sep 17 00:00:00 2001 | ||
2 | From: Loïc Minier <lool@dooz.org> | ||
3 | Date: Mon, 24 Mar 2008 19:38:27 +0000 | ||
4 | Subject: Bug #10489: Don't retry unix socket connect()s on ENOENT. | ||
5 | |||
6 | If the socket isn't there, it's not gonna magically appear. Either it's | ||
7 | a server socket and you should have just waited for the SIGUSR1 from the | ||
8 | server, or it's a stale reference to an ICE socket. | ||
9 | |||
10 | However, do retry once, so fallback from abstract to filesystem namespace | ||
11 | works. | ||
12 | |||
13 | Originally Debian bug #385976. | ||
14 | --- | ||
15 | diff --git a/Xtranssock.c b/Xtranssock.c | ||
16 | index 8a7d2ec..da4afe9 100644 | ||
17 | --- a/Xtranssock.c | ||
18 | +++ b/Xtranssock.c | ||
19 | @@ -2146,8 +2146,13 @@ TRANS(SocketUNIXConnect) (XtransConnInfo ciptr, char *host, char *port) | ||
20 | errno = olderrno; | ||
21 | |||
22 | /* | ||
23 | - * If the error was ENOENT, the server may be starting up | ||
24 | - * and we should try again. | ||
25 | + * If the error was ENOENT, the server may be starting up; we used | ||
26 | + * to suggest to try again in this case with | ||
27 | + * TRANS_TRY_CONNECT_AGAIN, but this introduced problems for | ||
28 | + * processes still referencing stale sockets in their environment. | ||
29 | + * Hence, we now return a hard error, TRANS_CONNECT_FAILED, and it | ||
30 | + * is suggested that higher level stacks handle retries on their | ||
31 | + * level when they face a slow starting server. | ||
32 | * | ||
33 | * If the error was EWOULDBLOCK or EINPROGRESS then the socket | ||
34 | * was non-blocking and we should poll using select | ||
35 | @@ -2161,14 +2166,14 @@ TRANS(SocketUNIXConnect) (XtransConnInfo ciptr, char *host, char *port) | ||
36 | else if (olderrno == EINTR) | ||
37 | return TRANS_TRY_CONNECT_AGAIN; | ||
38 | else if (olderrno == ENOENT) { | ||
39 | - /* | ||
40 | - * If opening as abstract socket failed, try again "normally" | ||
41 | - */ | ||
42 | - if (abstract) | ||
43 | + /* If opening as abstract socket failed, try again normally */ | ||
44 | + if (abstract) { | ||
45 | ciptr->transptr->flags &= ~(TRANS_ABSTRACT); | ||
46 | - return TRANS_TRY_CONNECT_AGAIN; | ||
47 | - } | ||
48 | - else { | ||
49 | + return TRANS_TRY_CONNECT_AGAIN; | ||
50 | + } else { | ||
51 | + return TRANS_CONNECT_FAILED; | ||
52 | + } | ||
53 | + } else { | ||
54 | PRMSG (2,"SocketUNIXConnect: Can't connect: errno = %d\n", | ||
55 | EGET(),0, 0); | ||
56 | |||
57 | -- | ||
58 | cgit v0.7.2-37-g538c | ||
diff --git a/meta/recipes-graphics/xorg-lib/xtrans_1.2.5.bb b/meta/recipes-graphics/xorg-lib/xtrans_1.2.5.bb new file mode 100644 index 0000000000..52609b7e2b --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/xtrans_1.2.5.bb | |||
@@ -0,0 +1,15 @@ | |||
1 | DESCRIPTION = "network API translation layer to insulate X applications and \ | ||
2 | libraries from OS network vageries." | ||
3 | |||
4 | require xorg-lib-common.inc | ||
5 | |||
6 | LICENSE = "MIT & MIT-style" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=e334229ea6378ccb4a6202d7b715831c" | ||
8 | |||
9 | PE = "1" | ||
10 | PR = "r0" | ||
11 | |||
12 | RDEPENDS_${PN}-dev = "" | ||
13 | DEPENDS += "gettext" | ||
14 | |||
15 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta/recipes-graphics/xorg-proto/applewmproto_1.4.1.bb b/meta/recipes-graphics/xorg-proto/applewmproto_1.4.1.bb new file mode 100644 index 0000000000..9f09fff7b7 --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/applewmproto_1.4.1.bb | |||
@@ -0,0 +1,4 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | PR = "r1" | ||
4 | PE = "1" | ||
diff --git a/meta/recipes-graphics/xorg-proto/bigreqsproto_1.1.0.bb b/meta/recipes-graphics/xorg-proto/bigreqsproto_1.1.0.bb new file mode 100644 index 0000000000..0ea0729bcf --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/bigreqsproto_1.1.0.bb | |||
@@ -0,0 +1,12 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | PR = "r2" | ||
4 | PE = "1" | ||
5 | |||
6 | DEPENDS += "gettext" | ||
7 | |||
8 | DESCRIPTION = "X.Org BigReqs extension headers" | ||
9 | |||
10 | BBCLASSEXTEND = "native nativesdk" | ||
11 | |||
12 | LIC_FILES_CHKSUM = "file://COPYING;md5=b12715630da6f268d0d3712ee1a504f4" | ||
diff --git a/meta/recipes-graphics/xorg-proto/calibrateproto/fix.patch b/meta/recipes-graphics/xorg-proto/calibrateproto/fix.patch new file mode 100644 index 0000000000..0c85cb0ccf --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/calibrateproto/fix.patch | |||
@@ -0,0 +1,40 @@ | |||
1 | Add missing length fields to the replies. Without these, sanity checking in recent X | ||
2 | breaks things. | ||
3 | |||
4 | RP 11/2/10 | ||
5 | |||
6 | |||
7 | Index: git/xcalibrateproto.h | ||
8 | =================================================================== | ||
9 | --- git.orig/xcalibrateproto.h 2010-02-11 11:47:45.711985932 +0000 | ||
10 | +++ git/xcalibrateproto.h 2010-02-11 11:40:21.000000000 +0000 | ||
11 | @@ -67,13 +67,13 @@ | ||
12 | BYTE type; /* X_Reply */ | ||
13 | BYTE pad1; | ||
14 | CARD16 sequenceNumber B16; | ||
15 | + CARD32 length; | ||
16 | CARD32 status; | ||
17 | CARD32 pad2 B32; | ||
18 | CARD32 pad3 B32; | ||
19 | CARD32 pad4 B32; | ||
20 | CARD32 pad5 B32; | ||
21 | CARD32 pad6 B32; | ||
22 | - CARD32 pad7 B32; | ||
23 | } xXCalibrateRawModeReply; | ||
24 | |||
25 | #define sz_xXCalibrateRawModeReply 32 | ||
26 | @@ -92,13 +92,13 @@ | ||
27 | BYTE type; /* X_Reply */ | ||
28 | BYTE pad1; | ||
29 | CARD16 sequenceNumber B16; | ||
30 | + CARD32 length; | ||
31 | CARD32 x; | ||
32 | CARD32 y; | ||
33 | CARD32 pad2 B32; | ||
34 | CARD32 pad3 B32; | ||
35 | CARD32 pad4 B32; | ||
36 | CARD32 pad5 B32; | ||
37 | - CARD32 pad6 B32; | ||
38 | } xXCalibrateScreenToCoordReply; | ||
39 | |||
40 | #define sz_xXCalibrateScreenToCoordReply 32 | ||
diff --git a/meta/recipes-graphics/xorg-proto/calibrateproto_git.bb b/meta/recipes-graphics/xorg-proto/calibrateproto_git.bb new file mode 100644 index 0000000000..9fd5c3fe0b --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/calibrateproto_git.bb | |||
@@ -0,0 +1,14 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | DESCRIPTION = "Touchscreen calibration protocol" | ||
4 | |||
5 | LICENSE = "MIT-style" | ||
6 | LIC_FILES_CHKSUM = "file://xcalibratewire.h;endline=23;md5=7f86ef7b03cce6c4c9ebd59d20ca485f \ | ||
7 | file://xcalibrateproto.h;endline=23;md5=e4490491edcc171ca24f98569ee580db" | ||
8 | |||
9 | PV = "0.0+git${SRCPV}" | ||
10 | PR = "r2" | ||
11 | |||
12 | SRC_URI = "git://anongit.freedesktop.org/git/xorg/proto/calibrateproto;protocol=git \ | ||
13 | file://fix.patch;apply=yes" | ||
14 | S = "${WORKDIR}/git" | ||
diff --git a/meta/recipes-graphics/xorg-proto/compositeproto_0.4.bb b/meta/recipes-graphics/xorg-proto/compositeproto_0.4.bb new file mode 100644 index 0000000000..191053b1c2 --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/compositeproto_0.4.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | LICENSE = "MIT-style" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=f8cdfa47489609f305b91521f3a8803f \ | ||
5 | file://composite.h;endline=43;md5=11420a347713de702a1fe60949085464" | ||
6 | |||
7 | CONFLICTS = "compositeext" | ||
8 | PE = "1" | ||
diff --git a/meta/recipes-graphics/xorg-proto/damageproto_1.2.0.bb b/meta/recipes-graphics/xorg-proto/damageproto_1.2.0.bb new file mode 100644 index 0000000000..af61d03afb --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/damageproto_1.2.0.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | LICENSE = "MIT-style" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=d5f5a2de65c3a84cbde769f07a769608 \ | ||
5 | file://damagewire.h;endline=23;md5=4a4501a592dbc7de5ce89255e50d0296" | ||
6 | |||
7 | CONFLICTS = "damageext" | ||
8 | PR = "r1" | ||
9 | PE = "1" | ||
diff --git a/meta/recipes-graphics/xorg-proto/dmxproto_2.3.bb b/meta/recipes-graphics/xorg-proto/dmxproto_2.3.bb new file mode 100644 index 0000000000..635c63f997 --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/dmxproto_2.3.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=a3c3499231a8035efd0e004cfbd3b72a \ | ||
5 | file://dmxproto.h;endline=32;md5=ab8509955c3dd4c65fac728e1b367bc4" | ||
6 | |||
7 | PR = "r1" | ||
8 | PE = "1" | ||
diff --git a/meta/recipes-graphics/xorg-proto/dri2proto_2.3.bb b/meta/recipes-graphics/xorg-proto/dri2proto_2.3.bb new file mode 100644 index 0000000000..048c27f559 --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/dri2proto_2.3.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | DESCRIPTION = "DRI2 extension headers" | ||
2 | |||
3 | require xorg-proto-common.inc | ||
4 | |||
5 | LICENSE = "MIT" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=2e396fa91834f8786032cad2da5638f3 \ | ||
7 | file://dri2proto.h;endline=31;md5=22f28bf68d01b533f26195e94b3ed8ca" | ||
8 | |||
9 | PR = "r0" | ||
diff --git a/meta/recipes-graphics/xorg-proto/dri2proto_git.bb b/meta/recipes-graphics/xorg-proto/dri2proto_git.bb new file mode 100644 index 0000000000..a5ad7d0919 --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/dri2proto_git.bb | |||
@@ -0,0 +1,11 @@ | |||
1 | DESCRIPTION = "DRI2 extension headers" | ||
2 | |||
3 | require xorg-proto-common.inc | ||
4 | |||
5 | PV = "1.99.3+git${SRCPV}" | ||
6 | PR = "r2" | ||
7 | |||
8 | SRC_URI = "git://anongit.freedesktop.org/git/xorg/proto/dri2proto;protocol=git" | ||
9 | |||
10 | S = "${WORKDIR}/git" | ||
11 | |||
diff --git a/meta/recipes-graphics/xorg-proto/evieext_1.1.0.bb b/meta/recipes-graphics/xorg-proto/evieext_1.1.0.bb new file mode 100644 index 0000000000..16f9039b9d --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/evieext_1.1.0.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | DESCRIPTION = "X EVIE extension headers" | ||
4 | |||
5 | PR = "r1" | ||
6 | PE = "1" | ||
7 | |||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=6cf85dc8217152304ac976db1e240ebe" | ||
diff --git a/meta/recipes-graphics/xorg-proto/fixesproto_4.1.1.bb b/meta/recipes-graphics/xorg-proto/fixesproto_4.1.1.bb new file mode 100644 index 0000000000..cb709f7841 --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/fixesproto_4.1.1.bb | |||
@@ -0,0 +1,11 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | LICENSE = "MIT-style" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=ae2c93d7226d1ed33287c3924ca61816 \ | ||
5 | file://xfixesproto.h;endline=41;md5=fa6bf4d92ae4dd0c1cac511105e541d2" | ||
6 | |||
7 | CONFLICTS = "fixesext" | ||
8 | PR = "r1" | ||
9 | PE = "1" | ||
10 | |||
11 | BBCLASSEXTEND = "nativesdk" | ||
diff --git a/meta/recipes-graphics/xorg-proto/fontcacheproto_0.1.3.bb b/meta/recipes-graphics/xorg-proto/fontcacheproto_0.1.3.bb new file mode 100644 index 0000000000..302e84a567 --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/fontcacheproto_0.1.3.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | LICENSE = "BSD" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=ba9fcd8fe6d09af9f733daccc1a21857 \ | ||
5 | file://fontcacheP.h;endline=28;md5=85c80bfa96c802ee85a570862ee60214" | ||
6 | |||
7 | PR = "r1" | ||
8 | PE = "1" | ||
9 | |||
10 | BBCLASSEXTEND = "native" | ||
diff --git a/meta/recipes-graphics/xorg-proto/fontsproto_2.1.0.bb b/meta/recipes-graphics/xorg-proto/fontsproto_2.1.0.bb new file mode 100644 index 0000000000..74b2fed79d --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/fontsproto_2.1.0.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | LICENSE = "MIT-style" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=c3e48aa9ce868c8e90f0401db41c11a2 \ | ||
5 | file://FSproto.h;endline=44;md5=d2e58e27095e5ea7d4ad456ccb91986c" | ||
6 | |||
7 | PR = "r1" | ||
8 | PE = "1" | ||
9 | |||
10 | BBCLASSEXTEND = "native" | ||
diff --git a/meta/recipes-graphics/xorg-proto/glproto_1.4.11.bb b/meta/recipes-graphics/xorg-proto/glproto_1.4.11.bb new file mode 100644 index 0000000000..c1ade41f2e --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/glproto_1.4.11.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=4641deddaa80fe7ca88e944e1fd94a94 \ | ||
5 | file://glxproto.h;beginline=4;endline=32;md5=6b79c570f644363b356456e7d44471d9" | ||
6 | |||
7 | PR = "r1" | ||
8 | PE = "1" | ||
9 | |||
10 | BBCLASSEXTEND = "nativesdk" | ||
diff --git a/meta/recipes-graphics/xorg-proto/inputproto_2.0.bb b/meta/recipes-graphics/xorg-proto/inputproto_2.0.bb new file mode 100644 index 0000000000..f3332a8ca9 --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/inputproto_2.0.bb | |||
@@ -0,0 +1,12 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | LICENSE = "MIT & MIT-style" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=b9f79c119df756aeffcb89ec96716a9e \ | ||
5 | file://XI2proto.h;endline=48;md5=1ac1581e61188da2885cc14ff49b20be" | ||
6 | |||
7 | PR = "r2" | ||
8 | PE = "1" | ||
9 | |||
10 | inherit gettext | ||
11 | |||
12 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta/recipes-graphics/xorg-proto/inputproto_git.bb b/meta/recipes-graphics/xorg-proto/inputproto_git.bb new file mode 100644 index 0000000000..a97fb0bfab --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/inputproto_git.bb | |||
@@ -0,0 +1,12 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | PR = "r1" | ||
4 | PE = "1" | ||
5 | PV = "1.9.99.12+git${SRCPV}" | ||
6 | |||
7 | SRC_URI = "git://anongit.freedesktop.org/git/xorg/proto/inputproto;protocol=git" | ||
8 | S = "${WORKDIR}/git" | ||
9 | |||
10 | inherit gettext | ||
11 | |||
12 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta/recipes-graphics/xorg-proto/kbproto_1.0.4.bb b/meta/recipes-graphics/xorg-proto/kbproto_1.0.4.bb new file mode 100644 index 0000000000..b49d5a6921 --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/kbproto_1.0.4.bb | |||
@@ -0,0 +1,12 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | LICENSE = "MIT-style" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=7dd6ea99e2a83a552c02c80963623c38 \ | ||
5 | file://XKBproto.h;beginline=2;endline=26;md5=5744eeff407aeb6e7a1346eebab486a2" | ||
6 | |||
7 | PR = "r2" | ||
8 | PE = "1" | ||
9 | |||
10 | DEPENDS += "gettext" | ||
11 | |||
12 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta/recipes-graphics/xorg-proto/printproto_1.0.4.bb b/meta/recipes-graphics/xorg-proto/printproto_1.0.4.bb new file mode 100644 index 0000000000..194abbafc2 --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/printproto_1.0.4.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | |||
4 | LICENSE = "MIT" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=a2363c155fd3749a8cf436ef56c3070f \ | ||
6 | file://Print.h;beginline=2;endline=59;md5=1a2ee3cbfe3e38e136ff1b8477b51f4a" | ||
7 | |||
8 | PR = "r1" | ||
9 | PE = "1" | ||
diff --git a/meta/recipes-graphics/xorg-proto/randrproto_1.3.1.bb b/meta/recipes-graphics/xorg-proto/randrproto_1.3.1.bb new file mode 100644 index 0000000000..725be1d702 --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/randrproto_1.3.1.bb | |||
@@ -0,0 +1,11 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | LICENSE = "MIT-style" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=5fa3f85d9eefaa3a945071485be11343 \ | ||
5 | file://randrproto.h;endline=30;md5=3885957c6048fdf3310ac8ba54ca2c3f" | ||
6 | |||
7 | CONFLICTS = "randrext" | ||
8 | PR = "r1" | ||
9 | PE = "1" | ||
10 | |||
11 | BBCLASSEXTEND = "nativesdk" | ||
diff --git a/meta/recipes-graphics/xorg-proto/recordproto_1.14.bb b/meta/recipes-graphics/xorg-proto/recordproto_1.14.bb new file mode 100644 index 0000000000..abb91d769b --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/recordproto_1.14.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | LICENSE = "MIT-style" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=575827a0f554bbed332542976d5f3d40 \ | ||
5 | file://recordproto.h;endline=19;md5=1cbb0dd45a0b060ff833901620a3e738" | ||
6 | |||
7 | CONFLICTS = "recordext" | ||
8 | PR = "r1" | ||
9 | PE = "1" | ||
diff --git a/meta/recipes-graphics/xorg-proto/renderproto_0.11.bb b/meta/recipes-graphics/xorg-proto/renderproto_0.11.bb new file mode 100644 index 0000000000..afdbb05090 --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/renderproto_0.11.bb | |||
@@ -0,0 +1,11 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=f826d99765196352e6122a406cf0d024 \ | ||
5 | file://renderproto.h;beginline=4;endline=24;md5=3e5e2851dad240b0a3a27c4776b4fd1f" | ||
6 | |||
7 | CONFLICTS = "renderext" | ||
8 | PR = "r1" | ||
9 | PE = "1" | ||
10 | |||
11 | BBCLASSEXTEND = "nativesdk" | ||
diff --git a/meta/recipes-graphics/xorg-proto/resourceproto_1.1.0.bb b/meta/recipes-graphics/xorg-proto/resourceproto_1.1.0.bb new file mode 100644 index 0000000000..702e8f36f2 --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/resourceproto_1.1.0.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=e01e66e4b317088cf869bc98e6af4fb6" | ||
5 | |||
6 | CONFLICTS = "resourceext" | ||
7 | PR = "r1" | ||
8 | PE = "1" | ||
diff --git a/meta/recipes-graphics/xorg-proto/scrnsaverproto_1.2.0.bb b/meta/recipes-graphics/xorg-proto/scrnsaverproto_1.2.0.bb new file mode 100644 index 0000000000..cd992516e8 --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/scrnsaverproto_1.2.0.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | |||
4 | LICENSE = "MIT" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=eed49b78b15b436c933b6b8b054e3901 \ | ||
6 | file://saverproto.h;endline=26;md5=a84c0637305159f3c0ab173aaeede48d" | ||
7 | |||
8 | PR = "r1" | ||
9 | PE = "1" | ||
diff --git a/meta/recipes-graphics/xorg-proto/trapproto_3.4.3.bb b/meta/recipes-graphics/xorg-proto/trapproto_3.4.3.bb new file mode 100644 index 0000000000..c152be703c --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/trapproto_3.4.3.bb | |||
@@ -0,0 +1,7 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | LICENSE = "MIT-style" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=0a984c8e242256a12f3b8dac085893db" | ||
5 | |||
6 | PR = "r1" | ||
7 | PE = "1" | ||
diff --git a/meta/recipes-graphics/xorg-proto/videoproto_2.3.0.bb b/meta/recipes-graphics/xorg-proto/videoproto_2.3.0.bb new file mode 100644 index 0000000000..baedc281c9 --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/videoproto_2.3.0.bb | |||
@@ -0,0 +1,7 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | LICENSE = "MIT & MIT-style" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=59d089e37bf57b5206602da38f58ca5d" | ||
5 | |||
6 | PR = "r1" | ||
7 | PE = "1" | ||
diff --git a/meta/recipes-graphics/xorg-proto/windowswmproto_1.0.4.bb b/meta/recipes-graphics/xorg-proto/windowswmproto_1.0.4.bb new file mode 100644 index 0000000000..9f09fff7b7 --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/windowswmproto_1.0.4.bb | |||
@@ -0,0 +1,4 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | PR = "r1" | ||
4 | PE = "1" | ||
diff --git a/meta/recipes-graphics/xorg-proto/xcmiscproto_1.2.0.bb b/meta/recipes-graphics/xorg-proto/xcmiscproto_1.2.0.bb new file mode 100644 index 0000000000..1ed5a5f314 --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/xcmiscproto_1.2.0.bb | |||
@@ -0,0 +1,11 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | LICENSE = "MIT-style" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=09d83047c15994e05db29b423ed6662e" | ||
5 | |||
6 | PR = "r2" | ||
7 | PE = "1" | ||
8 | |||
9 | DEPENDS += "gettext" | ||
10 | |||
11 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta/recipes-graphics/xorg-proto/xextproto_7.1.1.bb b/meta/recipes-graphics/xorg-proto/xextproto_7.1.1.bb new file mode 100644 index 0000000000..157f070309 --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/xextproto_7.1.1.bb | |||
@@ -0,0 +1,11 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | LICENSE = "MIT & MIT-style" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=86f273291759d0ba2a22585cd1c06c53" | ||
5 | |||
6 | PR = "r0" | ||
7 | PE = "1" | ||
8 | |||
9 | inherit gettext | ||
10 | |||
11 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta/recipes-graphics/xorg-proto/xf86bigfontproto_1.2.0.bb b/meta/recipes-graphics/xorg-proto/xf86bigfontproto_1.2.0.bb new file mode 100644 index 0000000000..f038a1c290 --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/xf86bigfontproto_1.2.0.bb | |||
@@ -0,0 +1,11 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=e01e66e4b317088cf869bc98e6af4fb6" | ||
5 | |||
6 | PR = "r1" | ||
7 | PE = "1" | ||
8 | |||
9 | DEPENDS += "gettext" | ||
10 | |||
11 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta/recipes-graphics/xorg-proto/xf86dgaproto_2.1.bb b/meta/recipes-graphics/xorg-proto/xf86dgaproto_2.1.bb new file mode 100644 index 0000000000..c400193a06 --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/xf86dgaproto_2.1.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=e01e66e4b317088cf869bc98e6af4fb6" | ||
5 | |||
6 | CONFLICTS = "xxf86dgaext" | ||
7 | PR = "r1" | ||
8 | PE = "1" | ||
diff --git a/meta/recipes-graphics/xorg-proto/xf86driproto_2.1.0.bb b/meta/recipes-graphics/xorg-proto/xf86driproto_2.1.0.bb new file mode 100644 index 0000000000..6f31845b86 --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/xf86driproto_2.1.0.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=4641deddaa80fe7ca88e944e1fd94a94 \ | ||
5 | file://xf86driproto.h;endline=35;md5=42be3d8e6d429ab79172572bb0cff544" | ||
6 | |||
7 | PR = "r1" | ||
8 | PE = "1" | ||
diff --git a/meta/recipes-graphics/xorg-proto/xf86miscproto_0.9.3.bb b/meta/recipes-graphics/xorg-proto/xf86miscproto_0.9.3.bb new file mode 100644 index 0000000000..9ea07806f2 --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/xf86miscproto_0.9.3.bb | |||
@@ -0,0 +1,7 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=e01e66e4b317088cf869bc98e6af4fb6" | ||
5 | |||
6 | PR = "r1" | ||
7 | PE = "1" | ||
diff --git a/meta/recipes-graphics/xorg-proto/xf86rushproto_1.1.2.bb b/meta/recipes-graphics/xorg-proto/xf86rushproto_1.1.2.bb new file mode 100644 index 0000000000..9ea07806f2 --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/xf86rushproto_1.1.2.bb | |||
@@ -0,0 +1,7 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=e01e66e4b317088cf869bc98e6af4fb6" | ||
5 | |||
6 | PR = "r1" | ||
7 | PE = "1" | ||
diff --git a/meta/recipes-graphics/xorg-proto/xf86vidmodeproto_2.3.bb b/meta/recipes-graphics/xorg-proto/xf86vidmodeproto_2.3.bb new file mode 100644 index 0000000000..ccbbb36f15 --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/xf86vidmodeproto_2.3.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=499be2ff387a42f84628c35f311f1502" | ||
5 | |||
6 | CONFLICTS = "xxf86vmext" | ||
7 | |||
8 | PR = "r0" | ||
9 | PE = "1" | ||
diff --git a/meta/recipes-graphics/xorg-proto/xineramaproto_1.2.bb b/meta/recipes-graphics/xorg-proto/xineramaproto_1.2.bb new file mode 100644 index 0000000000..d053dbbcd3 --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/xineramaproto_1.2.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | LICENSE = "MIT & MIT-style" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=3e397a5326c83d5d0ebf5b3f87163ac6 \ | ||
5 | file://panoramiXproto.h;endline=24;md5=098e0bc089368a988092b3cbda617a57" | ||
6 | |||
7 | PR = "r1" | ||
8 | PE = "1" | ||
diff --git a/meta/recipes-graphics/xorg-proto/xorg-proto-common.inc b/meta/recipes-graphics/xorg-proto/xorg-proto-common.inc new file mode 100644 index 0000000000..92aa1fe6d3 --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/xorg-proto-common.inc | |||
@@ -0,0 +1,20 @@ | |||
1 | DESCRIPTION = "X protocol headers: ${XORG_PN}" | ||
2 | HOMEPAGE = "http://www.x.org" | ||
3 | BUGTRACKER = "https://bugs.freedesktop.org/enter_bug.cgi?product=xorg" | ||
4 | |||
5 | SECTION = "x11/libs" | ||
6 | LICENSE = "MIT-X" | ||
7 | |||
8 | XORG_PN = "${BPN}" | ||
9 | |||
10 | SRC_URI = "${XORG_MIRROR}/individual/proto/${XORG_PN}-${PV}.tar.bz2" | ||
11 | |||
12 | S = "${WORKDIR}/${XORG_PN}-${PV}" | ||
13 | |||
14 | DEPENDS = "util-macros" | ||
15 | |||
16 | inherit autotools pkgconfig | ||
17 | |||
18 | # ${PN} is empty so we need to tweak -dev and -dbg package dependencies | ||
19 | RDEPENDS_${PN}-dev = "" | ||
20 | RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPV})" | ||
diff --git a/meta/recipes-graphics/xorg-proto/xproto_7.0.17.bb b/meta/recipes-graphics/xorg-proto/xproto_7.0.17.bb new file mode 100644 index 0000000000..c145b60b23 --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/xproto_7.0.17.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | LICENSE = "MIT & MIT-style" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=70c104816b85de375ba1fc09199d0e69" | ||
5 | |||
6 | PR = "r0" | ||
7 | PE = "1" | ||
8 | |||
9 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta/recipes-graphics/xorg-proto/xproxymanagementprotocol_1.0.3.bb b/meta/recipes-graphics/xorg-proto/xproxymanagementprotocol_1.0.3.bb new file mode 100644 index 0000000000..9c3d9efa71 --- /dev/null +++ b/meta/recipes-graphics/xorg-proto/xproxymanagementprotocol_1.0.3.bb | |||
@@ -0,0 +1,5 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | PROVIDES="xproxymngproto" | ||
4 | PR = "r1" | ||
5 | PE = "1" | ||
diff --git a/meta/recipes-graphics/xorg-util/gccmakedep_1.0.2.bb b/meta/recipes-graphics/xorg-util/gccmakedep_1.0.2.bb new file mode 100644 index 0000000000..b1035676ca --- /dev/null +++ b/meta/recipes-graphics/xorg-util/gccmakedep_1.0.2.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | require xorg-util-common.inc | ||
2 | |||
3 | DESCRIPTION = "create dependencies in makefiles using 'gcc -M'" | ||
4 | DEPENDS = "util-macros" | ||
5 | RDEPENDS = "gcc" | ||
6 | |||
7 | PR = "r2" | ||
8 | PE = "1" | ||
diff --git a/meta/recipes-graphics/xorg-util/imake_1.0.2.bb b/meta/recipes-graphics/xorg-util/imake_1.0.2.bb new file mode 100644 index 0000000000..e533ece461 --- /dev/null +++ b/meta/recipes-graphics/xorg-util/imake_1.0.2.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | require xorg-util-common.inc | ||
2 | |||
3 | DESCRIPTION = "C preprocessor interface to the make utility" | ||
4 | DEPENDS = "util-macros" | ||
5 | RDEPENDS = "perl xproto" | ||
6 | |||
7 | PR = "r1" | ||
8 | PE = "1" | ||
diff --git a/meta/recipes-graphics/xorg-util/lndir_1.0.1.bb b/meta/recipes-graphics/xorg-util/lndir_1.0.1.bb new file mode 100644 index 0000000000..b7bd0ad54a --- /dev/null +++ b/meta/recipes-graphics/xorg-util/lndir_1.0.1.bb | |||
@@ -0,0 +1,6 @@ | |||
1 | require xorg-util-common.inc | ||
2 | |||
3 | DESCRIPTION = "create a shadow directory of symbolic links to another directory tree" | ||
4 | DEPENDS += "xproto util-macros" | ||
5 | PR = "r1" | ||
6 | PE = "1" | ||
diff --git a/meta/recipes-graphics/xorg-util/makedepend_1.0.2.bb b/meta/recipes-graphics/xorg-util/makedepend_1.0.2.bb new file mode 100644 index 0000000000..7d6a5355a6 --- /dev/null +++ b/meta/recipes-graphics/xorg-util/makedepend_1.0.2.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | require xorg-util-common.inc | ||
2 | |||
3 | DESCRIPTION = "create dependencies in makefiles" | ||
4 | DEPENDS = "xproto util-macros" | ||
5 | PR = "r2" | ||
6 | PE = "1" | ||
7 | |||
8 | BBCLASSEXTEND = "native" | ||
diff --git a/meta/recipes-graphics/xorg-util/util-macros/xaw.patch b/meta/recipes-graphics/xorg-util/util-macros/xaw.patch new file mode 100644 index 0000000000..8b39869cc1 --- /dev/null +++ b/meta/recipes-graphics/xorg-util/util-macros/xaw.patch | |||
@@ -0,0 +1,14 @@ | |||
1 | Index: util-macros-1.2.1/xorg-macros.m4.in | ||
2 | =================================================================== | ||
3 | --- util-macros-1.2.1.orig/xorg-macros.m4.in 2009-01-15 13:49:56.000000000 +0000 | ||
4 | +++ util-macros-1.2.1/xorg-macros.m4.in 2009-01-15 13:52:22.000000000 +0000 | ||
5 | @@ -456,3 +456,9 @@ | ||
6 | fi | ||
7 | AC_SUBST(CWARNFLAGS) | ||
8 | ]) # XORG_CWARNFLAGS | ||
9 | + | ||
10 | +AC_DEFUN([XAW_CHECK_XPRINT_SUPPORT], [ | ||
11 | +PKG_CHECK_MODULES(TMP_XAW, xaw7) | ||
12 | +$1_CFLAGS=$TMP_XAW_CFLAGS | ||
13 | +$1_LIBS=$TMP_XAW_LIBS | ||
14 | +]) | ||
diff --git a/meta/recipes-graphics/xorg-util/util-macros_1.10.0.bb b/meta/recipes-graphics/xorg-util/util-macros_1.10.0.bb new file mode 100644 index 0000000000..d3bf613a63 --- /dev/null +++ b/meta/recipes-graphics/xorg-util/util-macros_1.10.0.bb | |||
@@ -0,0 +1,16 @@ | |||
1 | DESCRIPTION = "X autotools macros" | ||
2 | |||
3 | require xorg-util-common.inc | ||
4 | |||
5 | LICENSE = "MIT & MIT-style" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=b8b2965be9997891cf7ddccdfb242ca8" | ||
7 | |||
8 | PE = "1" | ||
9 | PR = "r0" | ||
10 | |||
11 | # ${PN} is empty so we need to tweak -dev and -dbg package dependencies | ||
12 | DEPENDS = "gettext" | ||
13 | RDEPENDS_${PN}-dev = "" | ||
14 | RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPV})" | ||
15 | |||
16 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta/recipes-graphics/xorg-util/xorg-cf-files_1.0.3.bb b/meta/recipes-graphics/xorg-util/xorg-cf-files_1.0.3.bb new file mode 100644 index 0000000000..7c3fb8d7e9 --- /dev/null +++ b/meta/recipes-graphics/xorg-util/xorg-cf-files_1.0.3.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | require xorg-util-common.inc | ||
2 | |||
3 | DESCRIPTION = "X Window System CF files" | ||
4 | |||
5 | PR = "r1" | ||
6 | PE = "1" | ||
7 | |||
8 | FILES_${PN} += " /usr/lib/X11/config" | ||
diff --git a/meta/recipes-graphics/xorg-util/xorg-util-common.inc b/meta/recipes-graphics/xorg-util/xorg-util-common.inc new file mode 100644 index 0000000000..18d022c49f --- /dev/null +++ b/meta/recipes-graphics/xorg-util/xorg-util-common.inc | |||
@@ -0,0 +1,13 @@ | |||
1 | HOMEPAGE = "http://www.x.org" | ||
2 | BUGTRACKER = "https://bugs.freedesktop.org/enter_bug.cgi?product=xorg" | ||
3 | |||
4 | SECTION = "x11/utils" | ||
5 | LICENSE = "MIT-X" | ||
6 | |||
7 | XORG_PN = "${BPN}" | ||
8 | |||
9 | SRC_URI = "${XORG_MIRROR}/individual/util/${XORG_PN}-${PV}.tar.gz" | ||
10 | |||
11 | S = "${WORKDIR}/${XORG_PN}-${PV}" | ||
12 | |||
13 | inherit autotools pkgconfig | ||
diff --git a/meta/recipes-graphics/xorg-xserver/files/macro_tweak.patch b/meta/recipes-graphics/xorg-xserver/files/macro_tweak.patch new file mode 100644 index 0000000000..6998adffe9 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/files/macro_tweak.patch | |||
@@ -0,0 +1,18 @@ | |||
1 | Index: xorg-server-1.5.0/xorg-server.m4 | ||
2 | =================================================================== | ||
3 | --- xorg-server-1.5.0.orig/xorg-server.m4 2007-05-29 20:36:51.000000000 +0100 | ||
4 | +++ xorg-server-1.5.0/xorg-server.m4 2008-11-04 23:56:55.000000000 +0000 | ||
5 | @@ -28,9 +28,12 @@ | ||
6 | # Checks for the $1 define in xorg-server.h (from the sdk). If it | ||
7 | # is defined, then add $1 to $REQUIRED_MODULES. | ||
8 | |||
9 | +m4_pattern_allow(PKG_CONFIG_SYSROOT_DIR) | ||
10 | + | ||
11 | AC_DEFUN([XORG_DRIVER_CHECK_EXT],[ | ||
12 | + PKG_PROG_PKG_CONFIG | ||
13 | SAVE_CFLAGS="$CFLAGS" | ||
14 | - CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" | ||
15 | + CFLAGS="$CFLAGS -I$PKG_CONFIG_SYSROOT_DIR`pkg-config --variable=sdkdir xorg-server`" | ||
16 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | ||
17 | #include "xorg-server.h" | ||
18 | #if !defined $1 | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/enable-builtin-fonts.patch b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/enable-builtin-fonts.patch new file mode 100644 index 0000000000..13a6c2c954 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/enable-builtin-fonts.patch | |||
@@ -0,0 +1,12 @@ | |||
1 | --- xorg-server-X11R7.1-1.1.0/dix/dixfonts.c.orig 2006-06-08 14:49:12.158684250 +0200 | ||
2 | +++ xorg-server-X11R7.1-1.1.0/dix/dixfonts.c 2006-06-08 14:49:52.493205000 +0200 | ||
3 | @@ -52,8 +52,8 @@ | ||
4 | /* $Xorg: dixfonts.c,v 1.4 2000/08/17 19:48:18 cpqbld Exp $ */ | ||
5 | |||
6 | #define NEED_REPLIES | ||
7 | #ifdef HAVE_DIX_CONFIG_H | ||
8 | -#include <dix-config.h> | ||
9 | +#include <kdrive-config.h> | ||
10 | #endif | ||
11 | |||
12 | #include <X11/X.h> | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/enable-epson.patch b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/enable-epson.patch new file mode 100644 index 0000000000..8ec3a37c78 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/enable-epson.patch | |||
@@ -0,0 +1,11 @@ | |||
1 | Index: xorg-server-1.2.0/hw/kdrive/Makefile.am | ||
2 | =================================================================== | ||
3 | --- xorg-server-1.2.0.orig/hw/kdrive/Makefile.am 2007-03-28 17:11:38.000000000 +0200 | ||
4 | +++ xorg-server-1.2.0/hw/kdrive/Makefile.am 2007-03-28 17:12:28.000000000 +0200 | ||
5 | @@ -1,5 +1,5 @@ | ||
6 | if KDRIVEFBDEV | ||
7 | -FBDEV_SUBDIRS = fbdev | ||
8 | +FBDEV_SUBDIRS = fbdev epson | ||
9 | endif | ||
10 | |||
11 | if KDRIVEIMAGEON | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/enable-tslib.patch b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/enable-tslib.patch new file mode 100644 index 0000000000..9a59530ed3 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/enable-tslib.patch | |||
@@ -0,0 +1,12 @@ | |||
1 | Index: xorg-server-1.2.0/configure.ac | ||
2 | =================================================================== | ||
3 | --- xorg-server-1.2.0.orig/configure.ac 2007-03-29 13:28:10.000000000 +0200 | ||
4 | +++ xorg-server-1.2.0/configure.ac 2007-03-29 13:28:35.000000000 +0200 | ||
5 | @@ -1517,6 +1517,7 @@ | ||
6 | AC_MSG_ERROR([tslib must be installed to build the tslib driver. See http://tslib.berlios.de/]) | ||
7 | fi | ||
8 | AC_DEFINE(TSLIB, 1, [Have tslib support]) | ||
9 | + AC_DEFINE(TOUCHSCREEN, 1, [Have touchscreen support]) | ||
10 | fi | ||
11 | |||
12 | # damage shadow extension glx (NOTYET) fb mi | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/enable-xcalibrate.patch b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/enable-xcalibrate.patch new file mode 100644 index 0000000000..5a971002cd --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/enable-xcalibrate.patch | |||
@@ -0,0 +1,110 @@ | |||
1 | --- | ||
2 | Xext/Makefile.am | 6 ++++++ | ||
3 | configure.ac | 11 +++++++++-- | ||
4 | include/kdrive-config.h.in | 3 +++ | ||
5 | mi/miinitext.c | 6 ++++++ | ||
6 | 4 files changed, 24 insertions(+), 2 deletions(-) | ||
7 | |||
8 | Index: xorg-server-1.3.0.0/mi/miinitext.c | ||
9 | =================================================================== | ||
10 | --- xorg-server-1.3.0.0.orig/mi/miinitext.c 2006-11-16 18:01:26.000000000 +0000 | ||
11 | +++ xorg-server-1.3.0.0/mi/miinitext.c 2008-01-11 13:45:57.000000000 +0000 | ||
12 | @@ -372,6 +372,9 @@ extern void ResExtensionInit(INITARGS); | ||
13 | #ifdef DMXEXT | ||
14 | extern void DMXExtensionInit(INITARGS); | ||
15 | #endif | ||
16 | +#ifdef XCALIBRATE | ||
17 | +extern void XCalibrateExtensionInit(INITARGS); | ||
18 | +#endif | ||
19 | #ifdef XEVIE | ||
20 | extern void XevieExtensionInit(INITARGS); | ||
21 | #endif | ||
22 | @@ -663,6 +666,9 @@ InitExtensions(argc, argv) | ||
23 | #ifdef DAMAGE | ||
24 | if (!noDamageExtension) DamageExtensionInit(); | ||
25 | #endif | ||
26 | +#ifdef XCALIBRATE | ||
27 | + XCalibrateExtensionInit (); | ||
28 | +#endif | ||
29 | } | ||
30 | |||
31 | void | ||
32 | Index: xorg-server-1.3.0.0/configure.ac | ||
33 | =================================================================== | ||
34 | --- xorg-server-1.3.0.0.orig/configure.ac 2008-01-11 13:45:57.000000000 +0000 | ||
35 | +++ xorg-server-1.3.0.0/configure.ac 2008-01-11 13:45:58.000000000 +0000 | ||
36 | @@ -421,6 +421,7 @@ AC_ARG_ENABLE(xf86vidmode, AS_HELP_ST | ||
37 | AC_ARG_ENABLE(xf86misc, AS_HELP_STRING([--disable-xf86misc], [Build XF86Misc extension (default: enabled)]), [XF86MISC=$enableval], [XF86MISC=yes]) | ||
38 | AC_ARG_ENABLE(xace, AS_HELP_STRING([--disable-xace], [Build X-ACE extension (default: enabled)]), [XACE=$enableval], [XACE=yes]) | ||
39 | AC_ARG_ENABLE(xcsecurity, AS_HELP_STRING([--disable-xcsecurity], [Build Security extension (default: enabled)]), [XCSECURITY=$enableval], [XCSECURITY=$XACE]) | ||
40 | +AC_ARG_ENABLE(xcalibrate, AS_HELP_STRING([--enable-xcalibrate], [Build XCalibrate extension (default: disabled)]), [XCALIBRATE=$enableval], [XCALIBRATE=no]) | ||
41 | AC_ARG_ENABLE(appgroup, AS_HELP_STRING([--disable-appgroup], [Build XC-APPGROUP extension (default: enabled)]), [APPGROUP=$enableval], [APPGROUP=$XCSECURITY]) | ||
42 | AC_ARG_ENABLE(xcalibrate, AS_HELP_STRING([--enable-xcalibrate], [Build XCalibrate extension (default: disabled)]), [XCALIBRATE=$enableval], [XCALIBRATE=no]) | ||
43 | AC_ARG_ENABLE(tslib, AS_HELP_STRING([--enable-tslib], [Build kdrive tslib touchscreen support (default: disabled)]), [TSLIB=$enableval], [TSLIB=no]) | ||
44 | @@ -653,6 +654,12 @@ if test "x$XCSECURITY" = xyes; then | ||
45 | AC_DEFINE(XCSECURITY, 1, [Build Security extension]) | ||
46 | fi | ||
47 | |||
48 | +AM_CONDITIONAL(XCALIBRATE, [test "x$XCALIBRATE" = xyes]) | ||
49 | +if test "x$XCALIBRATE" = xyes; then | ||
50 | + AC_DEFINE(XCALIBRATE, 1, [Build XCalibrate extension]) | ||
51 | + REQUIRED_MODULES="$REQUIRED_MODULES xcalibrateproto" | ||
52 | +fi | ||
53 | + | ||
54 | AM_CONDITIONAL(XEVIE, [test "x$XEVIE" = xyes]) | ||
55 | if test "x$XEVIE" = xyes; then | ||
56 | AC_DEFINE(XEVIE, 1, [Build XEvIE extension]) | ||
57 | @@ -1519,7 +1526,7 @@ if test "$KDRIVE" = yes; then | ||
58 | |||
59 | # tslib... | ||
60 | if test "x$TSLIB" = xyes; then | ||
61 | - PKG_CHECK_MODULES([TSLIB], [tslib-0.0], [HAVE_TSLIB="yes"], [HAVE_TSLIB="no"]) | ||
62 | + PKG_CHECK_MODULES([TSLIB], [tslib-1.0], [HAVE_TSLIB="yes"], [HAVE_TSLIB="no"]) | ||
63 | if test "x$HAVE_TSLIB" = xno; then | ||
64 | AC_MSG_ERROR([tslib must be installed to build the tslib driver. See http://tslib.berlios.de/]) | ||
65 | fi | ||
66 | @@ -1547,7 +1554,7 @@ if test "$KDRIVE" = yes; then | ||
67 | ;; | ||
68 | esac | ||
69 | KDRIVE_STUB_LIB='$(top_builddir)/hw/kdrive/src/libkdrivestubs.a' | ||
70 | - KDRIVE_LIBS="$DIX_LIB $KDRIVE_LIB $KDRIVE_OS_LIB $KDRIVE_PURE_LIBS $KDRIVE_STUB_LIB $TSLIB_LIBS" | ||
71 | + KDRIVE_LIBS="$DIX_LIB $KDRIVE_LIB $KDRIVE_PURE_LIBS $KDRIVE_OS_LIB $KDRIVE_STUB_LIB $TSLIB_LIBS" | ||
72 | |||
73 | # check if we can build Xephyr | ||
74 | PKG_CHECK_MODULES(XEPHYR, x11 xext xfont xau xdmcp, [xephyr="yes"], [xephyr="no"]) | ||
75 | Index: xorg-server-1.3.0.0/include/kdrive-config.h.in | ||
76 | =================================================================== | ||
77 | --- xorg-server-1.3.0.0.orig/include/kdrive-config.h.in 2006-11-16 18:01:26.000000000 +0000 | ||
78 | +++ xorg-server-1.3.0.0/include/kdrive-config.h.in 2008-01-11 13:45:57.000000000 +0000 | ||
79 | @@ -25,4 +25,7 @@ | ||
80 | /* Verbose debugging output hilarity */ | ||
81 | #undef DEBUG | ||
82 | |||
83 | +/* Enable XCalibrate extension */ | ||
84 | +#undef XCALIBRATE | ||
85 | + | ||
86 | #endif /* _KDRIVE_CONFIG_H_ */ | ||
87 | Index: xorg-server-1.3.0.0/Xext/Makefile.am | ||
88 | =================================================================== | ||
89 | --- xorg-server-1.3.0.0.orig/Xext/Makefile.am 2006-10-25 01:25:19.000000000 +0100 | ||
90 | +++ xorg-server-1.3.0.0/Xext/Makefile.am 2008-01-11 13:45:57.000000000 +0000 | ||
91 | @@ -91,6 +91,11 @@ BUILTIN_SRCS += $(XCALIBRATE_SRCS) | ||
92 | # XCalibrare needs tslib | ||
93 | endif | ||
94 | |||
95 | +XCALIBRATE_SRCS = xcalibrate.c | ||
96 | +if XCALIBRATE | ||
97 | +BUILTIN_SRCS += $(XCALIBRATE_SRCS) | ||
98 | +endif | ||
99 | + | ||
100 | # X EVent Interception Extension: allows accessibility helpers & composite | ||
101 | # managers to intercept events from input devices and transform as needed | ||
102 | # before the clients see them. | ||
103 | @@ -169,6 +174,7 @@ EXTRA_DIST = \ | ||
104 | $(XCSECURITY_SRCS) \ | ||
105 | $(XCALIBRATE_SRCS) \ | ||
106 | $(XINERAMA_SRCS) \ | ||
107 | + $(XCALIBRATE_SRCS) \ | ||
108 | $(XEVIE_SRCS) \ | ||
109 | $(XPRINT_SRCS) \ | ||
110 | $(APPGROUP_SRCS) \ | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/fbdev_use_current.patch b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/fbdev_use_current.patch new file mode 100644 index 0000000000..dc957cc825 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/fbdev_use_current.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | --- | ||
2 | hw/kdrive/fbdev/fbdev.c | 24 ++++++++++++++++-------- | ||
3 | 1 file changed, 16 insertions(+), 8 deletions(-) | ||
4 | |||
5 | Index: xorg-server-1.3.0.0/hw/kdrive/fbdev/fbdev.c | ||
6 | =================================================================== | ||
7 | --- xorg-server-1.3.0.0.orig/hw/kdrive/fbdev/fbdev.c 2008-01-11 14:40:16.000000000 +0000 | ||
8 | +++ xorg-server-1.3.0.0/hw/kdrive/fbdev/fbdev.c 2008-01-11 14:40:59.000000000 +0000 | ||
9 | @@ -182,16 +182,24 @@ fbdevScreenInitialize (KdScreenInfo *scr | ||
10 | screen->rate = 103; /* FIXME: should get proper value from fb driver */ | ||
11 | } | ||
12 | if (!screen->fb[0].depth) | ||
13 | - screen->fb[0].depth = 16; | ||
14 | + { | ||
15 | + if (k >= 0) | ||
16 | + screen->fb[0].depth = var.bits_per_pixel; | ||
17 | + else | ||
18 | + screen->fb[0].depth = 16; | ||
19 | + } | ||
20 | |||
21 | - t = KdFindMode (screen, fbdevModeSupported); | ||
22 | - screen->rate = t->rate; | ||
23 | - screen->width = t->horizontal; | ||
24 | - screen->height = t->vertical; | ||
25 | + if ((screen->width != var.xres) || (screen->height != var.yres)) | ||
26 | + { | ||
27 | + t = KdFindMode (screen, fbdevModeSupported); | ||
28 | + screen->rate = t->rate; | ||
29 | + screen->width = t->horizontal; | ||
30 | + screen->height = t->vertical; | ||
31 | |||
32 | - /* Now try setting the mode */ | ||
33 | - if (k < 0 || (t->horizontal != var.xres || t->vertical != var.yres)) | ||
34 | - fbdevConvertMonitorTiming (t, &var); | ||
35 | + /* Now try setting the mode */ | ||
36 | + if (k < 0 || (t->horizontal != var.xres || t->vertical != var.yres)) | ||
37 | + fbdevConvertMonitorTiming (t, &var); | ||
38 | + } | ||
39 | |||
40 | var.activate = FB_ACTIVATE_NOW; | ||
41 | var.bits_per_pixel = screen->fb[0].depth; | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/fix-newer-xorg-headers.patch b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/fix-newer-xorg-headers.patch new file mode 100644 index 0000000000..eb98fb82c7 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/fix-newer-xorg-headers.patch | |||
@@ -0,0 +1,18 @@ | |||
1 | --- | ||
2 | render/glyphstr.h | 1 + | ||
3 | 1 file changed, 1 insertion(+) | ||
4 | |||
5 | --- xorg-server-1.3.0.0.orig/render/glyphstr.h | ||
6 | +++ xorg-server-1.3.0.0/render/glyphstr.h | ||
7 | @@ -23,10 +23,11 @@ | ||
8 | */ | ||
9 | |||
10 | #ifndef _GLYPHSTR_H_ | ||
11 | #define _GLYPHSTR_H_ | ||
12 | |||
13 | +#include <X11/X.h> | ||
14 | #include <X11/extensions/renderproto.h> | ||
15 | #include "picture.h" | ||
16 | #include "screenint.h" | ||
17 | #include "regionstr.h" | ||
18 | #include "miscstruct.h" | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/hide-cursor-and-ppm-root.patch b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/hide-cursor-and-ppm-root.patch new file mode 100644 index 0000000000..c160cd41dc --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/hide-cursor-and-ppm-root.patch | |||
@@ -0,0 +1,307 @@ | |||
1 | diff -u -r xorg-server-X11R7.1-1.1.0.orig/dix/window.c xorg-server-X11R7.1-1.1.0/dix/window.c | ||
2 | --- xorg-server-X11R7.1-1.1.0.orig/dix/window.c 2007-01-08 14:30:38.000000000 +0000 | ||
3 | +++ xorg-server-X11R7.1-1.1.0/dix/window.c 2007-01-16 17:16:19.000000000 +0000 | ||
4 | @@ -185,6 +185,8 @@ | ||
5 | _X_EXPORT int numSaveUndersViewable = 0; | ||
6 | _X_EXPORT int deltaSaveUndersViewable = 0; | ||
7 | |||
8 | +char* RootPPM = NULL; | ||
9 | + | ||
10 | #ifdef DEBUG | ||
11 | /****** | ||
12 | * PrintWindowTree | ||
13 | @@ -311,6 +313,115 @@ | ||
14 | #endif | ||
15 | } | ||
16 | |||
17 | +static int | ||
18 | +get_int(FILE *fp) | ||
19 | +{ | ||
20 | + int c = 0; | ||
21 | + | ||
22 | + while ((c = getc(fp)) != EOF) | ||
23 | + { | ||
24 | + if (isspace(c)) | ||
25 | + continue; | ||
26 | + | ||
27 | + if (c == '#') | ||
28 | + while (c = getc(fp)) | ||
29 | + if (c == EOF) | ||
30 | + return 0; | ||
31 | + else if (c == '\n') | ||
32 | + break; | ||
33 | + | ||
34 | + if (isdigit(c)) | ||
35 | + { | ||
36 | + int val = c - '0'; | ||
37 | + while ((c = getc(fp)) && isdigit(c)) | ||
38 | + val = (val * 10) + (c - '0'); | ||
39 | + return val; | ||
40 | + } | ||
41 | + } | ||
42 | + | ||
43 | + return 0; | ||
44 | +} | ||
45 | + | ||
46 | +static unsigned char* | ||
47 | +ppm_load (const char* path, int depth, int *width, int *height) | ||
48 | +{ | ||
49 | + FILE *fp; | ||
50 | + int max, n = 0, w, h, i, j, bytes_per_line; | ||
51 | + unsigned char *data, *res, h1, h2; | ||
52 | + | ||
53 | + if (depth < 16 || depth > 32) | ||
54 | + return NULL; | ||
55 | + | ||
56 | + if (depth > 16) | ||
57 | + depth = 32; | ||
58 | + | ||
59 | + fp = fopen (path, "r"); | ||
60 | + if (fp == NULL) | ||
61 | + return FALSE; | ||
62 | + | ||
63 | + h1 = getc(fp); | ||
64 | + h2 = getc(fp); | ||
65 | + | ||
66 | + /* magic is 'P6' for raw ppm */ | ||
67 | + if (h1 != 'P' && h2 != '6') | ||
68 | + goto fail; | ||
69 | + | ||
70 | + w = get_int(fp); | ||
71 | + h = get_int(fp); | ||
72 | + | ||
73 | + if (w == 0 || h == 0) | ||
74 | + goto fail; | ||
75 | + | ||
76 | + max = get_int(fp); | ||
77 | + | ||
78 | + if (max != 255) | ||
79 | + goto fail; | ||
80 | + | ||
81 | + bytes_per_line = ((w * depth + 31) >> 5) << 2; | ||
82 | + | ||
83 | + res = data = malloc(bytes_per_line * h); | ||
84 | + | ||
85 | + for (i=0; i<h; i++) | ||
86 | + { | ||
87 | + for (j=0; j<w; j++) | ||
88 | + { | ||
89 | + unsigned char buf[3]; | ||
90 | + fread(buf, 1, 3, fp); | ||
91 | + | ||
92 | + switch (depth) | ||
93 | + { | ||
94 | + case 24: | ||
95 | + case 32: | ||
96 | + *data = buf[2]; | ||
97 | + *(data+1) = buf[1]; | ||
98 | + *(data+2) = buf[0]; | ||
99 | + data += 4; | ||
100 | + break; | ||
101 | + case 16: | ||
102 | + default: | ||
103 | + *(unsigned short*)data | ||
104 | + = ((buf[0] >> 3) << 11) | ((buf[1] >> 2) << 5) | (buf[2] >> 3); | ||
105 | + data += 2; | ||
106 | + break; | ||
107 | + } | ||
108 | + } | ||
109 | + data += (bytes_per_line - (w*(depth>>3))); | ||
110 | + } | ||
111 | + | ||
112 | + data = res; | ||
113 | + | ||
114 | + *width = w; | ||
115 | + *height = h; | ||
116 | + | ||
117 | + fclose(fp); | ||
118 | + | ||
119 | + return res; | ||
120 | + | ||
121 | + fail: | ||
122 | + fclose(fp); | ||
123 | + return NULL; | ||
124 | +} | ||
125 | + | ||
126 | static void | ||
127 | MakeRootTile(WindowPtr pWin) | ||
128 | { | ||
129 | @@ -321,6 +432,36 @@ | ||
130 | register unsigned char *from, *to; | ||
131 | register int i, j; | ||
132 | |||
133 | + if (RootPPM != NULL) | ||
134 | + { | ||
135 | + int w, h; | ||
136 | + unsigned char *data; | ||
137 | + | ||
138 | + if ((data = ppm_load (RootPPM, pScreen->rootDepth, &w, &h)) != NULL) | ||
139 | + { | ||
140 | + pWin->background.pixmap | ||
141 | + = (*pScreen->CreatePixmap)(pScreen, w, h, pScreen->rootDepth); | ||
142 | + | ||
143 | + pWin->backgroundState = BackgroundPixmap; | ||
144 | + pGC = GetScratchGC(pScreen->rootDepth, pScreen); | ||
145 | + if (!pWin->background.pixmap || !pGC) | ||
146 | + FatalError("could not create root tile"); | ||
147 | + | ||
148 | + ValidateGC((DrawablePtr)pWin->background.pixmap, pGC); | ||
149 | + | ||
150 | + (*pGC->ops->PutImage)((DrawablePtr)pWin->background.pixmap, | ||
151 | + pGC, | ||
152 | + pScreen->rootDepth, | ||
153 | + 0, 0, w, h, 0, ZPixmap, (char *)data); | ||
154 | + FreeScratchGC(pGC); | ||
155 | + | ||
156 | + free(data); | ||
157 | + return; | ||
158 | + } | ||
159 | + else | ||
160 | + ErrorF("Unable to load root window image."); | ||
161 | + } | ||
162 | + | ||
163 | pWin->background.pixmap = (*pScreen->CreatePixmap)(pScreen, 4, 4, | ||
164 | pScreen->rootDepth); | ||
165 | |||
166 | @@ -357,6 +498,7 @@ | ||
167 | |||
168 | } | ||
169 | |||
170 | + | ||
171 | WindowPtr | ||
172 | AllocateWindow(ScreenPtr pScreen) | ||
173 | { | ||
174 | diff -u -r xorg-server-X11R7.1-1.1.0.orig/hw/kdrive/src/kdrive.c xorg-server-X11R7.1-1.1.0/hw/kdrive/src/kdrive.c | ||
175 | --- xorg-server-X11R7.1-1.1.0.orig/hw/kdrive/src/kdrive.c 2007-01-08 14:30:38.000000000 +0000 | ||
176 | +++ xorg-server-X11R7.1-1.1.0/hw/kdrive/src/kdrive.c 2007-01-15 17:53:06.000000000 +0000 | ||
177 | @@ -58,6 +58,9 @@ | ||
178 | { 32, 32 } | ||
179 | }; | ||
180 | |||
181 | +int | ||
182 | +ProcXFixesHideCursor (ClientPtr client) ; | ||
183 | + | ||
184 | #define NUM_KD_DEPTHS (sizeof (kdDepths) / sizeof (kdDepths[0])) | ||
185 | |||
186 | int kdScreenPrivateIndex; | ||
187 | @@ -84,6 +87,9 @@ | ||
188 | KdOsFuncs *kdOsFuncs; | ||
189 | extern WindowPtr *WindowTable; | ||
190 | |||
191 | +extern Bool CursorInitiallyHidden; /* See Xfixes cursor.c */ | ||
192 | +extern char* RootPPM; /* dix/window.c */ | ||
193 | + | ||
194 | void | ||
195 | KdSetRootClip (ScreenPtr pScreen, BOOL enable) | ||
196 | { | ||
197 | @@ -312,6 +318,7 @@ | ||
198 | KdSetRootClip (pScreen, TRUE); | ||
199 | if (pScreenPriv->card->cfuncs->dpms) | ||
200 | (*pScreenPriv->card->cfuncs->dpms) (pScreen, pScreenPriv->dpmsState); | ||
201 | + | ||
202 | return TRUE; | ||
203 | } | ||
204 | |||
205 | @@ -686,10 +693,14 @@ | ||
206 | ErrorF("-mouse path[,n] Filename of mouse device, n is number of buttons\n"); | ||
207 | ErrorF("-switchCmd Command to execute on vt switch\n"); | ||
208 | ErrorF("-nozap Don't terminate server on Ctrl+Alt+Backspace\n"); | ||
209 | + ErrorF("-hide-cursor Start with cursor hidden\n"); | ||
210 | + ErrorF("-root-ppm [path] Specify ppm file to use as root window background.\n"); | ||
211 | ErrorF("vtxx Use virtual terminal xx instead of the next available\n"); | ||
212 | #ifdef PSEUDO8 | ||
213 | p8UseMsg (); | ||
214 | #endif | ||
215 | + | ||
216 | + | ||
217 | } | ||
218 | |||
219 | int | ||
220 | @@ -761,6 +772,19 @@ | ||
221 | kdSoftCursor = TRUE; | ||
222 | return 1; | ||
223 | } | ||
224 | + if (!strcmp (argv[i], "-hide-cursor")) | ||
225 | + { | ||
226 | + CursorInitiallyHidden = TRUE; | ||
227 | + return 1; | ||
228 | + } | ||
229 | + if (!strcmp (argv[i], "-root-ppm")) | ||
230 | + { | ||
231 | + if ((i+1) < argc) | ||
232 | + RootPPM = argv[i+1]; | ||
233 | + else | ||
234 | + UseMsg (); | ||
235 | + return 2; | ||
236 | + } | ||
237 | if (!strcmp (argv[i], "-videoTest")) | ||
238 | { | ||
239 | kdVideoTest = TRUE; | ||
240 | diff -u -r xorg-server-X11R7.1-1.1.0.orig/xfixes/cursor.c xorg-server-X11R7.1-1.1.0/xfixes/cursor.c | ||
241 | --- xorg-server-X11R7.1-1.1.0.orig/xfixes/cursor.c 2007-01-08 14:30:38.000000000 +0000 | ||
242 | +++ xorg-server-X11R7.1-1.1.0/xfixes/cursor.c 2007-01-11 16:33:00.000000000 +0000 | ||
243 | @@ -59,9 +59,12 @@ | ||
244 | static RESTYPE CursorWindowType; | ||
245 | static int CursorScreenPrivateIndex = -1; | ||
246 | static int CursorGeneration; | ||
247 | +static Bool CursorGloballyHidden; | ||
248 | static CursorPtr CursorCurrent; | ||
249 | static CursorPtr pInvisibleCursor = NULL; | ||
250 | |||
251 | +Bool CursorInitiallyHidden = FALSE; | ||
252 | + | ||
253 | static void deleteCursorHideCountsForScreen (ScreenPtr pScreen); | ||
254 | |||
255 | #define VERIFY_CURSOR(pCursor, cursor, client, access) { \ | ||
256 | @@ -130,7 +133,7 @@ | ||
257 | |||
258 | Unwrap (cs, pScreen, DisplayCursor); | ||
259 | |||
260 | - if (cs->pCursorHideCounts != NULL) { | ||
261 | + if (cs->pCursorHideCounts != NULL || CursorGloballyHidden) { | ||
262 | ret = (*pScreen->DisplayCursor) (pScreen, pInvisibleCursor); | ||
263 | } else { | ||
264 | ret = (*pScreen->DisplayCursor) (pScreen, pCursor); | ||
265 | @@ -848,6 +851,12 @@ | ||
266 | return BadWindow; | ||
267 | } | ||
268 | |||
269 | + /* Is cursor set to be initially hidden ?, if so reset this | ||
270 | + * flag as now visibility assumed under control of client. | ||
271 | + */ | ||
272 | + if (CursorGloballyHidden) | ||
273 | + CursorGloballyHidden = FALSE; | ||
274 | + | ||
275 | /* | ||
276 | * Has client hidden the cursor before on this screen? | ||
277 | * If so, just increment the count. | ||
278 | @@ -899,9 +908,19 @@ | ||
279 | return BadWindow; | ||
280 | } | ||
281 | |||
282 | + /* X was started with cursor hidden, therefore just reset our flag | ||
283 | + * (returning to normal client control) and cause cursor to now be | ||
284 | + * shown. | ||
285 | + */ | ||
286 | + if (CursorGloballyHidden == TRUE) | ||
287 | + { | ||
288 | + CursorGloballyHidden = FALSE; | ||
289 | + return (client->noClientException); | ||
290 | + } | ||
291 | + | ||
292 | /* | ||
293 | * Has client hidden the cursor on this screen? | ||
294 | - * If not, generate an error. | ||
295 | + * If so, generate an error. | ||
296 | */ | ||
297 | pChc = findCursorHideCount(client, pWin->drawable.pScreen); | ||
298 | if (pChc == NULL) { | ||
299 | @@ -1009,6 +1028,8 @@ | ||
300 | XFixesCursorInit (void) | ||
301 | { | ||
302 | int i; | ||
303 | + | ||
304 | + CursorGloballyHidden = CursorInitiallyHidden; | ||
305 | |||
306 | if (CursorGeneration != serverGeneration) | ||
307 | { | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/kdrive-evdev.patch b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/kdrive-evdev.patch new file mode 100644 index 0000000000..2dc22bf50e --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/kdrive-evdev.patch | |||
@@ -0,0 +1,515 @@ | |||
1 | # Kdrive evdev support patch, posted by Ander Conselvan de Oliveira at | ||
2 | # http://lists.freedesktop.org/archives/xorg/2005-December/011635.html | ||
3 | diff -u -r --exclude=CVS --exclude=Makefile --exclude='*.o' --exclude=ephyr --exclude='*.Po' xserver.original/hw/kdrive/linux/evdev.c xserver/hw/kdrive/linux/evdev.c | ||
4 | --- xserver.original/hw/kdrive/linux/evdev.c 2005-12-16 10:36:05.000000000 -0200 | ||
5 | +++ xserver/hw/kdrive/linux/evdev.c 2005-12-16 10:40:51.077410192 -0200 | ||
6 | @@ -31,9 +31,11 @@ | ||
7 | #include <X11/X.h> | ||
8 | #include <X11/Xproto.h> | ||
9 | #include <X11/Xpoll.h> | ||
10 | +#include <X11/keysym.h> | ||
11 | #include "inputstr.h" | ||
12 | #include "scrnintstr.h" | ||
13 | #include "kdrive.h" | ||
14 | +#include "kkeymap.h" | ||
15 | |||
16 | #define NUM_EVENTS 128 | ||
17 | #define ABS_UNSET -65535 | ||
18 | @@ -105,9 +107,10 @@ | ||
19 | { | ||
20 | KdMouseInfo *mi = closure; | ||
21 | Kevdev *ke = mi->driver; | ||
22 | - int i; | ||
23 | + int i, j; | ||
24 | struct input_event events[NUM_EVENTS]; | ||
25 | int n; | ||
26 | + int flags; | ||
27 | |||
28 | n = read (evdevPort, &events, NUM_EVENTS * sizeof (struct input_event)); | ||
29 | if (n <= 0) | ||
30 | @@ -115,22 +118,64 @@ | ||
31 | n /= sizeof (struct input_event); | ||
32 | for (i = 0; i < n; i++) | ||
33 | { | ||
34 | + flags = KD_MOUSE_DELTA | kdMouseInfo->buttonState; | ||
35 | switch (events[i].type) { | ||
36 | case EV_SYN: | ||
37 | break; | ||
38 | case EV_KEY: | ||
39 | - EvdevMotion (mi); | ||
40 | - ASSIGNBIT(ke->key,events[i].code, events[i].value); | ||
41 | - if (events[i].code < 0x100) | ||
42 | - ErrorF ("key %d %d\n", events[i].code, events[i].value); | ||
43 | - else | ||
44 | - ErrorF ("key 0x%x %d\n", events[i].code, events[i].value); | ||
45 | + if (events[i].code >= BTN_MOUSE && events[i].code < BTN_JOYSTICK) { | ||
46 | + switch (events[i].code) { | ||
47 | + case BTN_LEFT: | ||
48 | + if (events[i].value == 1) | ||
49 | + flags |= KD_BUTTON_1; | ||
50 | + else | ||
51 | + flags &= ~KD_BUTTON_1; | ||
52 | + break; | ||
53 | + case BTN_MIDDLE: | ||
54 | + if (events[i].value == 1) | ||
55 | + flags |= KD_BUTTON_2; | ||
56 | + else | ||
57 | + flags &= ~KD_BUTTON_2; | ||
58 | + break; | ||
59 | + case BTN_RIGHT: | ||
60 | + if (events[i].value == 1) | ||
61 | + flags |= KD_BUTTON_3; | ||
62 | + else | ||
63 | + flags &= ~KD_BUTTON_3; | ||
64 | + break; | ||
65 | + default: | ||
66 | + /* Unknow button */ | ||
67 | + break; | ||
68 | + } | ||
69 | + KdEnqueueMouseEvent (kdMouseInfo, flags, 0, 0); | ||
70 | + } | ||
71 | break; | ||
72 | case EV_REL: | ||
73 | - ke->rel[events[i].code] += events[i].value; | ||
74 | + if (events[i].code == REL_X) { | ||
75 | + KdEnqueueMouseEvent (kdMouseInfo, flags, events[i].value, 0); | ||
76 | + } | ||
77 | + else if (events[i].code == REL_Y) { | ||
78 | + KdEnqueueMouseEvent (kdMouseInfo, flags, 0, events[i].value); | ||
79 | + } | ||
80 | + else if (events[i].code == REL_WHEEL) { | ||
81 | + for (j = 0; j < abs (events[i].value); j++) { | ||
82 | + if (events[i].value > 0) | ||
83 | + flags |= KD_BUTTON_4; | ||
84 | + else | ||
85 | + flags |= KD_BUTTON_5; | ||
86 | + | ||
87 | + KdEnqueueMouseEvent (kdMouseInfo, flags, 0, 0); | ||
88 | + | ||
89 | + if (events[i].value > 0) | ||
90 | + flags &= ~KD_BUTTON_4; | ||
91 | + else | ||
92 | + flags &= ~KD_BUTTON_5; | ||
93 | + | ||
94 | + KdEnqueueMouseEvent (kdMouseInfo, flags, 0, 0); | ||
95 | + } /* events[i].code == REL_WHEEL */ | ||
96 | + } | ||
97 | break; | ||
98 | case EV_ABS: | ||
99 | - ke->abs[events[i].code] = events[i].value; | ||
100 | break; | ||
101 | } | ||
102 | } | ||
103 | @@ -173,6 +218,12 @@ | ||
104 | fd = open (kdefaultEvdev[i], 2); | ||
105 | if (fd >= 0) | ||
106 | { | ||
107 | + if (ioctl (fd, EVIOCGRAB, 1) < 0) | ||
108 | + { | ||
109 | + close (fd); | ||
110 | + continue; | ||
111 | + } | ||
112 | + | ||
113 | mi->name = KdSaveString (kdefaultEvdev[i]); | ||
114 | break; | ||
115 | } | ||
116 | @@ -287,7 +338,319 @@ | ||
117 | EvdevFini, | ||
118 | }; | ||
119 | |||
120 | -#if 0 | ||
121 | +/* Keyboard */ | ||
122 | + | ||
123 | +int kbd_fd = -1; | ||
124 | +int EvdevInputType = 0; | ||
125 | + | ||
126 | +KeySym evdevKeymap[(194 - 1 + 1) * 2] = { | ||
127 | +/* These are directly mapped from DOS scanset 0 */ | ||
128 | +/* 1 8 */ XK_Escape, NoSymbol, | ||
129 | +/* 2 9 */ XK_1, XK_exclam, | ||
130 | +/* 3 10 */ XK_2, XK_at, | ||
131 | +/* 4 11 */ XK_3, XK_numbersign, | ||
132 | +/* 5 12 */ XK_4, XK_dollar, | ||
133 | +/* 6 13 */ XK_5, XK_percent, | ||
134 | +/* 7 14 */ XK_6, XK_asciicircum, | ||
135 | +/* 8 15 */ XK_7, XK_ampersand, | ||
136 | +/* 9 16 */ XK_8, XK_asterisk, | ||
137 | +/* 10 17 */ XK_9, XK_parenleft, | ||
138 | +/* 11 18 */ XK_0, XK_parenright, | ||
139 | +/* 12 19 */ XK_minus, XK_underscore, | ||
140 | +/* 13 20 */ XK_equal, XK_plus, | ||
141 | +/* 14 21 */ XK_BackSpace, NoSymbol, | ||
142 | +/* 15 22 */ XK_Tab, NoSymbol, | ||
143 | +/* 16 23 */ XK_Q, NoSymbol, | ||
144 | +/* 17 24 */ XK_W, NoSymbol, | ||
145 | +/* 18 25 */ XK_E, NoSymbol, | ||
146 | +/* 19 26 */ XK_R, NoSymbol, | ||
147 | +/* 20 27 */ XK_T, NoSymbol, | ||
148 | +/* 21 28 */ XK_Y, NoSymbol, | ||
149 | +/* 22 29 */ XK_U, NoSymbol, | ||
150 | +/* 23 30 */ XK_I, NoSymbol, | ||
151 | +/* 24 31 */ XK_O, NoSymbol, | ||
152 | +/* 25 32 */ XK_P, NoSymbol, | ||
153 | +/* 26 33 */ XK_bracketleft, XK_braceleft, | ||
154 | +/* 27 34 */ XK_bracketright, XK_braceright, | ||
155 | +/* 28 35 */ XK_Return, NoSymbol, | ||
156 | +/* 29 36 */ XK_Control_L, NoSymbol, | ||
157 | +/* 30 37 */ XK_A, NoSymbol, | ||
158 | +/* 31 38 */ XK_S, NoSymbol, | ||
159 | +/* 32 39 */ XK_D, NoSymbol, | ||
160 | +/* 33 40 */ XK_F, NoSymbol, | ||
161 | +/* 34 41 */ XK_G, NoSymbol, | ||
162 | +/* 35 42 */ XK_H, NoSymbol, | ||
163 | +/* 36 43 */ XK_J, NoSymbol, | ||
164 | +/* 37 44 */ XK_K, NoSymbol, | ||
165 | +/* 38 45 */ XK_L, NoSymbol, | ||
166 | +/* 39 46 */ XK_semicolon, XK_colon, | ||
167 | +/* 40 47 */ XK_apostrophe, XK_quotedbl, | ||
168 | +/* 41 48 */ XK_grave, XK_asciitilde, | ||
169 | +/* 42 49 */ XK_Shift_L, NoSymbol, | ||
170 | +/* 43 50 */ XK_backslash, XK_bar, | ||
171 | +/* 44 51 */ XK_Z, NoSymbol, | ||
172 | +/* 45 52 */ XK_X, NoSymbol, | ||
173 | +/* 46 53 */ XK_C, NoSymbol, | ||
174 | +/* 47 54 */ XK_V, NoSymbol, | ||
175 | +/* 48 55 */ XK_B, NoSymbol, | ||
176 | +/* 49 56 */ XK_N, NoSymbol, | ||
177 | +/* 50 57 */ XK_M, NoSymbol, | ||
178 | +/* 51 58 */ XK_comma, XK_less, | ||
179 | +/* 52 59 */ XK_period, XK_greater, | ||
180 | +/* 53 60 */ XK_slash, XK_question, | ||
181 | +/* 54 61 */ XK_Shift_R, NoSymbol, | ||
182 | +/* 55 62 */ XK_KP_Multiply, NoSymbol, | ||
183 | +/* 56 63 */ XK_Alt_L, XK_Meta_L, | ||
184 | +/* 57 64 */ XK_space, NoSymbol, | ||
185 | +/* 58 65 */ XK_Caps_Lock, NoSymbol, | ||
186 | +/* 59 66 */ XK_F1, NoSymbol, | ||
187 | +/* 60 67 */ XK_F2, NoSymbol, | ||
188 | +/* 61 68 */ XK_F3, NoSymbol, | ||
189 | +/* 62 69 */ XK_F4, NoSymbol, | ||
190 | +/* 63 70 */ XK_F5, NoSymbol, | ||
191 | +/* 64 71 */ XK_F6, NoSymbol, | ||
192 | +/* 65 72 */ XK_F7, NoSymbol, | ||
193 | +/* 66 73 */ XK_F8, NoSymbol, | ||
194 | +/* 67 74 */ XK_F9, NoSymbol, | ||
195 | +/* 68 75 */ XK_F10, NoSymbol, | ||
196 | +/* 69 76 */ XK_Break, XK_Pause, | ||
197 | +/* 70 77 */ XK_Scroll_Lock, NoSymbol, | ||
198 | +/* 71 78 */ XK_KP_Home, XK_KP_7, | ||
199 | +/* 72 79 */ XK_KP_Up, XK_KP_8, | ||
200 | +/* 73 80 */ XK_KP_Page_Up, XK_KP_9, | ||
201 | +/* 74 81 */ XK_KP_Subtract, NoSymbol, | ||
202 | +/* 75 82 */ XK_KP_Left, XK_KP_4, | ||
203 | +/* 76 83 */ XK_KP_5, NoSymbol, | ||
204 | +/* 77 84 */ XK_KP_Right, XK_KP_6, | ||
205 | +/* 78 85 */ XK_KP_Add, NoSymbol, | ||
206 | +/* 79 86 */ XK_KP_End, XK_KP_1, | ||
207 | +/* 80 87 */ XK_KP_Down, XK_KP_2, | ||
208 | +/* 81 88 */ XK_KP_Page_Down, XK_KP_3, | ||
209 | +/* 82 89 */ XK_KP_Insert, XK_KP_0, | ||
210 | +/* 83 90 */ XK_KP_Delete, XK_KP_Decimal, | ||
211 | +/* 84 91 */ NoSymbol, NoSymbol, | ||
212 | +/* 85 92 */ NoSymbol, NoSymbol, | ||
213 | +/* 86 93 */ NoSymbol, NoSymbol, | ||
214 | +/* 87 94 */ XK_F11, NoSymbol, | ||
215 | +/* 88 95 */ XK_F12, NoSymbol, | ||
216 | + | ||
217 | +/* These are remapped from the extended set (using ExtendMap) */ | ||
218 | + | ||
219 | +/* 89 96 */ XK_Control_R, NoSymbol, | ||
220 | +/* 90 97 */ XK_KP_Enter, NoSymbol, | ||
221 | +/* 91 98 */ XK_KP_Divide, NoSymbol, | ||
222 | +/* 92 99 */ XK_Sys_Req, XK_Print, | ||
223 | +/* 93 100 */ XK_Alt_R, XK_Meta_R, | ||
224 | +/* 94 101 */ XK_Num_Lock, NoSymbol, | ||
225 | +/* 95 102 */ XK_Home, NoSymbol, | ||
226 | +/* 96 103 */ XK_Up, NoSymbol, | ||
227 | +/* 97 104 */ XK_Page_Up, NoSymbol, | ||
228 | +/* 98 105 */ XK_Left, NoSymbol, | ||
229 | +/* 99 106 */ XK_Right, NoSymbol, | ||
230 | +/* 100 107 */ XK_End, NoSymbol, | ||
231 | +/* 101 108 */ XK_Down, NoSymbol, | ||
232 | +/* 102 109 */ XK_Page_Down, NoSymbol, | ||
233 | +/* 103 110 */ XK_Insert, NoSymbol, | ||
234 | +/* 104 111 */ XK_Delete, NoSymbol, | ||
235 | +/* 105 112 */ XK_Super_L, NoSymbol, | ||
236 | +/* 106 113 */ XK_Super_R, NoSymbol, | ||
237 | +/* 107 114 */ XK_Menu, NoSymbol, | ||
238 | +/* 108 115 */ NoSymbol, NoSymbol, | ||
239 | +/* 109 116 */ NoSymbol, NoSymbol, | ||
240 | +/* 110 117 */ NoSymbol, NoSymbol, | ||
241 | +/* 111 118 */ NoSymbol, NoSymbol, | ||
242 | +/* 112 119 */ NoSymbol, NoSymbol, | ||
243 | + | ||
244 | +/* 113 120 */ NoSymbol, NoSymbol, | ||
245 | +/* 114 121 */ NoSymbol, NoSymbol, | ||
246 | +/* 115 122 */ NoSymbol, NoSymbol, | ||
247 | +/* 116 123 */ NoSymbol, NoSymbol, | ||
248 | +/* 117 124 */ NoSymbol, NoSymbol, | ||
249 | +/* 118 125 */ NoSymbol, NoSymbol, | ||
250 | +/* 119 126 */ NoSymbol, NoSymbol, | ||
251 | +/* 120 127 */ NoSymbol, NoSymbol, | ||
252 | +/* 121 128 */ NoSymbol, NoSymbol, | ||
253 | +/* 122 129 */ NoSymbol, NoSymbol, | ||
254 | +/* 123 130 */ NoSymbol, NoSymbol, | ||
255 | +/* 124 131 */ NoSymbol, NoSymbol, | ||
256 | +/* 125 132 */ NoSymbol, NoSymbol, | ||
257 | +/* 126 133 */ NoSymbol, NoSymbol, | ||
258 | +/* 127 134 */ NoSymbol, NoSymbol, | ||
259 | +/* 128 135 */ NoSymbol, NoSymbol, | ||
260 | +/* 129 136 */ NoSymbol, NoSymbol, | ||
261 | +/* 130 137 */ NoSymbol, NoSymbol, | ||
262 | +/* 131 138 */ NoSymbol, NoSymbol, | ||
263 | +/* 132 139 */ NoSymbol, NoSymbol, | ||
264 | +/* 133 140 */ NoSymbol, NoSymbol, | ||
265 | +/* 134 141 */ NoSymbol, NoSymbol, | ||
266 | +/* 135 142 */ NoSymbol, NoSymbol, | ||
267 | +/* 136 143 */ NoSymbol, NoSymbol, | ||
268 | +/* 137 144 */ NoSymbol, NoSymbol, | ||
269 | +/* 138 145 */ NoSymbol, NoSymbol, | ||
270 | +/* 139 146 */ NoSymbol, NoSymbol, | ||
271 | +/* 140 147 */ NoSymbol, NoSymbol, | ||
272 | +/* 141 148 */ NoSymbol, NoSymbol, | ||
273 | +/* 142 149 */ NoSymbol, NoSymbol, | ||
274 | +/* 143 150 */ NoSymbol, NoSymbol, | ||
275 | +/* 144 151 */ NoSymbol, NoSymbol, | ||
276 | +/* 145 152 */ NoSymbol, NoSymbol, | ||
277 | +/* 146 153 */ NoSymbol, NoSymbol, | ||
278 | +/* 147 154 */ NoSymbol, NoSymbol, | ||
279 | +/* 148 155 */ NoSymbol, NoSymbol, | ||
280 | +/* 149 156 */ NoSymbol, NoSymbol, | ||
281 | +/* 150 157 */ NoSymbol, NoSymbol, | ||
282 | +/* 151 158 */ NoSymbol, NoSymbol, | ||
283 | +/* 152 159 */ NoSymbol, NoSymbol, | ||
284 | +/* 153 160 */ NoSymbol, NoSymbol, | ||
285 | +/* 154 161 */ NoSymbol, NoSymbol, | ||
286 | +/* 155 162 */ NoSymbol, NoSymbol, | ||
287 | +/* 156 163 */ NoSymbol, NoSymbol, | ||
288 | +/* 157 164 */ NoSymbol, NoSymbol, | ||
289 | +/* 158 165 */ NoSymbol, NoSymbol, | ||
290 | +/* 159 166 */ NoSymbol, NoSymbol, | ||
291 | +/* 160 167 */ NoSymbol, NoSymbol, | ||
292 | +/* 161 168 */ NoSymbol, NoSymbol, | ||
293 | +/* 162 169 */ NoSymbol, NoSymbol, | ||
294 | +/* 163 170 */ NoSymbol, NoSymbol, | ||
295 | +/* 164 171 */ NoSymbol, NoSymbol, | ||
296 | +/* 165 172 */ NoSymbol, NoSymbol, | ||
297 | +/* 166 173 */ NoSymbol, NoSymbol, | ||
298 | +/* 167 174 */ NoSymbol, NoSymbol, | ||
299 | +/* 168 175 */ NoSymbol, NoSymbol, | ||
300 | +/* 169 176 */ NoSymbol, NoSymbol, | ||
301 | +/* 170 177 */ NoSymbol, NoSymbol, | ||
302 | +/* 171 178 */ NoSymbol, NoSymbol, | ||
303 | +/* 172 179 */ NoSymbol, NoSymbol, | ||
304 | +/* 173 180 */ NoSymbol, NoSymbol, | ||
305 | +/* 174 181 */ NoSymbol, NoSymbol, | ||
306 | +/* 175 182 */ NoSymbol, NoSymbol, | ||
307 | +/* 176 183 */ NoSymbol, NoSymbol, | ||
308 | +/* 177 184 */ NoSymbol, NoSymbol, | ||
309 | +/* 178 185 */ NoSymbol, NoSymbol, | ||
310 | +/* 179 186 */ NoSymbol, NoSymbol, | ||
311 | +/* 180 187 */ NoSymbol, NoSymbol, | ||
312 | +/* 181 188 */ NoSymbol, NoSymbol, | ||
313 | +/* 182 189 */ NoSymbol, NoSymbol, | ||
314 | +/* 183 190 */ NoSymbol, NoSymbol, | ||
315 | +/* 184 191 */ NoSymbol, NoSymbol, | ||
316 | +/* 185 192 */ NoSymbol, NoSymbol, | ||
317 | +/* 186 193 */ NoSymbol, NoSymbol, | ||
318 | +/* 187 194 */ NoSymbol, NoSymbol, | ||
319 | +/* 188 195 */ NoSymbol, NoSymbol, | ||
320 | +/* 189 196 */ NoSymbol, NoSymbol, | ||
321 | +/* 190 197 */ NoSymbol, NoSymbol, | ||
322 | +/* 191 198 */ NoSymbol, NoSymbol, | ||
323 | +/* 192 199 */ NoSymbol, NoSymbol, | ||
324 | +/* 193 200 */ NoSymbol, NoSymbol, | ||
325 | +/* 194 201 */ NoSymbol, NoSymbol, | ||
326 | +}; | ||
327 | + | ||
328 | +static void | ||
329 | +EvdevKbdRead (int fd, void *closure) | ||
330 | +{ | ||
331 | + int i, n; | ||
332 | + struct input_event events[NUM_EVENTS]; | ||
333 | + | ||
334 | + n = read (fd, &events, NUM_EVENTS * sizeof (struct input_event)); | ||
335 | + if (n <= 0) | ||
336 | + return; | ||
337 | + | ||
338 | + n /= sizeof (struct input_event); | ||
339 | + | ||
340 | + for (i = 0; i < n; i++) | ||
341 | + { | ||
342 | + if (events[i].type == EV_KEY) | ||
343 | + KdEnqueueKeyboardEvent (events[i].code, !events[i].value); | ||
344 | + } | ||
345 | +} | ||
346 | + | ||
347 | +static void | ||
348 | +EvdevKbdLoad (void) | ||
349 | +{ | ||
350 | + kdMinScanCode = 0; | ||
351 | + kdMaxScanCode = 193; | ||
352 | + kdKeymapWidth = 2; | ||
353 | + memcpy (kdKeymap, evdevKeymap, sizeof (evdevKeymap)); | ||
354 | +} | ||
355 | + | ||
356 | +static int | ||
357 | +EvdevKbdInit (void) | ||
358 | +{ | ||
359 | + int fd, i; | ||
360 | + | ||
361 | + if (!EvdevInputType) | ||
362 | + EvdevInputType = KdAllocInputType (); | ||
363 | + | ||
364 | + if (!kdKeyboard) | ||
365 | + { | ||
366 | + for (i = 0; i < NUM_DEFAULT_EVDEV; i++) | ||
367 | + { | ||
368 | + fd = open (kdefaultEvdev[i], 2); | ||
369 | + if (fd >= 0) | ||
370 | + { | ||
371 | + kdKeyboard = KdSaveString (kdefaultEvdev[i]); | ||
372 | + break; | ||
373 | + } | ||
374 | + } | ||
375 | + } | ||
376 | + else | ||
377 | + { | ||
378 | + fd = open (kdKeyboard, O_RDWR); | ||
379 | + if (fd < 0) | ||
380 | + return FALSE; | ||
381 | + } | ||
382 | + | ||
383 | + if (ioctl (fd, EVIOCGRAB, 1) < 0) | ||
384 | + { | ||
385 | + close (fd); | ||
386 | + return FALSE; | ||
387 | + } | ||
388 | + | ||
389 | + if (!KdRegisterFd (EvdevInputType, fd, EvdevKbdRead, NULL)) | ||
390 | + return FALSE; | ||
391 | + | ||
392 | + kbd_fd = fd; | ||
393 | + return TRUE; | ||
394 | +} | ||
395 | + | ||
396 | +static void | ||
397 | +EvdevKbdFini (void) | ||
398 | +{ | ||
399 | +} | ||
400 | + | ||
401 | +static void | ||
402 | +EvdevKbdLeds (int leds) | ||
403 | +{ | ||
404 | + struct input_event event; | ||
405 | + | ||
406 | + memset(&event, 0, sizeof(event)); | ||
407 | + | ||
408 | + event.type = EV_LED; | ||
409 | + event.code = LED_CAPSL; | ||
410 | + event.value = leds & (1 << 0) ? 1 : 0; | ||
411 | + write(kbd_fd, (char *) &event, sizeof(event)); | ||
412 | + | ||
413 | + event.type = EV_LED; | ||
414 | + event.code = LED_NUML; | ||
415 | + event.value = leds & (1 << 1) ? 1 : 0; | ||
416 | + write(kbd_fd, (char *) &event, sizeof(event)); | ||
417 | + | ||
418 | + event.type = EV_LED; | ||
419 | + event.code = LED_SCROLLL; | ||
420 | + event.value = leds & (1 << 2) ? 1 : 0; | ||
421 | + write(kbd_fd, (char *) &event, sizeof(event)); | ||
422 | + | ||
423 | + event.type = EV_LED; | ||
424 | + event.code = LED_COMPOSE; | ||
425 | + event.value = leds & (1 << 3) ? 1 : 0; | ||
426 | + write(kbd_fd, (char *) &event, sizeof(event)); | ||
427 | +} | ||
428 | + | ||
429 | +static void | ||
430 | +EvdevKbdBell (int volume, int frequency, int duration) | ||
431 | +{ | ||
432 | +} | ||
433 | + | ||
434 | KdKeyboardFuncs LinuxEvdevKeyboardFuncs = { | ||
435 | EvdevKbdLoad, | ||
436 | EvdevKbdInit, | ||
437 | @@ -296,4 +659,4 @@ | ||
438 | EvdevKbdFini, | ||
439 | 0, | ||
440 | }; | ||
441 | -#endif | ||
442 | + | ||
443 | diff -u -r --exclude=CVS --exclude=Makefile --exclude='*.o' --exclude=ephyr --exclude='*.Po' xserver.original/hw/kdrive/src/kdrive.c xserver/hw/kdrive/src/kdrive.c | ||
444 | --- xserver.original/hw/kdrive/src/kdrive.c 2005-12-16 10:36:07.000000000 -0200 | ||
445 | +++ xserver/hw/kdrive/src/kdrive.c 2005-12-16 10:37:09.000000000 -0200 | ||
446 | @@ -73,6 +73,7 @@ | ||
447 | Bool kdEnabled; | ||
448 | int kdSubpixelOrder; | ||
449 | int kdVirtualTerminal = -1; | ||
450 | +char *kdKeyboard = 0; | ||
451 | Bool kdSwitchPending; | ||
452 | char *kdSwitchCmd; | ||
453 | DDXPointRec kdOrigin; | ||
454 | @@ -795,6 +796,14 @@ | ||
455 | UseMsg (); | ||
456 | return 2; | ||
457 | } | ||
458 | + if (!strcmp (argv[i], "-keyboard")) | ||
459 | + { | ||
460 | + if ((i+1) < argc) | ||
461 | + kdKeyboard = argv[i+1]; | ||
462 | + else | ||
463 | + UseMsg (); | ||
464 | + return 2; | ||
465 | + } | ||
466 | if (!strcmp (argv[i], "-rgba")) | ||
467 | { | ||
468 | if ((i+1) < argc) | ||
469 | diff -u -r --exclude=CVS --exclude=Makefile --exclude='*.o' --exclude=ephyr --exclude='*.Po' xserver.original/hw/kdrive/src/kdrive.h xserver/hw/kdrive/src/kdrive.h | ||
470 | --- xserver.original/hw/kdrive/src/kdrive.h 2005-12-16 10:36:07.000000000 -0200 | ||
471 | +++ xserver/hw/kdrive/src/kdrive.h 2005-12-16 10:37:09.000000000 -0200 | ||
472 | @@ -416,6 +416,7 @@ | ||
473 | extern Bool kdDisableZaphod; | ||
474 | extern Bool kdDontZap; | ||
475 | extern int kdVirtualTerminal; | ||
476 | +extern char *kdKeyboard; | ||
477 | extern char *kdSwitchCmd; | ||
478 | extern KdOsFuncs *kdOsFuncs; | ||
479 | |||
480 | @@ -769,7 +770,7 @@ | ||
481 | ProcessInputEvents (void); | ||
482 | |||
483 | extern KdMouseFuncs LinuxMouseFuncs; | ||
484 | -extern KdMouseFuncs LinuxEvdevFuncs; | ||
485 | +extern KdMouseFuncs LinuxEvdevMouseFuncs; | ||
486 | extern KdMouseFuncs Ps2MouseFuncs; | ||
487 | extern KdMouseFuncs BusMouseFuncs; | ||
488 | extern KdMouseFuncs MsMouseFuncs; | ||
489 | @@ -777,6 +778,7 @@ | ||
490 | extern KdMouseFuncs TsFuncs; | ||
491 | #endif | ||
492 | extern KdKeyboardFuncs LinuxKeyboardFuncs; | ||
493 | +extern KdKeyboardFuncs LinuxEvdevKeyboardFuncs; | ||
494 | extern KdOsFuncs LinuxFuncs; | ||
495 | |||
496 | extern KdMouseFuncs VxWorksMouseFuncs; | ||
497 | diff -u -r --exclude=CVS --exclude=Makefile --exclude='*.o' --exclude=ephyr --exclude='*.Po' xserver.original/hw/kdrive/src/kinput.c xserver/hw/kdrive/src/kinput.c | ||
498 | --- xserver.original/hw/kdrive/src/kinput.c 2005-12-16 10:36:07.000000000 -0200 | ||
499 | +++ xserver/hw/kdrive/src/kinput.c 2005-12-16 10:37:09.000000000 -0200 | ||
500 | @@ -1300,6 +1300,7 @@ | ||
501 | xE.u.u.type = KeyPress; | ||
502 | xE.u.u.detail = key_code; | ||
503 | |||
504 | +#ifndef XKB | ||
505 | switch (KEYCOL1(key_code)) | ||
506 | { | ||
507 | case XK_Num_Lock: | ||
508 | @@ -1313,6 +1314,7 @@ | ||
509 | else | ||
510 | xE.u.u.type = KeyPress; | ||
511 | } | ||
512 | +#endif | ||
513 | |||
514 | /* | ||
515 | * Check pressed keys which are already down | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/kdrive-use-evdev.patch b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/kdrive-use-evdev.patch new file mode 100644 index 0000000000..28d7325601 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/kdrive-use-evdev.patch | |||
@@ -0,0 +1,54 @@ | |||
1 | --- xserver/hw/kdrive/fbdev/fbinit.c~ 2006-01-31 17:09:33.000000000 +0100 | ||
2 | +++ xserver/hw/kdrive/fbdev/fbinit.c 2006-01-31 17:11:55.000000000 +0100 | ||
3 | @@ -28,6 +28,8 @@ | ||
4 | #endif | ||
5 | #include <fbdev.h> | ||
6 | |||
7 | +extern int use_evdev; | ||
8 | + | ||
9 | void | ||
10 | InitCard (char *name) | ||
11 | { | ||
12 | @@ -45,7 +47,10 @@ | ||
13 | void | ||
14 | InitInput (int argc, char **argv) | ||
15 | { | ||
16 | - KdInitInput (&LinuxMouseFuncs, &LinuxKeyboardFuncs); | ||
17 | + if (use_evdev) | ||
18 | + KdInitInput (&LinuxEvdevMouseFuncs, &LinuxEvdevKeyboardFuncs); | ||
19 | + else | ||
20 | + KdInitInput (&LinuxMouseFuncs, &LinuxKeyboardFuncs); | ||
21 | #ifdef TOUCHSCREEN | ||
22 | KdAddMouseDriver (&TsFuncs); | ||
23 | #endif | ||
24 | --- xserver/hw/kdrive/src/kdrive.c.orig 2006-01-31 17:13:28.000000000 +0100 | ||
25 | +++ xserver/hw/kdrive/src/kdrive.c 2006-01-31 17:15:28.000000000 +0100 | ||
26 | @@ -44,6 +44,8 @@ | ||
27 | #include "dpmsproc.h" | ||
28 | #endif | ||
29 | |||
30 | +int use_evdev = 0; | ||
31 | + | ||
32 | typedef struct _kdDepths { | ||
33 | CARD8 depth; | ||
34 | CARD8 bpp; | ||
35 | @@ -687,6 +689,7 @@ | ||
36 | ErrorF("-videoTest Start the server, pause momentarily and exit\n"); | ||
37 | ErrorF("-origin X,Y Locates the next screen in the the virtual screen (Xinerama)\n"); | ||
38 | ErrorF("-mouse path[,n] Filename of mouse device, n is number of buttons\n"); | ||
39 | + ErrorF("-use-evdev Use Linux evdev input\n"); | ||
40 | ErrorF("-switchCmd Command to execute on vt switch\n"); | ||
41 | ErrorF("-nozap Don't terminate server on Ctrl+Alt+Backspace\n"); | ||
42 | ErrorF("vtxx Use virtual terminal xx instead of the next available\n"); | ||
43 | @@ -796,6 +799,11 @@ | ||
44 | UseMsg (); | ||
45 | return 2; | ||
46 | } | ||
47 | + if (!strcmp (argv[i], "-use-evdev")) | ||
48 | + { | ||
49 | + use_evdev = 1; | ||
50 | + return 1; | ||
51 | + } | ||
52 | if (!strcmp (argv[i], "-keyboard")) | ||
53 | { | ||
54 | if ((i+1) < argc) | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/optional-xkb.patch b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/optional-xkb.patch new file mode 100644 index 0000000000..a580b500b7 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/optional-xkb.patch | |||
@@ -0,0 +1,58 @@ | |||
1 | Index: xorg-server-1.2.0/Makefile.am | ||
2 | =================================================================== | ||
3 | --- xorg-server-1.2.0.orig/Makefile.am 2007-01-23 06:39:15.000000000 +0100 | ||
4 | +++ xorg-server-1.2.0/Makefile.am 2007-03-28 20:26:19.000000000 +0200 | ||
5 | @@ -30,6 +30,10 @@ | ||
6 | XINPUT_DIR=Xi | ||
7 | endif | ||
8 | |||
9 | +if XKB | ||
10 | +XKB_DIR=xkb | ||
11 | +endif | ||
12 | + | ||
13 | if DBE | ||
14 | DBE_DIR=dbe | ||
15 | endif | ||
16 | @@ -46,7 +50,7 @@ | ||
17 | randr \ | ||
18 | render \ | ||
19 | $(XINPUT_DIR) \ | ||
20 | - xkb \ | ||
21 | + $(XKB_DIR) \ | ||
22 | $(DBE_DIR) \ | ||
23 | $(MFB_DIR) \ | ||
24 | $(AFB_DIR) \ | ||
25 | Index: xorg-server-1.2.0/configure.ac | ||
26 | =================================================================== | ||
27 | --- xorg-server-1.2.0.orig/configure.ac 2007-01-23 06:39:15.000000000 +0100 | ||
28 | +++ xorg-server-1.2.0/configure.ac 2007-03-28 20:27:13.000000000 +0200 | ||
29 | @@ -428,6 +428,7 @@ | ||
30 | AC_ARG_ENABLE(dpms, AS_HELP_STRING([--disable-dpms], [Build DPMS extension (default: enabled)]), [DPMSExtension=$enableval], [DPMSExtension=yes]) | ||
31 | AC_ARG_ENABLE(xinput, AS_HELP_STRING([--disable-xinput], [Build XInput Extension (default: enabled)]), [XINPUT=$enableval], [XINPUT=yes]) | ||
32 | AC_ARG_ENABLE(xfree86-utils, AS_HELP_STRING([--enable-xfree86-utils], [Build xfree86 DDX utilities (default: enabled)]), [XF86UTILS=$enableval], [XF86UTILS=yes]) | ||
33 | +AC_ARG_ENABLE(xkb, AS_HELP_STRING([--disable-xkb], [Build XKB (default: enabled)]), [XKB=$enableval], [XKB=yes]) | ||
34 | |||
35 | dnl DDXes. | ||
36 | AC_ARG_ENABLE(xorg, AS_HELP_STRING([--enable-xorg], [Build Xorg server (default: auto)]), [XORG=$enableval], [XORG=auto]) | ||
37 | @@ -754,12 +755,15 @@ | ||
38 | |||
39 | AC_DEFINE(SHAPE, 1, [Support SHAPE extension]) | ||
40 | |||
41 | -AC_DEFINE(XKB, 1, [Build XKB]) | ||
42 | -AC_DEFINE(XKB_IN_SERVER, 1, [Build XKB server]) | ||
43 | -AC_DEFINE(XKB_DFLT_DISABLED, 0, [Disable XKB per default]) | ||
44 | -REQUIRED_MODULES="$REQUIRED_MODULES xkbfile" | ||
45 | -XKB_LIB='$(top_builddir)/xkb/libxkb.la' | ||
46 | -XKB_STUB_LIB='$(top_builddir)/xkb/libxkbstubs.la' | ||
47 | +AM_CONDITIONAL(XKB, [test "x$XKB" = xyes]) | ||
48 | +if test "x$XKB" = xyes; then | ||
49 | + AC_DEFINE(XKB, 1, [Build XKB]) | ||
50 | + AC_DEFINE(XKB_IN_SERVER, 1, [Build XKB server]) | ||
51 | + AC_DEFINE(XKB_DFLT_DISABLED, 0, [Disable XKB per default]) | ||
52 | + REQUIRED_MODULES="$REQUIRED_MODULES xkbfile" | ||
53 | + XKB_LIB='$(top_builddir)/xkb/libxkb.la' | ||
54 | + XKB_STUB_LIB='$(top_builddir)/xkb/libxkbstubs.la' | ||
55 | +fi | ||
56 | |||
57 | AC_CHECK_FUNC(strcasecmp, [], AC_DEFINE([NEED_STRCASECMP], 1, | ||
58 | [Do not have `strcasecmp'.])) | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/report-correct-randr12.patch b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/report-correct-randr12.patch new file mode 100644 index 0000000000..72c8a18add --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/report-correct-randr12.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | Server reports XRandR version provided by libxrandr instead of XRandR | ||
2 | version implemented. It confuses applications that execute XRandR | ||
3 | version dependent code (e. g. gtk+ >= 2.18.0). | ||
4 | |||
5 | Index: xorg-server-1.3.0.0/randr/rrdispatch.c | ||
6 | =================================================================== | ||
7 | --- xorg-server-1.3.0.0.orig/randr/rrdispatch.c | ||
8 | +++ xorg-server-1.3.0.0/randr/rrdispatch.c | ||
9 | @@ -22,6 +22,9 @@ | ||
10 | |||
11 | #include "randrstr.h" | ||
12 | |||
13 | +#define SERVER_RANDR_MAJOR 1 | ||
14 | +#define SERVER_RANDR_MINOR 2 | ||
15 | + | ||
16 | Bool | ||
17 | RRClientKnowsRates (ClientPtr pClient) | ||
18 | { | ||
19 | @@ -49,8 +52,8 @@ ProcRRQueryVersion (ClientPtr client) | ||
20 | * Report the current version; the current | ||
21 | * spec says they're all compatible after 1.0 | ||
22 | */ | ||
23 | - rep.majorVersion = RANDR_MAJOR; | ||
24 | - rep.minorVersion = RANDR_MINOR; | ||
25 | + rep.majorVersion = SERVER_RANDR_MAJOR; | ||
26 | + rep.minorVersion = SERVER_RANDR_MINOR; | ||
27 | if (client->swapped) { | ||
28 | swaps(&rep.sequenceNumber, n); | ||
29 | swapl(&rep.length, n); | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/scheduler.patch b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/scheduler.patch new file mode 100644 index 0000000000..395bc7d511 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/scheduler.patch | |||
@@ -0,0 +1,151 @@ | |||
1 | >From 48e4d08e99de41047c6b6fde5ba9d12787881c23 Mon Sep 17 00:00:00 2001 | ||
2 | From: root <root@benny.jf.intel.com> | ||
3 | Date: Sun, 28 Oct 2007 09:37:52 +0100 | ||
4 | Subject: [PATCH] The smart scheduler itimer currently always fires after each request | ||
5 | (which in turn causes the CPU to wake out of idle, burning precious power). | ||
6 | Rather than doing this, just stop the timer before going into the select() | ||
7 | portion of the WaitFor loop. It's a cheap system call, and it will only get | ||
8 | called if there's no more commands batched up from the active fd. | ||
9 | |||
10 | This change also allows some of the functions to be simplified; setitimer() | ||
11 | will only fail if it's passed invalid data, and we don't do that... so make | ||
12 | it void and remove all the conditional code that deals with failure. | ||
13 | |||
14 | The change also allows us to remove a few variables that were used for | ||
15 | housekeeping between the signal handler and the main loop. | ||
16 | --- | ||
17 | include/dixstruct.h | 6 ++---- | ||
18 | os/WaitFor.c | 11 +++-------- | ||
19 | os/utils.c | 28 +++------------------------- | ||
20 | 3 files changed, 8 insertions(+), 37 deletions(-) | ||
21 | |||
22 | diff --git a/include/dixstruct.h b/include/dixstruct.h | ||
23 | index dd6347f..bed31dc 100644 | ||
24 | --- a/include/dixstruct.h | ||
25 | +++ b/include/dixstruct.h | ||
26 | @@ -150,11 +150,9 @@ extern long SmartScheduleTime; | ||
27 | extern long SmartScheduleInterval; | ||
28 | extern long SmartScheduleSlice; | ||
29 | extern long SmartScheduleMaxSlice; | ||
30 | -extern unsigned long SmartScheduleIdleCount; | ||
31 | extern Bool SmartScheduleDisable; | ||
32 | -extern Bool SmartScheduleIdle; | ||
33 | -extern Bool SmartScheduleTimerStopped; | ||
34 | -extern Bool SmartScheduleStartTimer(void); | ||
35 | +extern void SmartScheduleStartTimer(void); | ||
36 | +extern void SmartScheduleStopTimer(void); | ||
37 | #define SMART_MAX_PRIORITY (20) | ||
38 | #define SMART_MIN_PRIORITY (-20) | ||
39 | |||
40 | diff --git a/os/WaitFor.c b/os/WaitFor.c | ||
41 | index ec1592c..7683477 100644 | ||
42 | --- a/os/WaitFor.c | ||
43 | +++ b/os/WaitFor.c | ||
44 | @@ -217,7 +217,8 @@ WaitForSomething(int *pClientsReady) | ||
45 | XFD_COPYSET(&AllSockets, &LastSelectMask); | ||
46 | #ifdef SMART_SCHEDULE | ||
47 | } | ||
48 | - SmartScheduleIdle = TRUE; | ||
49 | + SmartScheduleStopTimer (); | ||
50 | + | ||
51 | #endif | ||
52 | BlockHandler((pointer)&wt, (pointer)&LastSelectMask); | ||
53 | if (NewOutputPending) | ||
54 | @@ -237,13 +238,7 @@ WaitForSomething(int *pClientsReady) | ||
55 | selecterr = GetErrno(); | ||
56 | WakeupHandler(i, (pointer)&LastSelectMask); | ||
57 | #ifdef SMART_SCHEDULE | ||
58 | - if (i >= 0) | ||
59 | - { | ||
60 | - SmartScheduleIdle = FALSE; | ||
61 | - SmartScheduleIdleCount = 0; | ||
62 | - if (SmartScheduleTimerStopped) | ||
63 | - (void) SmartScheduleStartTimer (); | ||
64 | - } | ||
65 | + SmartScheduleStartTimer (); | ||
66 | #endif | ||
67 | if (i <= 0) /* An error or timeout occurred */ | ||
68 | { | ||
69 | diff --git a/os/utils.c b/os/utils.c | ||
70 | index 31cb0af..6fc1f7d 100644 | ||
71 | --- a/os/utils.c | ||
72 | +++ b/os/utils.c | ||
73 | @@ -1513,10 +1513,6 @@ XNFstrdup(const char *s) | ||
74 | |||
75 | #ifdef SMART_SCHEDULE | ||
76 | |||
77 | -unsigned long SmartScheduleIdleCount; | ||
78 | -Bool SmartScheduleIdle; | ||
79 | -Bool SmartScheduleTimerStopped; | ||
80 | - | ||
81 | #ifdef SIGVTALRM | ||
82 | #define SMART_SCHEDULE_POSSIBLE | ||
83 | #endif | ||
84 | @@ -1526,7 +1522,7 @@ Bool SmartScheduleTimerStopped; | ||
85 | #define SMART_SCHEDULE_TIMER ITIMER_REAL | ||
86 | #endif | ||
87 | |||
88 | -static void | ||
89 | +void | ||
90 | SmartScheduleStopTimer (void) | ||
91 | { | ||
92 | #ifdef SMART_SCHEDULE_POSSIBLE | ||
93 | @@ -1537,38 +1533,28 @@ SmartScheduleStopTimer (void) | ||
94 | timer.it_value.tv_sec = 0; | ||
95 | timer.it_value.tv_usec = 0; | ||
96 | (void) setitimer (ITIMER_REAL, &timer, 0); | ||
97 | - SmartScheduleTimerStopped = TRUE; | ||
98 | #endif | ||
99 | } | ||
100 | |||
101 | -Bool | ||
102 | +void | ||
103 | SmartScheduleStartTimer (void) | ||
104 | { | ||
105 | #ifdef SMART_SCHEDULE_POSSIBLE | ||
106 | struct itimerval timer; | ||
107 | |||
108 | - SmartScheduleTimerStopped = FALSE; | ||
109 | timer.it_interval.tv_sec = 0; | ||
110 | timer.it_interval.tv_usec = SmartScheduleInterval * 1000; | ||
111 | timer.it_value.tv_sec = 0; | ||
112 | timer.it_value.tv_usec = SmartScheduleInterval * 1000; | ||
113 | - return setitimer (ITIMER_REAL, &timer, 0) >= 0; | ||
114 | + setitimer (ITIMER_REAL, &timer, 0); | ||
115 | #endif | ||
116 | - return FALSE; | ||
117 | } | ||
118 | |||
119 | #ifdef SMART_SCHEDULE_POSSIBLE | ||
120 | static void | ||
121 | SmartScheduleTimer (int sig) | ||
122 | { | ||
123 | - int olderrno = errno; | ||
124 | - | ||
125 | SmartScheduleTime += SmartScheduleInterval; | ||
126 | - if (SmartScheduleIdle) | ||
127 | - { | ||
128 | - SmartScheduleStopTimer (); | ||
129 | - } | ||
130 | - errno = olderrno; | ||
131 | } | ||
132 | #endif | ||
133 | |||
134 | @@ -1592,14 +1578,6 @@ SmartScheduleInit (void) | ||
135 | perror ("sigaction for smart scheduler"); | ||
136 | return FALSE; | ||
137 | } | ||
138 | - /* Set up the virtual timer */ | ||
139 | - if (!SmartScheduleStartTimer ()) | ||
140 | - { | ||
141 | - perror ("scheduling timer"); | ||
142 | - return FALSE; | ||
143 | - } | ||
144 | - /* stop the timer and wait for WaitForSomething to start it */ | ||
145 | - SmartScheduleStopTimer (); | ||
146 | return TRUE; | ||
147 | #else | ||
148 | return FALSE; | ||
149 | -- | ||
150 | 1.5.3.4 | ||
151 | |||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/xcalibrate_coords.patch b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/xcalibrate_coords.patch new file mode 100644 index 0000000000..e0cca5428b --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/xcalibrate_coords.patch | |||
@@ -0,0 +1,122 @@ | |||
1 | --- | ||
2 | Xext/xcalibrate.c | 47 ++++++++++++++++++++++++++++++++++++++++++++++- | ||
3 | hw/kdrive/src/kdrive.h | 3 +++ | ||
4 | hw/kdrive/src/kinput.c | 12 ++++++++++++ | ||
5 | 3 files changed, 61 insertions(+), 1 deletion(-) | ||
6 | |||
7 | Index: xorg-server-1.3.0.0/Xext/xcalibrate.c | ||
8 | =================================================================== | ||
9 | --- xorg-server-1.3.0.0.orig/Xext/xcalibrate.c 2007-06-29 17:30:03.000000000 +0100 | ||
10 | +++ xorg-server-1.3.0.0/Xext/xcalibrate.c 2007-06-30 14:04:40.000000000 +0100 | ||
11 | @@ -166,7 +166,6 @@ ProcXCalibrateSetRawMode (ClientPtr clie | ||
12 | return (client->noClientException); | ||
13 | } | ||
14 | |||
15 | - | ||
16 | static int | ||
17 | SProcXCalibrateSetRawMode (ClientPtr client) | ||
18 | { | ||
19 | @@ -180,6 +179,47 @@ SProcXCalibrateSetRawMode (ClientPtr cli | ||
20 | return ProcXCalibrateSetRawMode(client); | ||
21 | } | ||
22 | |||
23 | +static int | ||
24 | +ProcXCalibrateScreenToCoord (ClientPtr client) | ||
25 | +{ | ||
26 | + REQUEST(xXCalibrateScreenToCoordReq); | ||
27 | + xXCalibrateScreenToCoordReply rep; | ||
28 | + | ||
29 | + REQUEST_SIZE_MATCH (xXCalibrateScreenToCoordReq); | ||
30 | + | ||
31 | + memset (&rep, 0, sizeof (rep)); | ||
32 | + rep.type = X_Reply; | ||
33 | + rep.sequenceNumber = client->sequence; | ||
34 | + rep.x = stuff->x; | ||
35 | + rep.y = stuff->y; | ||
36 | + | ||
37 | + KdScreenToMouseCoords(&rep.x, &rep.y); | ||
38 | + | ||
39 | + if (client->swapped) | ||
40 | + { | ||
41 | + int n; | ||
42 | + | ||
43 | + swaps (&rep.x, n); | ||
44 | + swaps (&rep.y, n); | ||
45 | + } | ||
46 | + WriteToClient(client, sizeof (rep), (char *) &rep); | ||
47 | + return (client->noClientException); | ||
48 | +} | ||
49 | + | ||
50 | +static int | ||
51 | +SProcXCalibrateScreenToCoord (ClientPtr client) | ||
52 | +{ | ||
53 | + REQUEST(xXCalibrateScreenToCoordReq); | ||
54 | + int n; | ||
55 | + | ||
56 | + REQUEST_SIZE_MATCH (xXCalibrateScreenToCoordReq); | ||
57 | + | ||
58 | + swaps(&stuff->x, n); | ||
59 | + swaps(&stuff->y, n); | ||
60 | + | ||
61 | + return ProcXCalibrateScreenToCoord(client); | ||
62 | +} | ||
63 | + | ||
64 | static void | ||
65 | XCalibrateResetProc (ExtensionEntry *extEntry) | ||
66 | { | ||
67 | @@ -194,6 +234,9 @@ ProcXCalibrateDispatch (ClientPtr client | ||
68 | return ProcXCalibrateQueryVersion(client); | ||
69 | case X_XCalibrateRawMode: | ||
70 | return ProcXCalibrateSetRawMode(client); | ||
71 | + case X_XCalibrateScreenToCoord: | ||
72 | + return ProcXCalibrateScreenToCoord(client); | ||
73 | + | ||
74 | default: break; | ||
75 | } | ||
76 | |||
77 | @@ -213,6 +256,8 @@ SProcXCalibrateDispatch (ClientPtr clien | ||
78 | return SProcXCalibrateQueryVersion(client); | ||
79 | case X_XCalibrateRawMode: | ||
80 | return SProcXCalibrateSetRawMode(client); | ||
81 | + case X_XCalibrateScreenToCoord: | ||
82 | + return SProcXCalibrateScreenToCoord(client); | ||
83 | |||
84 | default: break; | ||
85 | } | ||
86 | Index: xorg-server-1.3.0.0/hw/kdrive/src/kdrive.h | ||
87 | =================================================================== | ||
88 | --- xorg-server-1.3.0.0.orig/hw/kdrive/src/kdrive.h 2007-06-30 13:43:45.000000000 +0100 | ||
89 | +++ xorg-server-1.3.0.0/hw/kdrive/src/kdrive.h 2007-06-30 13:45:03.000000000 +0100 | ||
90 | @@ -746,6 +746,9 @@ void | ||
91 | KdSetMouseMatrix (KdMouseMatrix *matrix); | ||
92 | |||
93 | void | ||
94 | +KdScreenToMouseCoords (int *x, int *y); | ||
95 | + | ||
96 | +void | ||
97 | KdComputeMouseMatrix (KdMouseMatrix *matrix, Rotation randr, int width, int height); | ||
98 | |||
99 | void | ||
100 | Index: xorg-server-1.3.0.0/hw/kdrive/src/kinput.c | ||
101 | =================================================================== | ||
102 | --- xorg-server-1.3.0.0.orig/hw/kdrive/src/kinput.c 2007-06-29 17:30:16.000000000 +0100 | ||
103 | +++ xorg-server-1.3.0.0/hw/kdrive/src/kinput.c 2007-06-30 15:52:16.000000000 +0100 | ||
104 | @@ -381,6 +381,18 @@ KdSetMouseMatrix (KdMouseMatrix *matrix) | ||
105 | } | ||
106 | |||
107 | void | ||
108 | +KdScreenToMouseCoords (int *x, int *y) | ||
109 | +{ | ||
110 | + int (*m)[3] = kdMouseMatrix.matrix; | ||
111 | + int div = m[0][1] * m[1][0] - m[1][1] * m[0][0]; | ||
112 | + int sx = *x; | ||
113 | + int sy = *y; | ||
114 | + | ||
115 | + *x = (m[0][1] * sy - m[0][1] * m[1][2] + m[1][1] * m[0][2] - m[1][1] * sx) / div; | ||
116 | + *y = (m[1][0] * sx + m[0][0] * m[1][2] - m[1][0] * m[0][2] - m[0][0] * sy) / div; | ||
117 | +} | ||
118 | + | ||
119 | +void | ||
120 | KdComputeMouseMatrix (KdMouseMatrix *m, Rotation randr, int width, int height) | ||
121 | { | ||
122 | int x_dir = 1, y_dir = 1; | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/crosscompile.patch b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/crosscompile.patch new file mode 100644 index 0000000000..2341e40bca --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/crosscompile.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | Index: xorg-server-1.7.99.2/configure.ac | ||
2 | =================================================================== | ||
3 | --- xorg-server-1.7.99.2.orig/configure.ac 2010-01-29 16:38:49.000000000 +0000 | ||
4 | +++ xorg-server-1.7.99.2/configure.ac 2010-01-29 16:42:39.000000000 +0000 | ||
5 | @@ -503,14 +503,10 @@ | ||
6 | |||
7 | dnl Uses --default-font-path if set, otherwise checks for /etc/X11/fontpath.d, | ||
8 | dnl otherwise uses standard subdirectories of FONTROOTDIR | ||
9 | -AC_CHECK_FILE([${sysconfdir}/X11/fontpath.d], | ||
10 | - [DEFAULT_FONT_PATH='catalogue:${sysconfdir}/X11/fontpath.d'], | ||
11 | - [ | ||
12 | DEFAULT_FONT_PATH="${FONTMISCDIR}/,${FONTTTFDIR}/,${FONTOTFDIR}/,${FONTTYPE1DIR}/,${FONT100DPIDIR}/,${FONT75DPIDIR}/" | ||
13 | case $host_os in | ||
14 | darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;; | ||
15 | esac | ||
16 | - ]) | ||
17 | AC_ARG_WITH(default-font-path, AS_HELP_STRING([--with-default-font-path=PATH], [Comma separated list of font dirs]), | ||
18 | [ FONTPATH="$withval" ], | ||
19 | [ FONTPATH="${DEFAULT_FONT_PATH}" ]) | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/disable-apm.patch b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/disable-apm.patch new file mode 100644 index 0000000000..bd8842721b --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/disable-apm.patch | |||
@@ -0,0 +1,20 @@ | |||
1 | --- xserver/hw/kdrive/linux/linux.c.orig 2005-04-23 15:56:13.988849232 +0000 | ||
2 | +++ xserver/hw/kdrive/linux/linux.c 2005-04-23 15:57:05.001094192 +0000 | ||
3 | @@ -342,7 +342,7 @@ | ||
4 | /* | ||
5 | * Open the APM driver | ||
6 | */ | ||
7 | - LinuxApmFd = open ("/dev/apm_bios", 2); | ||
8 | + /*LinuxApmFd = open ("/dev/apm_bios", 2); | ||
9 | if (LinuxApmFd < 0 && errno == ENOENT) | ||
10 | LinuxApmFd = open ("/dev/misc/apm_bios", 2); | ||
11 | if (LinuxApmFd >= 0) | ||
12 | @@ -352,7 +352,7 @@ | ||
13 | RegisterBlockAndWakeupHandlers (LinuxApmBlock, LinuxApmWakeup, 0); | ||
14 | AddEnabledDevice (LinuxApmFd); | ||
15 | } | ||
16 | - | ||
17 | + */ | ||
18 | /* | ||
19 | * now get the VT | ||
20 | */ | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/enable-builtin-fonts.patch b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/enable-builtin-fonts.patch new file mode 100644 index 0000000000..13a6c2c954 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/enable-builtin-fonts.patch | |||
@@ -0,0 +1,12 @@ | |||
1 | --- xorg-server-X11R7.1-1.1.0/dix/dixfonts.c.orig 2006-06-08 14:49:12.158684250 +0200 | ||
2 | +++ xorg-server-X11R7.1-1.1.0/dix/dixfonts.c 2006-06-08 14:49:52.493205000 +0200 | ||
3 | @@ -52,8 +52,8 @@ | ||
4 | /* $Xorg: dixfonts.c,v 1.4 2000/08/17 19:48:18 cpqbld Exp $ */ | ||
5 | |||
6 | #define NEED_REPLIES | ||
7 | #ifdef HAVE_DIX_CONFIG_H | ||
8 | -#include <dix-config.h> | ||
9 | +#include <kdrive-config.h> | ||
10 | #endif | ||
11 | |||
12 | #include <X11/X.h> | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/enable-xcalibrate.patch b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/enable-xcalibrate.patch new file mode 100644 index 0000000000..9794e98cb0 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/enable-xcalibrate.patch | |||
@@ -0,0 +1,148 @@ | |||
1 | --- | ||
2 | Xext/Makefile.am | 6 ++++++ | ||
3 | configure.ac | 11 +++++++++-- | ||
4 | include/kdrive-config.h.in | 3 +++ | ||
5 | mi/miinitext.c | 6 ++++++ | ||
6 | 4 files changed, 24 insertions(+), 2 deletions(-) | ||
7 | |||
8 | Index: xorg-server-1.7.99.2/mi/miinitext.c | ||
9 | =================================================================== | ||
10 | --- xorg-server-1.7.99.2.orig/mi/miinitext.c 2010-02-10 18:54:11.959086237 +0000 | ||
11 | +++ xorg-server-1.7.99.2/mi/miinitext.c 2010-02-10 18:54:12.429078513 +0000 | ||
12 | @@ -264,6 +264,9 @@ | ||
13 | #ifdef DMXEXT | ||
14 | extern void DMXExtensionInit(INITARGS); | ||
15 | #endif | ||
16 | +#ifdef XCALIBRATE | ||
17 | +extern void XCalibrateExtensionInit(INITARGS); | ||
18 | +#endif | ||
19 | #ifdef XFIXES | ||
20 | extern void XFixesExtensionInit(INITARGS); | ||
21 | #endif | ||
22 | @@ -493,6 +496,9 @@ | ||
23 | GlxPushProvider(&__glXDRISWRastProvider); | ||
24 | if (!noGlxExtension) GlxExtensionInit(); | ||
25 | #endif | ||
26 | +#ifdef XCALIBRATE | ||
27 | + XCalibrateExtensionInit (); | ||
28 | +#endif | ||
29 | } | ||
30 | |||
31 | #else /* XFree86LOADER */ | ||
32 | Index: xorg-server-1.7.99.2/configure.ac | ||
33 | =================================================================== | ||
34 | --- xorg-server-1.7.99.2.orig/configure.ac 2010-02-10 18:54:11.959086237 +0000 | ||
35 | +++ xorg-server-1.7.99.2/configure.ac 2010-02-11 11:49:50.710736962 +0000 | ||
36 | @@ -1985,7 +1985,7 @@ | ||
37 | fi | ||
38 | |||
39 | |||
40 | - PKG_CHECK_MODULES([TSLIB], [tslib-0.0], [HAVE_TSLIB="yes"], [HAVE_TSLIB="no"]) | ||
41 | + PKG_CHECK_MODULES([TSLIB], [tslib-1.0], [HAVE_TSLIB="yes"], [HAVE_TSLIB="no"]) | ||
42 | if test "x$HAVE_TSLIB" = xno; then | ||
43 | AC_CHECK_LIB(ts, ts_open, [HAVE_TSLIB="yes"]) | ||
44 | fi | ||
45 | @@ -2039,7 +2039,7 @@ | ||
46 | KDRIVE_LOCAL_LIBS="$MAIN_LIB $DIX_LIB $KDRIVE_LIB $KDRIVE_STUB_LIB $CONFIG_LIB" | ||
47 | KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $FB_LIB $MI_LIB $KDRIVE_PURE_LIBS" | ||
48 | KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $KDRIVE_OS_LIB $OS_LIB" | ||
49 | - KDRIVE_LIBS="$TSLIB_LIBS $KDRIVE_LOCAL_LIBS $XSERVER_SYS_LIBS $GLX_SYS_LIBS $DLOPEN_LIBS" | ||
50 | + KDRIVE_LIBS="$KDRIVE_LOCAL_LIBS $TSLIB_LIBS $XSERVER_SYS_LIBS $GLX_SYS_LIBS $DLOPEN_LIBS" | ||
51 | |||
52 | AC_SUBST([XEPHYR_LIBS]) | ||
53 | AC_SUBST([XEPHYR_INCS]) | ||
54 | Index: xorg-server-1.7.99.2/include/kdrive-config.h.in | ||
55 | =================================================================== | ||
56 | --- xorg-server-1.7.99.2.orig/include/kdrive-config.h.in 2010-02-10 18:54:11.959086237 +0000 | ||
57 | +++ xorg-server-1.7.99.2/include/kdrive-config.h.in 2010-02-10 18:54:12.429078513 +0000 | ||
58 | @@ -28,4 +28,7 @@ | ||
59 | /* Have execinfo.h for backtrace(). */ | ||
60 | #undef HAVE_EXECINFO_H | ||
61 | |||
62 | +/* Enable XCalibrate extension */ | ||
63 | +#undef XCALIBRATE | ||
64 | + | ||
65 | #endif /* _KDRIVE_CONFIG_H_ */ | ||
66 | Index: xorg-server-1.7.99.2/hw/kdrive/linux/tslib.c | ||
67 | =================================================================== | ||
68 | --- xorg-server-1.7.99.2.orig/hw/kdrive/linux/tslib.c 2010-02-10 18:58:12.669078495 +0000 | ||
69 | +++ xorg-server-1.7.99.2/hw/kdrive/linux/tslib.c 2010-02-10 19:04:56.927828767 +0000 | ||
70 | @@ -50,12 +50,15 @@ | ||
71 | int fd; | ||
72 | int lastx, lasty; | ||
73 | struct tsdev *tsDev; | ||
74 | - void (*raw_event_hook)(int x, int y, int pressure, void *closure); | ||
75 | - void *raw_event_closure; | ||
76 | int phys_screen; | ||
77 | }; | ||
78 | |||
79 | |||
80 | +/* For XCalibrate extension */ | ||
81 | +void (*tslib_raw_event_hook)(int x, int y, int pressure, void *closure); | ||
82 | +void *tslib_raw_event_closure; | ||
83 | + | ||
84 | + | ||
85 | static void | ||
86 | TsRead (int fd, void *closure) | ||
87 | { | ||
88 | @@ -65,10 +68,10 @@ | ||
89 | long x = 0, y = 0; | ||
90 | unsigned long flags; | ||
91 | |||
92 | - if (private->raw_event_hook) { | ||
93 | + if (tslib_raw_event_hook) { | ||
94 | while (ts_read_raw(private->tsDev, &event, 1) == 1) | ||
95 | - private->raw_event_hook (event.x, event.y, event.pressure, | ||
96 | - private->raw_event_closure); | ||
97 | + tslib_raw_event_hook (event.x, event.y, event.pressure, | ||
98 | + tslib_raw_event_closure); | ||
99 | return; | ||
100 | } | ||
101 | |||
102 | @@ -111,8 +114,8 @@ | ||
103 | { | ||
104 | struct TslibPrivate *private = pi->driverPrivate; | ||
105 | |||
106 | - private->raw_event_hook = NULL; | ||
107 | - private->raw_event_closure = NULL; | ||
108 | + tslib_raw_event_hook = NULL; | ||
109 | + tslib_raw_event_closure = NULL; | ||
110 | if (!pi->path) { | ||
111 | pi->path = strdup("/dev/input/touchscreen0"); | ||
112 | ErrorF("[tslib/TslibEnable] no device path given, trying %s\n", pi->path); | ||
113 | Index: xorg-server-1.7.99.2/Xext/xcalibrate.c | ||
114 | =================================================================== | ||
115 | --- xorg-server-1.7.99.2.orig/Xext/xcalibrate.c 2010-02-10 18:59:24.097829840 +0000 | ||
116 | +++ xorg-server-1.7.99.2/Xext/xcalibrate.c 2010-02-11 11:51:00.930735731 +0000 | ||
117 | @@ -115,6 +115,7 @@ | ||
118 | |||
119 | memset (&rep, 0, sizeof (rep)); | ||
120 | rep.type = X_Reply; | ||
121 | + rep.length = 0; | ||
122 | rep.sequenceNumber = client->sequence; | ||
123 | |||
124 | if (stuff->on) | ||
125 | @@ -158,6 +159,7 @@ | ||
126 | |||
127 | swaps (&rep.sequenceNumber, n); | ||
128 | swaps (&rep.status, n); | ||
129 | + swapl (&rep.length, n); | ||
130 | } | ||
131 | WriteToClient(client, sizeof (rep), (char *) &rep); | ||
132 | return (client->noClientException); | ||
133 | @@ -186,6 +188,7 @@ | ||
134 | |||
135 | memset (&rep, 0, sizeof (rep)); | ||
136 | rep.type = X_Reply; | ||
137 | + rep.length = 0; | ||
138 | rep.sequenceNumber = client->sequence; | ||
139 | rep.x = stuff->x; | ||
140 | rep.y = stuff->y; | ||
141 | @@ -198,6 +201,7 @@ | ||
142 | |||
143 | swaps (&rep.x, n); | ||
144 | swaps (&rep.y, n); | ||
145 | + swapl (&rep.length, n); | ||
146 | } | ||
147 | WriteToClient(client, sizeof (rep), (char *) &rep); | ||
148 | return (client->noClientException); | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/extra-kmodes.patch b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/extra-kmodes.patch new file mode 100644 index 0000000000..14cf99055b --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/extra-kmodes.patch | |||
@@ -0,0 +1,83 @@ | |||
1 | Add some extra video modes and change the default to VGA. | ||
2 | |||
3 | --- | ||
4 | hw/kdrive/src/kmode.c | 41 +++++++++++++++++++++++++++++++++++++++-- | ||
5 | 1 file changed, 39 insertions(+), 2 deletions(-) | ||
6 | |||
7 | Index: xorg-server-1.3.0.0/hw/kdrive/src/kmode.c | ||
8 | =================================================================== | ||
9 | --- xorg-server-1.3.0.0.orig/hw/kdrive/src/kmode.c 2008-01-11 14:20:47.000000000 +0000 | ||
10 | +++ xorg-server-1.3.0.0/hw/kdrive/src/kmode.c 2008-01-11 14:21:18.000000000 +0000 | ||
11 | @@ -32,6 +32,31 @@ const KdMonitorTiming kdMonitorTimings[ | ||
12 | /* H V Hz KHz */ | ||
13 | /* FP BP BLANK POLARITY */ | ||
14 | |||
15 | + /* Treo 650 */ | ||
16 | + | ||
17 | + { 320, 320, 64, 16256, | ||
18 | + 17, 12, 32, KdSyncNegative, | ||
19 | + 1, 11, 14, KdSyncNegative, | ||
20 | + }, | ||
21 | + | ||
22 | + { 320, 320, 64, 0, | ||
23 | + 0, 0, 0, KdSyncNegative, | ||
24 | + 0, 0, 0, KdSyncNegative, | ||
25 | + }, | ||
26 | + | ||
27 | + /* LifeDrive/T3/TX modes */ | ||
28 | + | ||
29 | + { 320, 480, 64, 16256, | ||
30 | + 17, 12, 32, KdSyncNegative, | ||
31 | + 1, 11, 14, KdSyncNegative, | ||
32 | + }, | ||
33 | + | ||
34 | + { 480, 320, 64, 0, | ||
35 | + 0, 0, 0, KdSyncNegative, | ||
36 | + 0, 0, 0, KdSyncNegative, | ||
37 | + }, | ||
38 | + | ||
39 | + | ||
40 | /* IPAQ modeline: | ||
41 | * | ||
42 | * Modeline "320x240" 5.7222 320 337 340 352 240 241 244 254" | ||
43 | @@ -41,6 +66,11 @@ const KdMonitorTiming kdMonitorTimings[ | ||
44 | 1, 11, 14, KdSyncNegative, | ||
45 | }, | ||
46 | |||
47 | + { 240, 320, 64, 0, | ||
48 | + 0, 0, 0, KdSyncNegative, | ||
49 | + 0, 0, 0, KdSyncNegative, | ||
50 | + }, | ||
51 | + | ||
52 | /* Other VESA modes */ | ||
53 | { 640, 350, 85, 31500, /* VESA */ | ||
54 | 32, 96, 192, KdSyncPositive, /* 26.413 */ | ||
55 | @@ -76,10 +106,19 @@ const KdMonitorTiming kdMonitorTimings[ | ||
56 | 16, 120, 176, KdSyncNegative, /* 37.861 */ | ||
57 | 1, 20, 24, KdSyncNegative, /* 72.809 */ | ||
58 | }, | ||
59 | + /* DEFAULT */ | ||
60 | +#define MONITOR_TIMING_DEFAULT 13 | ||
61 | { 640, 480, 60, 25175, /* VESA */ | ||
62 | 16, 48, 160, KdSyncNegative, /* 31.469 */ | ||
63 | 10, 33, 45, KdSyncNegative, /* 59.940 */ | ||
64 | }, | ||
65 | + | ||
66 | + | ||
67 | + { 480, 640, 60, 0, /* VESA */ | ||
68 | + 0, 0, 0, KdSyncNegative, /* 31.469 */ | ||
69 | + 0, 0, 0, KdSyncNegative, /* 59.940 */ | ||
70 | + }, | ||
71 | + | ||
72 | |||
73 | /* 800x600 modes */ | ||
74 | { 800, 600, 85, 56250, /* VESA */ | ||
75 | @@ -90,8 +129,6 @@ const KdMonitorTiming kdMonitorTimings[ | ||
76 | 16, 160, 256, KdSyncPositive, /* 46.875 */ | ||
77 | 1, 21, 25, KdSyncPositive, /* 75.000 */ | ||
78 | }, | ||
79 | - /* DEFAULT */ | ||
80 | -#define MONITOR_TIMING_DEFAULT 9 | ||
81 | { 800, 600, 72, 50000, /* VESA */ | ||
82 | 56, 64, 240, KdSyncPositive, /* 48.077 */ | ||
83 | 37, 23, 66, KdSyncPositive, /* 72.188 */ | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/fbdev_xrandr_ioctl.patch b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/fbdev_xrandr_ioctl.patch new file mode 100644 index 0000000000..a5c22a5efc --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/fbdev_xrandr_ioctl.patch | |||
@@ -0,0 +1,61 @@ | |||
1 | Index: xorg-server-1.3.0.0/hw/kdrive/fbdev/fbdev.c | ||
2 | =================================================================== | ||
3 | --- xorg-server-1.3.0.0.orig/hw/kdrive/fbdev/fbdev.c 2008-09-25 21:55:12.000000000 +0100 | ||
4 | +++ xorg-server-1.3.0.0/hw/kdrive/fbdev/fbdev.c 2008-09-25 21:55:46.000000000 +0100 | ||
5 | @@ -498,6 +498,7 @@ | ||
6 | KdScreenInfo *screen = pScreenPriv->screen; | ||
7 | FbdevScrPriv *scrpriv = screen->driver; | ||
8 | Bool wasEnabled = pScreenPriv->enabled; | ||
9 | + FbdevPriv *priv = screen->card->driver; | ||
10 | FbdevScrPriv oldscr; | ||
11 | int oldwidth; | ||
12 | int oldheight; | ||
13 | @@ -525,11 +526,46 @@ | ||
14 | oldheight = screen->height; | ||
15 | oldmmwidth = pScreen->mmWidth; | ||
16 | oldmmheight = pScreen->mmHeight; | ||
17 | - | ||
18 | + | ||
19 | /* | ||
20 | * Set new configuration | ||
21 | */ | ||
22 | - | ||
23 | + | ||
24 | + if (newwidth != oldwidth || newheight != oldheight) | ||
25 | + { | ||
26 | + struct fb_var_screeninfo var; | ||
27 | + int k; | ||
28 | + | ||
29 | + k = ioctl (priv->fd, FBIOGET_VSCREENINFO, &var); | ||
30 | + | ||
31 | + if (k < 0) | ||
32 | + { | ||
33 | + ErrorF("Error with framebuffer ioctl FBIOGET_VSCREENINFO: %s", strerror (errno)); | ||
34 | + return FALSE; | ||
35 | + } | ||
36 | + | ||
37 | + var.xres = newwidth; | ||
38 | + var.yres = newheight; | ||
39 | + var.activate = FB_ACTIVATE_NOW; | ||
40 | + | ||
41 | + k = ioctl (priv->fd, FBIOPUT_VSCREENINFO, &var); | ||
42 | + | ||
43 | + if (k >= 0) | ||
44 | + { | ||
45 | + if ((k=ioctl(priv->fd, FBIOGET_FSCREENINFO, &priv->fix)) < 0) | ||
46 | + { | ||
47 | + perror("Error with framebuffer ioctl FIOGET_FSCREENINFO"); | ||
48 | + close (priv->fd); | ||
49 | + return FALSE; | ||
50 | + } | ||
51 | + if ((k=ioctl(priv->fd, FBIOGET_VSCREENINFO, &priv->var)) < 0) { | ||
52 | + perror("Error framebuffer ioctl FIOGET_VSCREENINFO"); | ||
53 | + close (priv->fd); | ||
54 | + return FALSE; | ||
55 | + } | ||
56 | + } | ||
57 | + } | ||
58 | + | ||
59 | scrpriv->randr = KdAddRotation (screen->randr, randr); | ||
60 | |||
61 | KdOffscreenSwapOut (screen->pScreen); | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/fix-newer-xorg-headers.patch b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/fix-newer-xorg-headers.patch new file mode 100644 index 0000000000..eb98fb82c7 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/fix-newer-xorg-headers.patch | |||
@@ -0,0 +1,18 @@ | |||
1 | --- | ||
2 | render/glyphstr.h | 1 + | ||
3 | 1 file changed, 1 insertion(+) | ||
4 | |||
5 | --- xorg-server-1.3.0.0.orig/render/glyphstr.h | ||
6 | +++ xorg-server-1.3.0.0/render/glyphstr.h | ||
7 | @@ -23,10 +23,11 @@ | ||
8 | */ | ||
9 | |||
10 | #ifndef _GLYPHSTR_H_ | ||
11 | #define _GLYPHSTR_H_ | ||
12 | |||
13 | +#include <X11/X.h> | ||
14 | #include <X11/extensions/renderproto.h> | ||
15 | #include "picture.h" | ||
16 | #include "screenint.h" | ||
17 | #include "regionstr.h" | ||
18 | #include "miscstruct.h" | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/hide-cursor-and-ppm-root.patch b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/hide-cursor-and-ppm-root.patch new file mode 100644 index 0000000000..73f30ee716 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/hide-cursor-and-ppm-root.patch | |||
@@ -0,0 +1,308 @@ | |||
1 | Index: xorg-server-1.7.99.2/dix/window.c | ||
2 | =================================================================== | ||
3 | --- xorg-server-1.7.99.2.orig/dix/window.c 2009-11-04 16:25:50.000000000 +0000 | ||
4 | +++ xorg-server-1.7.99.2/dix/window.c 2010-02-10 17:42:22.719078216 +0000 | ||
5 | @@ -179,6 +179,8 @@ | ||
6 | |||
7 | #define SubStrSend(pWin,pParent) (StrSend(pWin) || SubSend(pParent)) | ||
8 | |||
9 | +char* RootPPM = NULL; | ||
10 | + | ||
11 | #ifdef DEBUG | ||
12 | /****** | ||
13 | * PrintWindowTree | ||
14 | @@ -304,6 +306,115 @@ | ||
15 | #endif | ||
16 | } | ||
17 | |||
18 | +static int | ||
19 | +get_int(FILE *fp) | ||
20 | +{ | ||
21 | + int c = 0; | ||
22 | + | ||
23 | + while ((c = getc(fp)) != EOF) | ||
24 | + { | ||
25 | + if (isspace(c)) | ||
26 | + continue; | ||
27 | + | ||
28 | + if (c == '#') | ||
29 | + while (c = getc(fp)) | ||
30 | + if (c == EOF) | ||
31 | + return 0; | ||
32 | + else if (c == '\n') | ||
33 | + break; | ||
34 | + | ||
35 | + if (isdigit(c)) | ||
36 | + { | ||
37 | + int val = c - '0'; | ||
38 | + while ((c = getc(fp)) && isdigit(c)) | ||
39 | + val = (val * 10) + (c - '0'); | ||
40 | + return val; | ||
41 | + } | ||
42 | + } | ||
43 | + | ||
44 | + return 0; | ||
45 | +} | ||
46 | + | ||
47 | +static unsigned char* | ||
48 | +ppm_load (const char* path, int depth, int *width, int *height) | ||
49 | +{ | ||
50 | + FILE *fp; | ||
51 | + int max, n = 0, w, h, i, j, bytes_per_line; | ||
52 | + unsigned char *data, *res, h1, h2; | ||
53 | + | ||
54 | + if (depth < 16 || depth > 32) | ||
55 | + return NULL; | ||
56 | + | ||
57 | + if (depth > 16) | ||
58 | + depth = 32; | ||
59 | + | ||
60 | + fp = fopen (path, "r"); | ||
61 | + if (fp == NULL) | ||
62 | + return FALSE; | ||
63 | + | ||
64 | + h1 = getc(fp); | ||
65 | + h2 = getc(fp); | ||
66 | + | ||
67 | + /* magic is 'P6' for raw ppm */ | ||
68 | + if (h1 != 'P' && h2 != '6') | ||
69 | + goto fail; | ||
70 | + | ||
71 | + w = get_int(fp); | ||
72 | + h = get_int(fp); | ||
73 | + | ||
74 | + if (w == 0 || h == 0) | ||
75 | + goto fail; | ||
76 | + | ||
77 | + max = get_int(fp); | ||
78 | + | ||
79 | + if (max != 255) | ||
80 | + goto fail; | ||
81 | + | ||
82 | + bytes_per_line = ((w * depth + 31) >> 5) << 2; | ||
83 | + | ||
84 | + res = data = malloc(bytes_per_line * h); | ||
85 | + | ||
86 | + for (i=0; i<h; i++) | ||
87 | + { | ||
88 | + for (j=0; j<w; j++) | ||
89 | + { | ||
90 | + unsigned char buf[3]; | ||
91 | + fread(buf, 1, 3, fp); | ||
92 | + | ||
93 | + switch (depth) | ||
94 | + { | ||
95 | + case 24: | ||
96 | + case 32: | ||
97 | + *data = buf[2]; | ||
98 | + *(data+1) = buf[1]; | ||
99 | + *(data+2) = buf[0]; | ||
100 | + data += 4; | ||
101 | + break; | ||
102 | + case 16: | ||
103 | + default: | ||
104 | + *(unsigned short*)data | ||
105 | + = ((buf[0] >> 3) << 11) | ((buf[1] >> 2) << 5) | (buf[2] >> 3); | ||
106 | + data += 2; | ||
107 | + break; | ||
108 | + } | ||
109 | + } | ||
110 | + data += (bytes_per_line - (w*(depth>>3))); | ||
111 | + } | ||
112 | + | ||
113 | + data = res; | ||
114 | + | ||
115 | + *width = w; | ||
116 | + *height = h; | ||
117 | + | ||
118 | + fclose(fp); | ||
119 | + | ||
120 | + return res; | ||
121 | + | ||
122 | + fail: | ||
123 | + fclose(fp); | ||
124 | + return NULL; | ||
125 | +} | ||
126 | + | ||
127 | static void | ||
128 | MakeRootTile(WindowPtr pWin) | ||
129 | { | ||
130 | @@ -314,6 +425,36 @@ | ||
131 | unsigned char *from, *to; | ||
132 | int i, j; | ||
133 | |||
134 | + if (RootPPM != NULL) | ||
135 | + { | ||
136 | + int w, h; | ||
137 | + unsigned char *data; | ||
138 | + | ||
139 | + if ((data = ppm_load (RootPPM, pScreen->rootDepth, &w, &h)) != NULL) | ||
140 | + { | ||
141 | + pWin->background.pixmap | ||
142 | + = (*pScreen->CreatePixmap)(pScreen, w, h, pScreen->rootDepth, 0); | ||
143 | + | ||
144 | + pWin->backgroundState = BackgroundPixmap; | ||
145 | + pGC = GetScratchGC(pScreen->rootDepth, pScreen); | ||
146 | + if (!pWin->background.pixmap || !pGC) | ||
147 | + FatalError("could not create root tile"); | ||
148 | + | ||
149 | + ValidateGC((DrawablePtr)pWin->background.pixmap, pGC); | ||
150 | + | ||
151 | + (*pGC->ops->PutImage)((DrawablePtr)pWin->background.pixmap, | ||
152 | + pGC, | ||
153 | + pScreen->rootDepth, | ||
154 | + 0, 0, w, h, 0, ZPixmap, (char *)data); | ||
155 | + FreeScratchGC(pGC); | ||
156 | + | ||
157 | + free(data); | ||
158 | + return; | ||
159 | + } | ||
160 | + else | ||
161 | + ErrorF("Unable to load root window image."); | ||
162 | + } | ||
163 | + | ||
164 | pWin->background.pixmap = (*pScreen->CreatePixmap)(pScreen, 4, 4, | ||
165 | pScreen->rootDepth, 0); | ||
166 | |||
167 | @@ -530,6 +671,7 @@ | ||
168 | } | ||
169 | |||
170 | |||
171 | + | ||
172 | WindowPtr | ||
173 | RealChildHead(WindowPtr pWin) | ||
174 | { | ||
175 | Index: xorg-server-1.7.99.2/hw/kdrive/src/kdrive.c | ||
176 | =================================================================== | ||
177 | --- xorg-server-1.7.99.2.orig/hw/kdrive/src/kdrive.c 2010-02-10 17:36:36.000000000 +0000 | ||
178 | +++ xorg-server-1.7.99.2/hw/kdrive/src/kdrive.c 2010-02-10 17:43:07.797828099 +0000 | ||
179 | @@ -60,6 +60,9 @@ | ||
180 | { 32, 32 } | ||
181 | }; | ||
182 | |||
183 | +int | ||
184 | +ProcXFixesHideCursor (ClientPtr client) ; | ||
185 | + | ||
186 | #define NUM_KD_DEPTHS (sizeof (kdDepths) / sizeof (kdDepths[0])) | ||
187 | |||
188 | #define KD_DEFAULT_BUTTONS 5 | ||
189 | @@ -92,6 +95,9 @@ | ||
190 | |||
191 | KdOsFuncs *kdOsFuncs; | ||
192 | |||
193 | +extern Bool CursorInitiallyHidden; /* See Xfixes cursor.c */ | ||
194 | +extern char* RootPPM; /* dix/window.c */ | ||
195 | + | ||
196 | void | ||
197 | KdSetRootClip (ScreenPtr pScreen, BOOL enable) | ||
198 | { | ||
199 | @@ -275,6 +281,7 @@ | ||
200 | KdSetRootClip (pScreen, TRUE); | ||
201 | if (pScreenPriv->card->cfuncs->dpms) | ||
202 | (*pScreenPriv->card->cfuncs->dpms) (pScreen, pScreenPriv->dpmsState); | ||
203 | + | ||
204 | return TRUE; | ||
205 | } | ||
206 | |||
207 | @@ -553,6 +560,8 @@ | ||
208 | ErrorF("-switchCmd Command to execute on vt switch\n"); | ||
209 | ErrorF("-zap Terminate server on Ctrl+Alt+Backspace\n"); | ||
210 | ErrorF("vtxx Use virtual terminal xx instead of the next available\n"); | ||
211 | + ErrorF("-hide-cursor Start with cursor hidden\n"); | ||
212 | + ErrorF("-root-ppm [path] Specify ppm file to use as root window background.\n"); | ||
213 | } | ||
214 | |||
215 | int | ||
216 | @@ -616,6 +625,19 @@ | ||
217 | kdSoftCursor = TRUE; | ||
218 | return 1; | ||
219 | } | ||
220 | + if (!strcmp (argv[i], "-hide-cursor")) | ||
221 | + { | ||
222 | + CursorInitiallyHidden = TRUE; | ||
223 | + return 1; | ||
224 | + } | ||
225 | + if (!strcmp (argv[i], "-root-ppm")) | ||
226 | + { | ||
227 | + if ((i+1) < argc) | ||
228 | + RootPPM = argv[i+1]; | ||
229 | + else | ||
230 | + UseMsg (); | ||
231 | + return 2; | ||
232 | + } | ||
233 | if (!strcmp (argv[i], "-videoTest")) | ||
234 | { | ||
235 | kdVideoTest = TRUE; | ||
236 | Index: xorg-server-1.7.99.2/xfixes/cursor.c | ||
237 | =================================================================== | ||
238 | --- xorg-server-1.7.99.2.orig/xfixes/cursor.c 2009-12-19 01:43:53.000000000 +0000 | ||
239 | +++ xorg-server-1.7.99.2/xfixes/cursor.c 2010-02-10 17:45:02.089079491 +0000 | ||
240 | @@ -57,6 +57,7 @@ | ||
241 | static RESTYPE CursorClientType; | ||
242 | static RESTYPE CursorHideCountType; | ||
243 | static RESTYPE CursorWindowType; | ||
244 | +static Bool CursorGloballyHidden; | ||
245 | static CursorPtr CursorCurrent[MAXDEVICES]; | ||
246 | static CursorPtr pInvisibleCursor = NULL; | ||
247 | |||
248 | @@ -65,6 +66,8 @@ | ||
249 | |||
250 | static void deleteCursorHideCountsForScreen (ScreenPtr pScreen); | ||
251 | |||
252 | +Bool CursorInitiallyHidden = FALSE; | ||
253 | + | ||
254 | #define VERIFY_CURSOR(pCursor, cursor, client, access) \ | ||
255 | do { \ | ||
256 | int err; \ | ||
257 | @@ -150,7 +153,7 @@ | ||
258 | if (ConnectionInfo) | ||
259 | CursorVisible = EnableCursor; | ||
260 | |||
261 | - if (cs->pCursorHideCounts != NULL || !CursorVisible) { | ||
262 | + if (cs->pCursorHideCounts != NULL || !CursorVisible || CursorGloballyHidden) { | ||
263 | ret = ((*pScreen->RealizeCursor)(pDev, pScreen, pInvisibleCursor) && | ||
264 | (*pScreen->DisplayCursor) (pDev, pScreen, pInvisibleCursor)); | ||
265 | } else { | ||
266 | @@ -887,6 +890,12 @@ | ||
267 | return (ret == BadValue) ? BadWindow : ret; | ||
268 | } | ||
269 | |||
270 | + /* Is cursor set to be initially hidden ?, if so reset this | ||
271 | + * flag as now visibility assumed under control of client. | ||
272 | + */ | ||
273 | + if (CursorGloballyHidden) | ||
274 | + CursorGloballyHidden = FALSE; | ||
275 | + | ||
276 | /* | ||
277 | * Has client hidden the cursor before on this screen? | ||
278 | * If so, just increment the count. | ||
279 | @@ -950,9 +959,19 @@ | ||
280 | return (rc == BadValue) ? BadWindow : rc; | ||
281 | } | ||
282 | |||
283 | + /* X was started with cursor hidden, therefore just reset our flag | ||
284 | + * (returning to normal client control) and cause cursor to now be | ||
285 | + * shown. | ||
286 | + */ | ||
287 | + if (CursorGloballyHidden == TRUE) | ||
288 | + { | ||
289 | + CursorGloballyHidden = FALSE; | ||
290 | + return (client->noClientException); | ||
291 | + } | ||
292 | + | ||
293 | /* | ||
294 | * Has client hidden the cursor on this screen? | ||
295 | - * If not, generate an error. | ||
296 | + * If so, generate an error. | ||
297 | */ | ||
298 | pChc = findCursorHideCount(client, pWin->drawable.pScreen); | ||
299 | if (pChc == NULL) { | ||
300 | @@ -1068,6 +1087,8 @@ | ||
301 | { | ||
302 | int i; | ||
303 | |||
304 | + CursorGloballyHidden = CursorInitiallyHidden; | ||
305 | + | ||
306 | if (party_like_its_1989) | ||
307 | CursorVisible = EnableCursor; | ||
308 | |||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/kdrive-evdev.patch b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/kdrive-evdev.patch new file mode 100644 index 0000000000..2dc22bf50e --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/kdrive-evdev.patch | |||
@@ -0,0 +1,515 @@ | |||
1 | # Kdrive evdev support patch, posted by Ander Conselvan de Oliveira at | ||
2 | # http://lists.freedesktop.org/archives/xorg/2005-December/011635.html | ||
3 | diff -u -r --exclude=CVS --exclude=Makefile --exclude='*.o' --exclude=ephyr --exclude='*.Po' xserver.original/hw/kdrive/linux/evdev.c xserver/hw/kdrive/linux/evdev.c | ||
4 | --- xserver.original/hw/kdrive/linux/evdev.c 2005-12-16 10:36:05.000000000 -0200 | ||
5 | +++ xserver/hw/kdrive/linux/evdev.c 2005-12-16 10:40:51.077410192 -0200 | ||
6 | @@ -31,9 +31,11 @@ | ||
7 | #include <X11/X.h> | ||
8 | #include <X11/Xproto.h> | ||
9 | #include <X11/Xpoll.h> | ||
10 | +#include <X11/keysym.h> | ||
11 | #include "inputstr.h" | ||
12 | #include "scrnintstr.h" | ||
13 | #include "kdrive.h" | ||
14 | +#include "kkeymap.h" | ||
15 | |||
16 | #define NUM_EVENTS 128 | ||
17 | #define ABS_UNSET -65535 | ||
18 | @@ -105,9 +107,10 @@ | ||
19 | { | ||
20 | KdMouseInfo *mi = closure; | ||
21 | Kevdev *ke = mi->driver; | ||
22 | - int i; | ||
23 | + int i, j; | ||
24 | struct input_event events[NUM_EVENTS]; | ||
25 | int n; | ||
26 | + int flags; | ||
27 | |||
28 | n = read (evdevPort, &events, NUM_EVENTS * sizeof (struct input_event)); | ||
29 | if (n <= 0) | ||
30 | @@ -115,22 +118,64 @@ | ||
31 | n /= sizeof (struct input_event); | ||
32 | for (i = 0; i < n; i++) | ||
33 | { | ||
34 | + flags = KD_MOUSE_DELTA | kdMouseInfo->buttonState; | ||
35 | switch (events[i].type) { | ||
36 | case EV_SYN: | ||
37 | break; | ||
38 | case EV_KEY: | ||
39 | - EvdevMotion (mi); | ||
40 | - ASSIGNBIT(ke->key,events[i].code, events[i].value); | ||
41 | - if (events[i].code < 0x100) | ||
42 | - ErrorF ("key %d %d\n", events[i].code, events[i].value); | ||
43 | - else | ||
44 | - ErrorF ("key 0x%x %d\n", events[i].code, events[i].value); | ||
45 | + if (events[i].code >= BTN_MOUSE && events[i].code < BTN_JOYSTICK) { | ||
46 | + switch (events[i].code) { | ||
47 | + case BTN_LEFT: | ||
48 | + if (events[i].value == 1) | ||
49 | + flags |= KD_BUTTON_1; | ||
50 | + else | ||
51 | + flags &= ~KD_BUTTON_1; | ||
52 | + break; | ||
53 | + case BTN_MIDDLE: | ||
54 | + if (events[i].value == 1) | ||
55 | + flags |= KD_BUTTON_2; | ||
56 | + else | ||
57 | + flags &= ~KD_BUTTON_2; | ||
58 | + break; | ||
59 | + case BTN_RIGHT: | ||
60 | + if (events[i].value == 1) | ||
61 | + flags |= KD_BUTTON_3; | ||
62 | + else | ||
63 | + flags &= ~KD_BUTTON_3; | ||
64 | + break; | ||
65 | + default: | ||
66 | + /* Unknow button */ | ||
67 | + break; | ||
68 | + } | ||
69 | + KdEnqueueMouseEvent (kdMouseInfo, flags, 0, 0); | ||
70 | + } | ||
71 | break; | ||
72 | case EV_REL: | ||
73 | - ke->rel[events[i].code] += events[i].value; | ||
74 | + if (events[i].code == REL_X) { | ||
75 | + KdEnqueueMouseEvent (kdMouseInfo, flags, events[i].value, 0); | ||
76 | + } | ||
77 | + else if (events[i].code == REL_Y) { | ||
78 | + KdEnqueueMouseEvent (kdMouseInfo, flags, 0, events[i].value); | ||
79 | + } | ||
80 | + else if (events[i].code == REL_WHEEL) { | ||
81 | + for (j = 0; j < abs (events[i].value); j++) { | ||
82 | + if (events[i].value > 0) | ||
83 | + flags |= KD_BUTTON_4; | ||
84 | + else | ||
85 | + flags |= KD_BUTTON_5; | ||
86 | + | ||
87 | + KdEnqueueMouseEvent (kdMouseInfo, flags, 0, 0); | ||
88 | + | ||
89 | + if (events[i].value > 0) | ||
90 | + flags &= ~KD_BUTTON_4; | ||
91 | + else | ||
92 | + flags &= ~KD_BUTTON_5; | ||
93 | + | ||
94 | + KdEnqueueMouseEvent (kdMouseInfo, flags, 0, 0); | ||
95 | + } /* events[i].code == REL_WHEEL */ | ||
96 | + } | ||
97 | break; | ||
98 | case EV_ABS: | ||
99 | - ke->abs[events[i].code] = events[i].value; | ||
100 | break; | ||
101 | } | ||
102 | } | ||
103 | @@ -173,6 +218,12 @@ | ||
104 | fd = open (kdefaultEvdev[i], 2); | ||
105 | if (fd >= 0) | ||
106 | { | ||
107 | + if (ioctl (fd, EVIOCGRAB, 1) < 0) | ||
108 | + { | ||
109 | + close (fd); | ||
110 | + continue; | ||
111 | + } | ||
112 | + | ||
113 | mi->name = KdSaveString (kdefaultEvdev[i]); | ||
114 | break; | ||
115 | } | ||
116 | @@ -287,7 +338,319 @@ | ||
117 | EvdevFini, | ||
118 | }; | ||
119 | |||
120 | -#if 0 | ||
121 | +/* Keyboard */ | ||
122 | + | ||
123 | +int kbd_fd = -1; | ||
124 | +int EvdevInputType = 0; | ||
125 | + | ||
126 | +KeySym evdevKeymap[(194 - 1 + 1) * 2] = { | ||
127 | +/* These are directly mapped from DOS scanset 0 */ | ||
128 | +/* 1 8 */ XK_Escape, NoSymbol, | ||
129 | +/* 2 9 */ XK_1, XK_exclam, | ||
130 | +/* 3 10 */ XK_2, XK_at, | ||
131 | +/* 4 11 */ XK_3, XK_numbersign, | ||
132 | +/* 5 12 */ XK_4, XK_dollar, | ||
133 | +/* 6 13 */ XK_5, XK_percent, | ||
134 | +/* 7 14 */ XK_6, XK_asciicircum, | ||
135 | +/* 8 15 */ XK_7, XK_ampersand, | ||
136 | +/* 9 16 */ XK_8, XK_asterisk, | ||
137 | +/* 10 17 */ XK_9, XK_parenleft, | ||
138 | +/* 11 18 */ XK_0, XK_parenright, | ||
139 | +/* 12 19 */ XK_minus, XK_underscore, | ||
140 | +/* 13 20 */ XK_equal, XK_plus, | ||
141 | +/* 14 21 */ XK_BackSpace, NoSymbol, | ||
142 | +/* 15 22 */ XK_Tab, NoSymbol, | ||
143 | +/* 16 23 */ XK_Q, NoSymbol, | ||
144 | +/* 17 24 */ XK_W, NoSymbol, | ||
145 | +/* 18 25 */ XK_E, NoSymbol, | ||
146 | +/* 19 26 */ XK_R, NoSymbol, | ||
147 | +/* 20 27 */ XK_T, NoSymbol, | ||
148 | +/* 21 28 */ XK_Y, NoSymbol, | ||
149 | +/* 22 29 */ XK_U, NoSymbol, | ||
150 | +/* 23 30 */ XK_I, NoSymbol, | ||
151 | +/* 24 31 */ XK_O, NoSymbol, | ||
152 | +/* 25 32 */ XK_P, NoSymbol, | ||
153 | +/* 26 33 */ XK_bracketleft, XK_braceleft, | ||
154 | +/* 27 34 */ XK_bracketright, XK_braceright, | ||
155 | +/* 28 35 */ XK_Return, NoSymbol, | ||
156 | +/* 29 36 */ XK_Control_L, NoSymbol, | ||
157 | +/* 30 37 */ XK_A, NoSymbol, | ||
158 | +/* 31 38 */ XK_S, NoSymbol, | ||
159 | +/* 32 39 */ XK_D, NoSymbol, | ||
160 | +/* 33 40 */ XK_F, NoSymbol, | ||
161 | +/* 34 41 */ XK_G, NoSymbol, | ||
162 | +/* 35 42 */ XK_H, NoSymbol, | ||
163 | +/* 36 43 */ XK_J, NoSymbol, | ||
164 | +/* 37 44 */ XK_K, NoSymbol, | ||
165 | +/* 38 45 */ XK_L, NoSymbol, | ||
166 | +/* 39 46 */ XK_semicolon, XK_colon, | ||
167 | +/* 40 47 */ XK_apostrophe, XK_quotedbl, | ||
168 | +/* 41 48 */ XK_grave, XK_asciitilde, | ||
169 | +/* 42 49 */ XK_Shift_L, NoSymbol, | ||
170 | +/* 43 50 */ XK_backslash, XK_bar, | ||
171 | +/* 44 51 */ XK_Z, NoSymbol, | ||
172 | +/* 45 52 */ XK_X, NoSymbol, | ||
173 | +/* 46 53 */ XK_C, NoSymbol, | ||
174 | +/* 47 54 */ XK_V, NoSymbol, | ||
175 | +/* 48 55 */ XK_B, NoSymbol, | ||
176 | +/* 49 56 */ XK_N, NoSymbol, | ||
177 | +/* 50 57 */ XK_M, NoSymbol, | ||
178 | +/* 51 58 */ XK_comma, XK_less, | ||
179 | +/* 52 59 */ XK_period, XK_greater, | ||
180 | +/* 53 60 */ XK_slash, XK_question, | ||
181 | +/* 54 61 */ XK_Shift_R, NoSymbol, | ||
182 | +/* 55 62 */ XK_KP_Multiply, NoSymbol, | ||
183 | +/* 56 63 */ XK_Alt_L, XK_Meta_L, | ||
184 | +/* 57 64 */ XK_space, NoSymbol, | ||
185 | +/* 58 65 */ XK_Caps_Lock, NoSymbol, | ||
186 | +/* 59 66 */ XK_F1, NoSymbol, | ||
187 | +/* 60 67 */ XK_F2, NoSymbol, | ||
188 | +/* 61 68 */ XK_F3, NoSymbol, | ||
189 | +/* 62 69 */ XK_F4, NoSymbol, | ||
190 | +/* 63 70 */ XK_F5, NoSymbol, | ||
191 | +/* 64 71 */ XK_F6, NoSymbol, | ||
192 | +/* 65 72 */ XK_F7, NoSymbol, | ||
193 | +/* 66 73 */ XK_F8, NoSymbol, | ||
194 | +/* 67 74 */ XK_F9, NoSymbol, | ||
195 | +/* 68 75 */ XK_F10, NoSymbol, | ||
196 | +/* 69 76 */ XK_Break, XK_Pause, | ||
197 | +/* 70 77 */ XK_Scroll_Lock, NoSymbol, | ||
198 | +/* 71 78 */ XK_KP_Home, XK_KP_7, | ||
199 | +/* 72 79 */ XK_KP_Up, XK_KP_8, | ||
200 | +/* 73 80 */ XK_KP_Page_Up, XK_KP_9, | ||
201 | +/* 74 81 */ XK_KP_Subtract, NoSymbol, | ||
202 | +/* 75 82 */ XK_KP_Left, XK_KP_4, | ||
203 | +/* 76 83 */ XK_KP_5, NoSymbol, | ||
204 | +/* 77 84 */ XK_KP_Right, XK_KP_6, | ||
205 | +/* 78 85 */ XK_KP_Add, NoSymbol, | ||
206 | +/* 79 86 */ XK_KP_End, XK_KP_1, | ||
207 | +/* 80 87 */ XK_KP_Down, XK_KP_2, | ||
208 | +/* 81 88 */ XK_KP_Page_Down, XK_KP_3, | ||
209 | +/* 82 89 */ XK_KP_Insert, XK_KP_0, | ||
210 | +/* 83 90 */ XK_KP_Delete, XK_KP_Decimal, | ||
211 | +/* 84 91 */ NoSymbol, NoSymbol, | ||
212 | +/* 85 92 */ NoSymbol, NoSymbol, | ||
213 | +/* 86 93 */ NoSymbol, NoSymbol, | ||
214 | +/* 87 94 */ XK_F11, NoSymbol, | ||
215 | +/* 88 95 */ XK_F12, NoSymbol, | ||
216 | + | ||
217 | +/* These are remapped from the extended set (using ExtendMap) */ | ||
218 | + | ||
219 | +/* 89 96 */ XK_Control_R, NoSymbol, | ||
220 | +/* 90 97 */ XK_KP_Enter, NoSymbol, | ||
221 | +/* 91 98 */ XK_KP_Divide, NoSymbol, | ||
222 | +/* 92 99 */ XK_Sys_Req, XK_Print, | ||
223 | +/* 93 100 */ XK_Alt_R, XK_Meta_R, | ||
224 | +/* 94 101 */ XK_Num_Lock, NoSymbol, | ||
225 | +/* 95 102 */ XK_Home, NoSymbol, | ||
226 | +/* 96 103 */ XK_Up, NoSymbol, | ||
227 | +/* 97 104 */ XK_Page_Up, NoSymbol, | ||
228 | +/* 98 105 */ XK_Left, NoSymbol, | ||
229 | +/* 99 106 */ XK_Right, NoSymbol, | ||
230 | +/* 100 107 */ XK_End, NoSymbol, | ||
231 | +/* 101 108 */ XK_Down, NoSymbol, | ||
232 | +/* 102 109 */ XK_Page_Down, NoSymbol, | ||
233 | +/* 103 110 */ XK_Insert, NoSymbol, | ||
234 | +/* 104 111 */ XK_Delete, NoSymbol, | ||
235 | +/* 105 112 */ XK_Super_L, NoSymbol, | ||
236 | +/* 106 113 */ XK_Super_R, NoSymbol, | ||
237 | +/* 107 114 */ XK_Menu, NoSymbol, | ||
238 | +/* 108 115 */ NoSymbol, NoSymbol, | ||
239 | +/* 109 116 */ NoSymbol, NoSymbol, | ||
240 | +/* 110 117 */ NoSymbol, NoSymbol, | ||
241 | +/* 111 118 */ NoSymbol, NoSymbol, | ||
242 | +/* 112 119 */ NoSymbol, NoSymbol, | ||
243 | + | ||
244 | +/* 113 120 */ NoSymbol, NoSymbol, | ||
245 | +/* 114 121 */ NoSymbol, NoSymbol, | ||
246 | +/* 115 122 */ NoSymbol, NoSymbol, | ||
247 | +/* 116 123 */ NoSymbol, NoSymbol, | ||
248 | +/* 117 124 */ NoSymbol, NoSymbol, | ||
249 | +/* 118 125 */ NoSymbol, NoSymbol, | ||
250 | +/* 119 126 */ NoSymbol, NoSymbol, | ||
251 | +/* 120 127 */ NoSymbol, NoSymbol, | ||
252 | +/* 121 128 */ NoSymbol, NoSymbol, | ||
253 | +/* 122 129 */ NoSymbol, NoSymbol, | ||
254 | +/* 123 130 */ NoSymbol, NoSymbol, | ||
255 | +/* 124 131 */ NoSymbol, NoSymbol, | ||
256 | +/* 125 132 */ NoSymbol, NoSymbol, | ||
257 | +/* 126 133 */ NoSymbol, NoSymbol, | ||
258 | +/* 127 134 */ NoSymbol, NoSymbol, | ||
259 | +/* 128 135 */ NoSymbol, NoSymbol, | ||
260 | +/* 129 136 */ NoSymbol, NoSymbol, | ||
261 | +/* 130 137 */ NoSymbol, NoSymbol, | ||
262 | +/* 131 138 */ NoSymbol, NoSymbol, | ||
263 | +/* 132 139 */ NoSymbol, NoSymbol, | ||
264 | +/* 133 140 */ NoSymbol, NoSymbol, | ||
265 | +/* 134 141 */ NoSymbol, NoSymbol, | ||
266 | +/* 135 142 */ NoSymbol, NoSymbol, | ||
267 | +/* 136 143 */ NoSymbol, NoSymbol, | ||
268 | +/* 137 144 */ NoSymbol, NoSymbol, | ||
269 | +/* 138 145 */ NoSymbol, NoSymbol, | ||
270 | +/* 139 146 */ NoSymbol, NoSymbol, | ||
271 | +/* 140 147 */ NoSymbol, NoSymbol, | ||
272 | +/* 141 148 */ NoSymbol, NoSymbol, | ||
273 | +/* 142 149 */ NoSymbol, NoSymbol, | ||
274 | +/* 143 150 */ NoSymbol, NoSymbol, | ||
275 | +/* 144 151 */ NoSymbol, NoSymbol, | ||
276 | +/* 145 152 */ NoSymbol, NoSymbol, | ||
277 | +/* 146 153 */ NoSymbol, NoSymbol, | ||
278 | +/* 147 154 */ NoSymbol, NoSymbol, | ||
279 | +/* 148 155 */ NoSymbol, NoSymbol, | ||
280 | +/* 149 156 */ NoSymbol, NoSymbol, | ||
281 | +/* 150 157 */ NoSymbol, NoSymbol, | ||
282 | +/* 151 158 */ NoSymbol, NoSymbol, | ||
283 | +/* 152 159 */ NoSymbol, NoSymbol, | ||
284 | +/* 153 160 */ NoSymbol, NoSymbol, | ||
285 | +/* 154 161 */ NoSymbol, NoSymbol, | ||
286 | +/* 155 162 */ NoSymbol, NoSymbol, | ||
287 | +/* 156 163 */ NoSymbol, NoSymbol, | ||
288 | +/* 157 164 */ NoSymbol, NoSymbol, | ||
289 | +/* 158 165 */ NoSymbol, NoSymbol, | ||
290 | +/* 159 166 */ NoSymbol, NoSymbol, | ||
291 | +/* 160 167 */ NoSymbol, NoSymbol, | ||
292 | +/* 161 168 */ NoSymbol, NoSymbol, | ||
293 | +/* 162 169 */ NoSymbol, NoSymbol, | ||
294 | +/* 163 170 */ NoSymbol, NoSymbol, | ||
295 | +/* 164 171 */ NoSymbol, NoSymbol, | ||
296 | +/* 165 172 */ NoSymbol, NoSymbol, | ||
297 | +/* 166 173 */ NoSymbol, NoSymbol, | ||
298 | +/* 167 174 */ NoSymbol, NoSymbol, | ||
299 | +/* 168 175 */ NoSymbol, NoSymbol, | ||
300 | +/* 169 176 */ NoSymbol, NoSymbol, | ||
301 | +/* 170 177 */ NoSymbol, NoSymbol, | ||
302 | +/* 171 178 */ NoSymbol, NoSymbol, | ||
303 | +/* 172 179 */ NoSymbol, NoSymbol, | ||
304 | +/* 173 180 */ NoSymbol, NoSymbol, | ||
305 | +/* 174 181 */ NoSymbol, NoSymbol, | ||
306 | +/* 175 182 */ NoSymbol, NoSymbol, | ||
307 | +/* 176 183 */ NoSymbol, NoSymbol, | ||
308 | +/* 177 184 */ NoSymbol, NoSymbol, | ||
309 | +/* 178 185 */ NoSymbol, NoSymbol, | ||
310 | +/* 179 186 */ NoSymbol, NoSymbol, | ||
311 | +/* 180 187 */ NoSymbol, NoSymbol, | ||
312 | +/* 181 188 */ NoSymbol, NoSymbol, | ||
313 | +/* 182 189 */ NoSymbol, NoSymbol, | ||
314 | +/* 183 190 */ NoSymbol, NoSymbol, | ||
315 | +/* 184 191 */ NoSymbol, NoSymbol, | ||
316 | +/* 185 192 */ NoSymbol, NoSymbol, | ||
317 | +/* 186 193 */ NoSymbol, NoSymbol, | ||
318 | +/* 187 194 */ NoSymbol, NoSymbol, | ||
319 | +/* 188 195 */ NoSymbol, NoSymbol, | ||
320 | +/* 189 196 */ NoSymbol, NoSymbol, | ||
321 | +/* 190 197 */ NoSymbol, NoSymbol, | ||
322 | +/* 191 198 */ NoSymbol, NoSymbol, | ||
323 | +/* 192 199 */ NoSymbol, NoSymbol, | ||
324 | +/* 193 200 */ NoSymbol, NoSymbol, | ||
325 | +/* 194 201 */ NoSymbol, NoSymbol, | ||
326 | +}; | ||
327 | + | ||
328 | +static void | ||
329 | +EvdevKbdRead (int fd, void *closure) | ||
330 | +{ | ||
331 | + int i, n; | ||
332 | + struct input_event events[NUM_EVENTS]; | ||
333 | + | ||
334 | + n = read (fd, &events, NUM_EVENTS * sizeof (struct input_event)); | ||
335 | + if (n <= 0) | ||
336 | + return; | ||
337 | + | ||
338 | + n /= sizeof (struct input_event); | ||
339 | + | ||
340 | + for (i = 0; i < n; i++) | ||
341 | + { | ||
342 | + if (events[i].type == EV_KEY) | ||
343 | + KdEnqueueKeyboardEvent (events[i].code, !events[i].value); | ||
344 | + } | ||
345 | +} | ||
346 | + | ||
347 | +static void | ||
348 | +EvdevKbdLoad (void) | ||
349 | +{ | ||
350 | + kdMinScanCode = 0; | ||
351 | + kdMaxScanCode = 193; | ||
352 | + kdKeymapWidth = 2; | ||
353 | + memcpy (kdKeymap, evdevKeymap, sizeof (evdevKeymap)); | ||
354 | +} | ||
355 | + | ||
356 | +static int | ||
357 | +EvdevKbdInit (void) | ||
358 | +{ | ||
359 | + int fd, i; | ||
360 | + | ||
361 | + if (!EvdevInputType) | ||
362 | + EvdevInputType = KdAllocInputType (); | ||
363 | + | ||
364 | + if (!kdKeyboard) | ||
365 | + { | ||
366 | + for (i = 0; i < NUM_DEFAULT_EVDEV; i++) | ||
367 | + { | ||
368 | + fd = open (kdefaultEvdev[i], 2); | ||
369 | + if (fd >= 0) | ||
370 | + { | ||
371 | + kdKeyboard = KdSaveString (kdefaultEvdev[i]); | ||
372 | + break; | ||
373 | + } | ||
374 | + } | ||
375 | + } | ||
376 | + else | ||
377 | + { | ||
378 | + fd = open (kdKeyboard, O_RDWR); | ||
379 | + if (fd < 0) | ||
380 | + return FALSE; | ||
381 | + } | ||
382 | + | ||
383 | + if (ioctl (fd, EVIOCGRAB, 1) < 0) | ||
384 | + { | ||
385 | + close (fd); | ||
386 | + return FALSE; | ||
387 | + } | ||
388 | + | ||
389 | + if (!KdRegisterFd (EvdevInputType, fd, EvdevKbdRead, NULL)) | ||
390 | + return FALSE; | ||
391 | + | ||
392 | + kbd_fd = fd; | ||
393 | + return TRUE; | ||
394 | +} | ||
395 | + | ||
396 | +static void | ||
397 | +EvdevKbdFini (void) | ||
398 | +{ | ||
399 | +} | ||
400 | + | ||
401 | +static void | ||
402 | +EvdevKbdLeds (int leds) | ||
403 | +{ | ||
404 | + struct input_event event; | ||
405 | + | ||
406 | + memset(&event, 0, sizeof(event)); | ||
407 | + | ||
408 | + event.type = EV_LED; | ||
409 | + event.code = LED_CAPSL; | ||
410 | + event.value = leds & (1 << 0) ? 1 : 0; | ||
411 | + write(kbd_fd, (char *) &event, sizeof(event)); | ||
412 | + | ||
413 | + event.type = EV_LED; | ||
414 | + event.code = LED_NUML; | ||
415 | + event.value = leds & (1 << 1) ? 1 : 0; | ||
416 | + write(kbd_fd, (char *) &event, sizeof(event)); | ||
417 | + | ||
418 | + event.type = EV_LED; | ||
419 | + event.code = LED_SCROLLL; | ||
420 | + event.value = leds & (1 << 2) ? 1 : 0; | ||
421 | + write(kbd_fd, (char *) &event, sizeof(event)); | ||
422 | + | ||
423 | + event.type = EV_LED; | ||
424 | + event.code = LED_COMPOSE; | ||
425 | + event.value = leds & (1 << 3) ? 1 : 0; | ||
426 | + write(kbd_fd, (char *) &event, sizeof(event)); | ||
427 | +} | ||
428 | + | ||
429 | +static void | ||
430 | +EvdevKbdBell (int volume, int frequency, int duration) | ||
431 | +{ | ||
432 | +} | ||
433 | + | ||
434 | KdKeyboardFuncs LinuxEvdevKeyboardFuncs = { | ||
435 | EvdevKbdLoad, | ||
436 | EvdevKbdInit, | ||
437 | @@ -296,4 +659,4 @@ | ||
438 | EvdevKbdFini, | ||
439 | 0, | ||
440 | }; | ||
441 | -#endif | ||
442 | + | ||
443 | diff -u -r --exclude=CVS --exclude=Makefile --exclude='*.o' --exclude=ephyr --exclude='*.Po' xserver.original/hw/kdrive/src/kdrive.c xserver/hw/kdrive/src/kdrive.c | ||
444 | --- xserver.original/hw/kdrive/src/kdrive.c 2005-12-16 10:36:07.000000000 -0200 | ||
445 | +++ xserver/hw/kdrive/src/kdrive.c 2005-12-16 10:37:09.000000000 -0200 | ||
446 | @@ -73,6 +73,7 @@ | ||
447 | Bool kdEnabled; | ||
448 | int kdSubpixelOrder; | ||
449 | int kdVirtualTerminal = -1; | ||
450 | +char *kdKeyboard = 0; | ||
451 | Bool kdSwitchPending; | ||
452 | char *kdSwitchCmd; | ||
453 | DDXPointRec kdOrigin; | ||
454 | @@ -795,6 +796,14 @@ | ||
455 | UseMsg (); | ||
456 | return 2; | ||
457 | } | ||
458 | + if (!strcmp (argv[i], "-keyboard")) | ||
459 | + { | ||
460 | + if ((i+1) < argc) | ||
461 | + kdKeyboard = argv[i+1]; | ||
462 | + else | ||
463 | + UseMsg (); | ||
464 | + return 2; | ||
465 | + } | ||
466 | if (!strcmp (argv[i], "-rgba")) | ||
467 | { | ||
468 | if ((i+1) < argc) | ||
469 | diff -u -r --exclude=CVS --exclude=Makefile --exclude='*.o' --exclude=ephyr --exclude='*.Po' xserver.original/hw/kdrive/src/kdrive.h xserver/hw/kdrive/src/kdrive.h | ||
470 | --- xserver.original/hw/kdrive/src/kdrive.h 2005-12-16 10:36:07.000000000 -0200 | ||
471 | +++ xserver/hw/kdrive/src/kdrive.h 2005-12-16 10:37:09.000000000 -0200 | ||
472 | @@ -416,6 +416,7 @@ | ||
473 | extern Bool kdDisableZaphod; | ||
474 | extern Bool kdDontZap; | ||
475 | extern int kdVirtualTerminal; | ||
476 | +extern char *kdKeyboard; | ||
477 | extern char *kdSwitchCmd; | ||
478 | extern KdOsFuncs *kdOsFuncs; | ||
479 | |||
480 | @@ -769,7 +770,7 @@ | ||
481 | ProcessInputEvents (void); | ||
482 | |||
483 | extern KdMouseFuncs LinuxMouseFuncs; | ||
484 | -extern KdMouseFuncs LinuxEvdevFuncs; | ||
485 | +extern KdMouseFuncs LinuxEvdevMouseFuncs; | ||
486 | extern KdMouseFuncs Ps2MouseFuncs; | ||
487 | extern KdMouseFuncs BusMouseFuncs; | ||
488 | extern KdMouseFuncs MsMouseFuncs; | ||
489 | @@ -777,6 +778,7 @@ | ||
490 | extern KdMouseFuncs TsFuncs; | ||
491 | #endif | ||
492 | extern KdKeyboardFuncs LinuxKeyboardFuncs; | ||
493 | +extern KdKeyboardFuncs LinuxEvdevKeyboardFuncs; | ||
494 | extern KdOsFuncs LinuxFuncs; | ||
495 | |||
496 | extern KdMouseFuncs VxWorksMouseFuncs; | ||
497 | diff -u -r --exclude=CVS --exclude=Makefile --exclude='*.o' --exclude=ephyr --exclude='*.Po' xserver.original/hw/kdrive/src/kinput.c xserver/hw/kdrive/src/kinput.c | ||
498 | --- xserver.original/hw/kdrive/src/kinput.c 2005-12-16 10:36:07.000000000 -0200 | ||
499 | +++ xserver/hw/kdrive/src/kinput.c 2005-12-16 10:37:09.000000000 -0200 | ||
500 | @@ -1300,6 +1300,7 @@ | ||
501 | xE.u.u.type = KeyPress; | ||
502 | xE.u.u.detail = key_code; | ||
503 | |||
504 | +#ifndef XKB | ||
505 | switch (KEYCOL1(key_code)) | ||
506 | { | ||
507 | case XK_Num_Lock: | ||
508 | @@ -1313,6 +1314,7 @@ | ||
509 | else | ||
510 | xE.u.u.type = KeyPress; | ||
511 | } | ||
512 | +#endif | ||
513 | |||
514 | /* | ||
515 | * Check pressed keys which are already down | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/kdrive-use-evdev.patch b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/kdrive-use-evdev.patch new file mode 100644 index 0000000000..28d7325601 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/kdrive-use-evdev.patch | |||
@@ -0,0 +1,54 @@ | |||
1 | --- xserver/hw/kdrive/fbdev/fbinit.c~ 2006-01-31 17:09:33.000000000 +0100 | ||
2 | +++ xserver/hw/kdrive/fbdev/fbinit.c 2006-01-31 17:11:55.000000000 +0100 | ||
3 | @@ -28,6 +28,8 @@ | ||
4 | #endif | ||
5 | #include <fbdev.h> | ||
6 | |||
7 | +extern int use_evdev; | ||
8 | + | ||
9 | void | ||
10 | InitCard (char *name) | ||
11 | { | ||
12 | @@ -45,7 +47,10 @@ | ||
13 | void | ||
14 | InitInput (int argc, char **argv) | ||
15 | { | ||
16 | - KdInitInput (&LinuxMouseFuncs, &LinuxKeyboardFuncs); | ||
17 | + if (use_evdev) | ||
18 | + KdInitInput (&LinuxEvdevMouseFuncs, &LinuxEvdevKeyboardFuncs); | ||
19 | + else | ||
20 | + KdInitInput (&LinuxMouseFuncs, &LinuxKeyboardFuncs); | ||
21 | #ifdef TOUCHSCREEN | ||
22 | KdAddMouseDriver (&TsFuncs); | ||
23 | #endif | ||
24 | --- xserver/hw/kdrive/src/kdrive.c.orig 2006-01-31 17:13:28.000000000 +0100 | ||
25 | +++ xserver/hw/kdrive/src/kdrive.c 2006-01-31 17:15:28.000000000 +0100 | ||
26 | @@ -44,6 +44,8 @@ | ||
27 | #include "dpmsproc.h" | ||
28 | #endif | ||
29 | |||
30 | +int use_evdev = 0; | ||
31 | + | ||
32 | typedef struct _kdDepths { | ||
33 | CARD8 depth; | ||
34 | CARD8 bpp; | ||
35 | @@ -687,6 +689,7 @@ | ||
36 | ErrorF("-videoTest Start the server, pause momentarily and exit\n"); | ||
37 | ErrorF("-origin X,Y Locates the next screen in the the virtual screen (Xinerama)\n"); | ||
38 | ErrorF("-mouse path[,n] Filename of mouse device, n is number of buttons\n"); | ||
39 | + ErrorF("-use-evdev Use Linux evdev input\n"); | ||
40 | ErrorF("-switchCmd Command to execute on vt switch\n"); | ||
41 | ErrorF("-nozap Don't terminate server on Ctrl+Alt+Backspace\n"); | ||
42 | ErrorF("vtxx Use virtual terminal xx instead of the next available\n"); | ||
43 | @@ -796,6 +799,11 @@ | ||
44 | UseMsg (); | ||
45 | return 2; | ||
46 | } | ||
47 | + if (!strcmp (argv[i], "-use-evdev")) | ||
48 | + { | ||
49 | + use_evdev = 1; | ||
50 | + return 1; | ||
51 | + } | ||
52 | if (!strcmp (argv[i], "-keyboard")) | ||
53 | { | ||
54 | if ((i+1) < argc) | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/keyboard-resume-workaround.patch b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/keyboard-resume-workaround.patch new file mode 100644 index 0000000000..d614b547a8 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/keyboard-resume-workaround.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | Index: xorg-server-1.4/hw/kdrive/linux/keyboard.c | ||
2 | =================================================================== | ||
3 | --- xorg-server-1.4.orig/hw/kdrive/linux/keyboard.c 2007-09-29 18:31:15.000000000 +0200 | ||
4 | +++ xorg-server-1.4/hw/kdrive/linux/keyboard.c 2007-09-29 18:33:02.000000000 +0200 | ||
5 | @@ -486,6 +486,8 @@ | ||
6 | ki->minScanCode = minKeyCode; | ||
7 | ki->maxScanCode = maxKeyCode; | ||
8 | #endif | ||
9 | + ki->minScanCode = 0; | ||
10 | + ki->maxScanCode = NR_KEYS; | ||
11 | } | ||
12 | |||
13 | /* | ||
14 | @@ -743,11 +743,6 @@ | ||
15 | cfsetispeed(&nTty, 9600); | ||
16 | cfsetospeed(&nTty, 9600); | ||
17 | tcsetattr(fd, TCSANOW, &nTty); | ||
18 | - /* | ||
19 | - * Flush any pending keystrokes | ||
20 | - */ | ||
21 | - while ((n = read (fd, buf, sizeof (buf))) > 0) | ||
22 | - ; | ||
23 | KdRegisterFd (fd, LinuxKeyboardRead, ki); | ||
24 | return Success; | ||
25 | } | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/no-serial-probing.patch b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/no-serial-probing.patch new file mode 100644 index 0000000000..35ccadaa8d --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/no-serial-probing.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | --- xserver/hw/kdrive/linux/mouse.c.orig 2004-05-13 14:25:51.000000000 -0700 | ||
2 | +++ xserver/hw/kdrive/linux/mouse.c 2005-09-22 12:20:47.000000000 -0700 | ||
3 | @@ -927,8 +927,10 @@ char *kdefaultMouse[] = { | ||
4 | "/dev/psaux", | ||
5 | "/dev/input/mice", | ||
6 | "/dev/adbmouse", | ||
7 | +#ifdef BREAK_MY_SERIAL_CONSOLE | ||
8 | "/dev/ttyS0", | ||
9 | "/dev/ttyS1", | ||
10 | +#endif | ||
11 | }; | ||
12 | |||
13 | #define NUM_DEFAULT_MOUSE (sizeof (kdefaultMouse) / sizeof (kdefaultMouse[0])) | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/nodolt.patch b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/nodolt.patch new file mode 100644 index 0000000000..6b34032a39 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/nodolt.patch | |||
@@ -0,0 +1,12 @@ | |||
1 | Index: git/configure.ac | ||
2 | =================================================================== | ||
3 | --- git.orig/configure.ac 2009-01-15 20:35:31.000000000 +0000 | ||
4 | +++ git/configure.ac 2009-01-15 20:35:38.000000000 +0000 | ||
5 | @@ -62,7 +62,6 @@ | ||
6 | AC_LIBTOOL_WIN32_DLL | ||
7 | AC_DISABLE_STATIC | ||
8 | AC_PROG_LIBTOOL | ||
9 | -DOLT | ||
10 | AC_PROG_MAKE_SET | ||
11 | PKG_PROG_PKG_CONFIG | ||
12 | AC_PROG_LEX | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/optional-xkb.patch b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/optional-xkb.patch new file mode 100644 index 0000000000..a580b500b7 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.7.99.2/optional-xkb.patch | |||
@@ -0,0 +1,58 @@ | |||
1 | Index: xorg-server-1.2.0/Makefile.am | ||
2 | =================================================================== | ||
3 | --- xorg-server-1.2.0.orig/Makefile.am 2007-01-23 06:39:15.000000000 +0100 | ||
4 | +++ xorg-server-1.2.0/Makefile.am 2007-03-28 20:26:19.000000000 +0200 | ||
5 | @@ -30,6 +30,10 @@ | ||
6 | XINPUT_DIR=Xi | ||
7 | endif | ||
8 | |||
9 | +if XKB | ||
10 | +XKB_DIR=xkb | ||
11 | +endif | ||
12 | + | ||
13 | if DBE | ||
14 | DBE_DIR=dbe | ||
15 | endif | ||
16 | @@ -46,7 +50,7 @@ | ||
17 | randr \ | ||
18 | render \ | ||
19 | $(XINPUT_DIR) \ | ||
20 | - xkb \ | ||
21 | + $(XKB_DIR) \ | ||
22 | $(DBE_DIR) \ | ||
23 | $(MFB_DIR) \ | ||
24 | $(AFB_DIR) \ | ||
25 | Index: xorg-server-1.2.0/configure.ac | ||
26 | =================================================================== | ||
27 | --- xorg-server-1.2.0.orig/configure.ac 2007-01-23 06:39:15.000000000 +0100 | ||
28 | +++ xorg-server-1.2.0/configure.ac 2007-03-28 20:27:13.000000000 +0200 | ||
29 | @@ -428,6 +428,7 @@ | ||
30 | AC_ARG_ENABLE(dpms, AS_HELP_STRING([--disable-dpms], [Build DPMS extension (default: enabled)]), [DPMSExtension=$enableval], [DPMSExtension=yes]) | ||
31 | AC_ARG_ENABLE(xinput, AS_HELP_STRING([--disable-xinput], [Build XInput Extension (default: enabled)]), [XINPUT=$enableval], [XINPUT=yes]) | ||
32 | AC_ARG_ENABLE(xfree86-utils, AS_HELP_STRING([--enable-xfree86-utils], [Build xfree86 DDX utilities (default: enabled)]), [XF86UTILS=$enableval], [XF86UTILS=yes]) | ||
33 | +AC_ARG_ENABLE(xkb, AS_HELP_STRING([--disable-xkb], [Build XKB (default: enabled)]), [XKB=$enableval], [XKB=yes]) | ||
34 | |||
35 | dnl DDXes. | ||
36 | AC_ARG_ENABLE(xorg, AS_HELP_STRING([--enable-xorg], [Build Xorg server (default: auto)]), [XORG=$enableval], [XORG=auto]) | ||
37 | @@ -754,12 +755,15 @@ | ||
38 | |||
39 | AC_DEFINE(SHAPE, 1, [Support SHAPE extension]) | ||
40 | |||
41 | -AC_DEFINE(XKB, 1, [Build XKB]) | ||
42 | -AC_DEFINE(XKB_IN_SERVER, 1, [Build XKB server]) | ||
43 | -AC_DEFINE(XKB_DFLT_DISABLED, 0, [Disable XKB per default]) | ||
44 | -REQUIRED_MODULES="$REQUIRED_MODULES xkbfile" | ||
45 | -XKB_LIB='$(top_builddir)/xkb/libxkb.la' | ||
46 | -XKB_STUB_LIB='$(top_builddir)/xkb/libxkbstubs.la' | ||
47 | +AM_CONDITIONAL(XKB, [test "x$XKB" = xyes]) | ||
48 | +if test "x$XKB" = xyes; then | ||
49 | + AC_DEFINE(XKB, 1, [Build XKB]) | ||
50 | + AC_DEFINE(XKB_IN_SERVER, 1, [Build XKB server]) | ||
51 | + AC_DEFINE(XKB_DFLT_DISABLED, 0, [Disable XKB per default]) | ||
52 | + REQUIRED_MODULES="$REQUIRED_MODULES xkbfile" | ||
53 | + XKB_LIB='$(top_builddir)/xkb/libxkb.la' | ||
54 | + XKB_STUB_LIB='$(top_builddir)/xkb/libxkbstubs.la' | ||
55 | +fi | ||
56 | |||
57 | AC_CHECK_FUNC(strcasecmp, [], AC_DEFINE([NEED_STRCASECMP], 1, | ||
58 | [Do not have `strcasecmp'.])) | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive.inc b/meta/recipes-graphics/xorg-xserver/xserver-kdrive.inc new file mode 100644 index 0000000000..8c93127657 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive.inc | |||
@@ -0,0 +1,107 @@ | |||
1 | LICENSE = "MIT" | ||
2 | DEPENDS = "compositeproto damageproto fixesproto recordproto resourceproto scrnsaverproto xineramaproto videoproto xextproto xproto \ | ||
3 | libxau libxext libxdmcp libxfont libxrandr tslib virtual/libx11 xtrans bigreqsproto xcmiscproto" | ||
4 | |||
5 | PROVIDES = "virtual/xserver" | ||
6 | PACKAGES =+ "xserver-kdrive-fbdev \ | ||
7 | xserver-kdrive-sdl \ | ||
8 | xserver-kdrive-fake \ | ||
9 | xserver-kdrive-xephyr \ | ||
10 | xserver-kdrive-epson \ | ||
11 | xserver-kdrive-ati \ | ||
12 | xserver-kdrive-chips \ | ||
13 | xserver-kdrive-i810 \ | ||
14 | xserver-kdrive-mach64 \ | ||
15 | xserver-kdrive-mga \ | ||
16 | xserver-kdrive-neomagic \ | ||
17 | xserver-kdrive-nvidia \ | ||
18 | xserver-kdrive-pm2 \ | ||
19 | xserver-kdrive-r128 \ | ||
20 | xserver-kdrive-smi \ | ||
21 | xserver-kdrive-vesa \ | ||
22 | xserver-kdrive-via \ | ||
23 | xserver-kdrive-w100 \ | ||
24 | " | ||
25 | |||
26 | SECTION = "x11/base" | ||
27 | DESCRIPTION = "X server from freedesktop.org" | ||
28 | DESCRIPTION_xserver-kdrive-fbdev = "X server from freedesktop.org, supporting generic framebuffer devices" | ||
29 | DESCRIPTION_xserver-kdrive-fake = "Fake X server" | ||
30 | DESCRIPTION_xserver-kdrive-xephyr = "X server in an X window" | ||
31 | DESCRIPTION_xserver-kdrive-epson = "X server from freedesktop.org, supporting Epson S1D13806 devices" | ||
32 | DESCRIPTION_xserver-kdrive-sdl = "X server from freedesktop.org, SDL version" | ||
33 | DESCRIPTION_xserver-kdrive-w100 = "X server from freedesktop.org, supporting the ATI imageon w100 chipset" | ||
34 | DESCRIPTION_xserver-kdrive-ati = "X server from freedesktop.org, supporting ATI devices" | ||
35 | DESCRIPTION_xserver-kdrive-chips = "X server from freedesktop.org, supporting Chips chipsets" | ||
36 | DESCRIPTION_xserver-kdrive-i810 = "X server from freedesktop.org, supporting Intel chipsets" | ||
37 | DESCRIPTION_xserver-kdrive-imageon = "X server from freedesktop.org, supporting the ATI imageon 100 chipset" | ||
38 | DESCRIPTION_xserver-kdrive-mach64 = "X server from freedesktop.org, supporting mach64 chipsets" | ||
39 | DESCRIPTION_xserver-kdrive-mga = "X server from freedesktop.org, supporting mga chipsets" | ||
40 | DESCRIPTION_xserver-kdrive-neomagic = "X server from freedesktop.org, supporting neomagic chipsets" | ||
41 | DESCRIPTION_xserver-kdrive-nvidia = "X server from freedesktop.org, supporting nvidia devices" | ||
42 | DESCRIPTION_xserver-kdrive-pm2 = "X server from freedesktop.org, supporting Permedia2 chipsets" | ||
43 | DESCRIPTION_xserver-kdrive-r128 = "X server from freedesktop.org, supporting rage128 chipsets" | ||
44 | DESCRIPTION_xserver-kdrive-smi = "X server from freedesktop.org, supporting Silicon Motion devices" | ||
45 | DESCRIPTION_xserver-kdrive-vesa = "X server from freedesktop.org, supporting any card with a VESA, VGA or even EGA BIOS. x86 hardware only" | ||
46 | DESCRIPTION_xserver-kdrive-via = "X server from freedesktop.org, supporting VIA chipsets" | ||
47 | |||
48 | FILES_${PN} += "${libdir}/xserver/SecurityPolicy" | ||
49 | ALLOW_EMPTY_${PN} = "1" | ||
50 | |||
51 | FILES_xserver-kdrive-fbdev = "${bindir}/Xfbdev" | ||
52 | FILES_xserver-kdrive-fake = "${bindir}/Xfake" | ||
53 | FILES_xserver-kdrive-xephyr = "${bindir}/Xephyr" | ||
54 | FILES_xserver-kdrive-epson = "${bindir}/Xepson" | ||
55 | FILES_xserver-kdrive-sdl = "${bindir}/Xsdl" | ||
56 | FILES_xserver-kdrive-w100 = "${bindir}/Xw100" | ||
57 | FILES_xserver-kdrive-ati = "${bindir}/Xati" | ||
58 | FILES_xserver-kdrive-chips = "${bindir}/Xchips" | ||
59 | FILES_xserver-kdrive-i810 = "${bindir}/Xi810" | ||
60 | FILES_xserver-kdrive-imageon = "${bindir}/Ximageon" | ||
61 | FILES_xserver-kdrive-mach64 = "${bindir}/Xmach64" | ||
62 | FILES_xserver-kdrive-mga = "${bindir}/Xmga" | ||
63 | FILES_xserver-kdrive-neomagic = "${bindir}/Xneomagic" | ||
64 | FILES_xserver-kdrive-nvidia = "${bindir}/Xnvidia" | ||
65 | FILES_xserver-kdrive-pm2 = "${bindir}/Xpm2" | ||
66 | FILES_xserver-kdrive-r128 = "${bindir}/Xr128" | ||
67 | FILES_xserver-kdrive-smi = "${bindir}/Xsmi" | ||
68 | FILES_xserver-kdrive-vesa = "${bindir}/Xvesa" | ||
69 | FILES_xserver-kdrive-via = "${bindir}/Xvia" | ||
70 | |||
71 | RDEPENDS_xserver-kdrive-fbdev = "${PN}" | ||
72 | RDEPENDS_xserver-kdrive-fake = "${PN}" | ||
73 | RDEPENDS_xserver-kdrive-xephyr = "${PN}" | ||
74 | RDEPENDS_xserver-kdrive-epson = "${PN}" | ||
75 | RDEPENDS_xserver-kdrive-sdl = "${PN}" | ||
76 | RDEPENDS_xserver-kdrive-w100 = "${PN}" | ||
77 | RDEPENDS_xserver-kdrive-ati = "${PN}" | ||
78 | RDEPENDS_xserver-kdrive-chips = "${PN}" | ||
79 | RDEPENDS_xserver-kdrive-i810 = "${PN}" | ||
80 | RDEPENDS_xserver-kdrive-mach64 = "${PN}" | ||
81 | RDEPENDS_xserver-kdrive-mga = "${PN}" | ||
82 | RDEPENDS_xserver-kdrive-neomagic = "${PN}" | ||
83 | RDEPENDS_xserver-kdrive-nvidia = "${PN}" | ||
84 | RDEPENDS_xserver-kdrive-pm2 = "${PN}" | ||
85 | RDEPENDS_xserver-kdrive-r128 = "${PN}" | ||
86 | RDEPENDS_xserver-kdrive-smi = "${PN}" | ||
87 | RDEPENDS_xserver-kdrive-vesa = "${PN}" | ||
88 | RDEPENDS_xserver-kdrive-via = "${PN}" | ||
89 | |||
90 | inherit autotools pkgconfig | ||
91 | |||
92 | ARM_INSTRUCTION_SET = "arm" | ||
93 | |||
94 | EXTRA_OECONF = "--enable-composite --enable-kdrive \ | ||
95 | --disable-dga --disable-dri --disable-xinerama \ | ||
96 | --disable-xf86misc --disable-xf86vidmode \ | ||
97 | --disable-xorg --disable-xorgcfg \ | ||
98 | --disable-xkb --disable-xnest --disable-xvfb \ | ||
99 | --disable-xevie --disable-xprint --disable-xtrap \ | ||
100 | --disable-dmx \ | ||
101 | --with-default-font-path=built-ins \ | ||
102 | --enable-tslib --enable-xcalibrate \ | ||
103 | ac_cv_file__usr_share_X11_sgml_defs_ent=no" | ||
104 | |||
105 | do_configure_prepend() { | ||
106 | sed -i -e 's/tslib-0.0/tslib-1.0/' ${S}/configure.ac | ||
107 | } | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive/disable-apm.patch b/meta/recipes-graphics/xorg-xserver/xserver-kdrive/disable-apm.patch new file mode 100644 index 0000000000..bd8842721b --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive/disable-apm.patch | |||
@@ -0,0 +1,20 @@ | |||
1 | --- xserver/hw/kdrive/linux/linux.c.orig 2005-04-23 15:56:13.988849232 +0000 | ||
2 | +++ xserver/hw/kdrive/linux/linux.c 2005-04-23 15:57:05.001094192 +0000 | ||
3 | @@ -342,7 +342,7 @@ | ||
4 | /* | ||
5 | * Open the APM driver | ||
6 | */ | ||
7 | - LinuxApmFd = open ("/dev/apm_bios", 2); | ||
8 | + /*LinuxApmFd = open ("/dev/apm_bios", 2); | ||
9 | if (LinuxApmFd < 0 && errno == ENOENT) | ||
10 | LinuxApmFd = open ("/dev/misc/apm_bios", 2); | ||
11 | if (LinuxApmFd >= 0) | ||
12 | @@ -352,7 +352,7 @@ | ||
13 | RegisterBlockAndWakeupHandlers (LinuxApmBlock, LinuxApmWakeup, 0); | ||
14 | AddEnabledDevice (LinuxApmFd); | ||
15 | } | ||
16 | - | ||
17 | + */ | ||
18 | /* | ||
19 | * now get the VT | ||
20 | */ | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive/disable-xf86-dga-xorgcfg.patch b/meta/recipes-graphics/xorg-xserver/xserver-kdrive/disable-xf86-dga-xorgcfg.patch new file mode 100644 index 0000000000..ccc19139c8 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive/disable-xf86-dga-xorgcfg.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | Index: xorg-server-1.3.0.0/configure.ac | ||
2 | =================================================================== | ||
3 | --- xorg-server-1.3.0.0.orig/configure.ac 2007-04-20 03:23:40.000000000 +0200 | ||
4 | +++ xorg-server-1.3.0.0/configure.ac 2007-05-09 16:51:34.000000000 +0200 | ||
5 | @@ -520,7 +520,11 @@ | ||
6 | XEXTXORG_LIB='$(top_builddir)/Xext/libXextbuiltin.la' | ||
7 | |||
8 | dnl Core modules for most extensions, et al. | ||
9 | +if test "$KDRIVE" = yes; then | ||
10 | +REQUIRED_MODULES="[randrproto >= 1.2] renderproto [fixesproto >= 4.0] [damageproto >= 1.1] xcmiscproto xextproto xproto xtrans xf86bigfontproto [scrnsaverproto >= 1.1] bigreqsproto resourceproto fontsproto inputproto [kbproto >= 1.0.3]" | ||
11 | +else | ||
12 | REQUIRED_MODULES="[randrproto >= 1.2] renderproto [fixesproto >= 4.0] [damageproto >= 1.1] xcmiscproto xextproto xproto xtrans xf86miscproto xf86vidmodeproto xf86bigfontproto [scrnsaverproto >= 1.1] bigreqsproto resourceproto fontsproto inputproto xf86dgaproto [kbproto >= 1.0.3]" | ||
13 | +fi | ||
14 | REQUIRED_LIBS="xfont xau fontenc" | ||
15 | |||
16 | AM_CONDITIONAL(XV, [test "x$XV" = xyes]) | ||
17 | @@ -1603,7 +1607,9 @@ | ||
18 | AC_SUBST(XKB_COMPILED_DIR) | ||
19 | |||
20 | dnl and the rest of these are generic, so they're in config.h | ||
21 | +if test ! x"$KDRIVE" = xyes; then | ||
22 | AC_DEFINE(XFreeXDGA, 1, [Build XDGA support]) | ||
23 | +fi | ||
24 | AC_DEFINE(XResExtension, 1, [Build XRes extension]) | ||
25 | |||
26 | AC_TRY_COMPILE([ | ||
27 | @@ -1616,10 +1622,12 @@ | ||
28 | |||
29 | AC_DEFINE_DIR(PROJECTROOT, prefix, [Overall prefix]) | ||
30 | |||
31 | +if test ! "x$KDRIVE" = xyes ; then | ||
32 | dnl xorgconfig CLI configuration utility | ||
33 | PKG_CHECK_MODULES([XORGCONFIG_DEP], [xkbfile x11]) | ||
34 | AC_SUBST(XORGCONFIG_DEP_CFLAGS) | ||
35 | AC_SUBST(XORGCONFIG_DEP_LIBS) | ||
36 | +fi | ||
37 | |||
38 | dnl xorgcfg GUI configuration utility | ||
39 | AC_ARG_ENABLE(xorgcfg, AS_HELP_STRING([--enable-xorgcfg], | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive/extra-kmodes.patch b/meta/recipes-graphics/xorg-xserver/xserver-kdrive/extra-kmodes.patch new file mode 100644 index 0000000000..14cf99055b --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive/extra-kmodes.patch | |||
@@ -0,0 +1,83 @@ | |||
1 | Add some extra video modes and change the default to VGA. | ||
2 | |||
3 | --- | ||
4 | hw/kdrive/src/kmode.c | 41 +++++++++++++++++++++++++++++++++++++++-- | ||
5 | 1 file changed, 39 insertions(+), 2 deletions(-) | ||
6 | |||
7 | Index: xorg-server-1.3.0.0/hw/kdrive/src/kmode.c | ||
8 | =================================================================== | ||
9 | --- xorg-server-1.3.0.0.orig/hw/kdrive/src/kmode.c 2008-01-11 14:20:47.000000000 +0000 | ||
10 | +++ xorg-server-1.3.0.0/hw/kdrive/src/kmode.c 2008-01-11 14:21:18.000000000 +0000 | ||
11 | @@ -32,6 +32,31 @@ const KdMonitorTiming kdMonitorTimings[ | ||
12 | /* H V Hz KHz */ | ||
13 | /* FP BP BLANK POLARITY */ | ||
14 | |||
15 | + /* Treo 650 */ | ||
16 | + | ||
17 | + { 320, 320, 64, 16256, | ||
18 | + 17, 12, 32, KdSyncNegative, | ||
19 | + 1, 11, 14, KdSyncNegative, | ||
20 | + }, | ||
21 | + | ||
22 | + { 320, 320, 64, 0, | ||
23 | + 0, 0, 0, KdSyncNegative, | ||
24 | + 0, 0, 0, KdSyncNegative, | ||
25 | + }, | ||
26 | + | ||
27 | + /* LifeDrive/T3/TX modes */ | ||
28 | + | ||
29 | + { 320, 480, 64, 16256, | ||
30 | + 17, 12, 32, KdSyncNegative, | ||
31 | + 1, 11, 14, KdSyncNegative, | ||
32 | + }, | ||
33 | + | ||
34 | + { 480, 320, 64, 0, | ||
35 | + 0, 0, 0, KdSyncNegative, | ||
36 | + 0, 0, 0, KdSyncNegative, | ||
37 | + }, | ||
38 | + | ||
39 | + | ||
40 | /* IPAQ modeline: | ||
41 | * | ||
42 | * Modeline "320x240" 5.7222 320 337 340 352 240 241 244 254" | ||
43 | @@ -41,6 +66,11 @@ const KdMonitorTiming kdMonitorTimings[ | ||
44 | 1, 11, 14, KdSyncNegative, | ||
45 | }, | ||
46 | |||
47 | + { 240, 320, 64, 0, | ||
48 | + 0, 0, 0, KdSyncNegative, | ||
49 | + 0, 0, 0, KdSyncNegative, | ||
50 | + }, | ||
51 | + | ||
52 | /* Other VESA modes */ | ||
53 | { 640, 350, 85, 31500, /* VESA */ | ||
54 | 32, 96, 192, KdSyncPositive, /* 26.413 */ | ||
55 | @@ -76,10 +106,19 @@ const KdMonitorTiming kdMonitorTimings[ | ||
56 | 16, 120, 176, KdSyncNegative, /* 37.861 */ | ||
57 | 1, 20, 24, KdSyncNegative, /* 72.809 */ | ||
58 | }, | ||
59 | + /* DEFAULT */ | ||
60 | +#define MONITOR_TIMING_DEFAULT 13 | ||
61 | { 640, 480, 60, 25175, /* VESA */ | ||
62 | 16, 48, 160, KdSyncNegative, /* 31.469 */ | ||
63 | 10, 33, 45, KdSyncNegative, /* 59.940 */ | ||
64 | }, | ||
65 | + | ||
66 | + | ||
67 | + { 480, 640, 60, 0, /* VESA */ | ||
68 | + 0, 0, 0, KdSyncNegative, /* 31.469 */ | ||
69 | + 0, 0, 0, KdSyncNegative, /* 59.940 */ | ||
70 | + }, | ||
71 | + | ||
72 | |||
73 | /* 800x600 modes */ | ||
74 | { 800, 600, 85, 56250, /* VESA */ | ||
75 | @@ -90,8 +129,6 @@ const KdMonitorTiming kdMonitorTimings[ | ||
76 | 16, 160, 256, KdSyncPositive, /* 46.875 */ | ||
77 | 1, 21, 25, KdSyncPositive, /* 75.000 */ | ||
78 | }, | ||
79 | - /* DEFAULT */ | ||
80 | -#define MONITOR_TIMING_DEFAULT 9 | ||
81 | { 800, 600, 72, 50000, /* VESA */ | ||
82 | 56, 64, 240, KdSyncPositive, /* 48.077 */ | ||
83 | 37, 23, 66, KdSyncPositive, /* 72.188 */ | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive/fbdev_xrandr_ioctl.patch b/meta/recipes-graphics/xorg-xserver/xserver-kdrive/fbdev_xrandr_ioctl.patch new file mode 100644 index 0000000000..a5c22a5efc --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive/fbdev_xrandr_ioctl.patch | |||
@@ -0,0 +1,61 @@ | |||
1 | Index: xorg-server-1.3.0.0/hw/kdrive/fbdev/fbdev.c | ||
2 | =================================================================== | ||
3 | --- xorg-server-1.3.0.0.orig/hw/kdrive/fbdev/fbdev.c 2008-09-25 21:55:12.000000000 +0100 | ||
4 | +++ xorg-server-1.3.0.0/hw/kdrive/fbdev/fbdev.c 2008-09-25 21:55:46.000000000 +0100 | ||
5 | @@ -498,6 +498,7 @@ | ||
6 | KdScreenInfo *screen = pScreenPriv->screen; | ||
7 | FbdevScrPriv *scrpriv = screen->driver; | ||
8 | Bool wasEnabled = pScreenPriv->enabled; | ||
9 | + FbdevPriv *priv = screen->card->driver; | ||
10 | FbdevScrPriv oldscr; | ||
11 | int oldwidth; | ||
12 | int oldheight; | ||
13 | @@ -525,11 +526,46 @@ | ||
14 | oldheight = screen->height; | ||
15 | oldmmwidth = pScreen->mmWidth; | ||
16 | oldmmheight = pScreen->mmHeight; | ||
17 | - | ||
18 | + | ||
19 | /* | ||
20 | * Set new configuration | ||
21 | */ | ||
22 | - | ||
23 | + | ||
24 | + if (newwidth != oldwidth || newheight != oldheight) | ||
25 | + { | ||
26 | + struct fb_var_screeninfo var; | ||
27 | + int k; | ||
28 | + | ||
29 | + k = ioctl (priv->fd, FBIOGET_VSCREENINFO, &var); | ||
30 | + | ||
31 | + if (k < 0) | ||
32 | + { | ||
33 | + ErrorF("Error with framebuffer ioctl FBIOGET_VSCREENINFO: %s", strerror (errno)); | ||
34 | + return FALSE; | ||
35 | + } | ||
36 | + | ||
37 | + var.xres = newwidth; | ||
38 | + var.yres = newheight; | ||
39 | + var.activate = FB_ACTIVATE_NOW; | ||
40 | + | ||
41 | + k = ioctl (priv->fd, FBIOPUT_VSCREENINFO, &var); | ||
42 | + | ||
43 | + if (k >= 0) | ||
44 | + { | ||
45 | + if ((k=ioctl(priv->fd, FBIOGET_FSCREENINFO, &priv->fix)) < 0) | ||
46 | + { | ||
47 | + perror("Error with framebuffer ioctl FIOGET_FSCREENINFO"); | ||
48 | + close (priv->fd); | ||
49 | + return FALSE; | ||
50 | + } | ||
51 | + if ((k=ioctl(priv->fd, FBIOGET_VSCREENINFO, &priv->var)) < 0) { | ||
52 | + perror("Error framebuffer ioctl FIOGET_VSCREENINFO"); | ||
53 | + close (priv->fd); | ||
54 | + return FALSE; | ||
55 | + } | ||
56 | + } | ||
57 | + } | ||
58 | + | ||
59 | scrpriv->randr = KdAddRotation (screen->randr, randr); | ||
60 | |||
61 | KdOffscreenSwapOut (screen->pScreen); | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive/no-serial-probing.patch b/meta/recipes-graphics/xorg-xserver/xserver-kdrive/no-serial-probing.patch new file mode 100644 index 0000000000..35ccadaa8d --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive/no-serial-probing.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | --- xserver/hw/kdrive/linux/mouse.c.orig 2004-05-13 14:25:51.000000000 -0700 | ||
2 | +++ xserver/hw/kdrive/linux/mouse.c 2005-09-22 12:20:47.000000000 -0700 | ||
3 | @@ -927,8 +927,10 @@ char *kdefaultMouse[] = { | ||
4 | "/dev/psaux", | ||
5 | "/dev/input/mice", | ||
6 | "/dev/adbmouse", | ||
7 | +#ifdef BREAK_MY_SERIAL_CONSOLE | ||
8 | "/dev/ttyS0", | ||
9 | "/dev/ttyS1", | ||
10 | +#endif | ||
11 | }; | ||
12 | |||
13 | #define NUM_DEFAULT_MOUSE (sizeof (kdefaultMouse) / sizeof (kdefaultMouse[0])) | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive_1.7.99.2.bb b/meta/recipes-graphics/xorg-xserver/xserver-kdrive_1.7.99.2.bb new file mode 100644 index 0000000000..7ca88e64e2 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive_1.7.99.2.bb | |||
@@ -0,0 +1,28 @@ | |||
1 | require xserver-kdrive.inc | ||
2 | |||
3 | DEPENDS += "libxkbfile libxcalibrate font-util" | ||
4 | |||
5 | RDEPENDS_${PN} += "xkeyboard-config" | ||
6 | |||
7 | EXTRA_OECONF += "--disable-glx" | ||
8 | |||
9 | PE = "1" | ||
10 | PR = "r25" | ||
11 | |||
12 | SRC_URI = "${XORG_MIRROR}/individual/xserver/xorg-server-${PV}.tar.bz2 \ | ||
13 | file://extra-kmodes.patch;patch=1 \ | ||
14 | file://disable-apm.patch;patch=1 \ | ||
15 | file://no-serial-probing.patch;patch=1 \ | ||
16 | # file://kdrive-evdev.patch;patch=1 \ | ||
17 | # file://kdrive-use-evdev.patch;patch=1 \ | ||
18 | # file://enable-builtin-fonts.patch;patch=1 \ | ||
19 | # file://optional-xkb.patch;patch=1 \ | ||
20 | file://keyboard-resume-workaround.patch;patch=1 \ | ||
21 | file://enable-xcalibrate.patch;patch=1 \ | ||
22 | file://hide-cursor-and-ppm-root.patch;patch=1 \ | ||
23 | file://fbdev_xrandr_ioctl.patch;patch=1 \ | ||
24 | file://fix-newer-xorg-headers.patch;patch=1 \ | ||
25 | file://crosscompile.patch;patch=1 \ | ||
26 | file://nodolt.patch;patch=1" | ||
27 | |||
28 | S = "${WORKDIR}/xorg-server-${PV}" | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-common.inc b/meta/recipes-graphics/xorg-xserver/xserver-xf86-common.inc new file mode 100644 index 0000000000..cf69a1e156 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-common.inc | |||
@@ -0,0 +1,33 @@ | |||
1 | DESCRIPTION = "The X.Org X server" | ||
2 | HOMEPAGE = "http://www.x.org" | ||
3 | SECTION = "x11/base" | ||
4 | LICENSE = "MIT-X" | ||
5 | |||
6 | # xf86-*-* packages depend on an X server built with the xfree86 DDX | ||
7 | # so we have a virtual to represent that: | ||
8 | PROVIDES = "virtual/xserver-xf86" | ||
9 | |||
10 | # Other packages tend to just care that there is *an* X server: | ||
11 | PROVIDES += "virtual/xserver" | ||
12 | |||
13 | XORG_PN = "xorg-server" | ||
14 | SRC_URI = "${XORG_MIRROR}/individual/xserver/${XORG_PN}-${PV}.tar.bz2" | ||
15 | |||
16 | S = "${WORKDIR}/${XORG_PN}-${PV}" | ||
17 | |||
18 | inherit autotools pkgconfig | ||
19 | |||
20 | PACKAGES =+ "${PN}-utils" | ||
21 | |||
22 | RDEPENDS_${PN} += "xserver-xf86-config xkeyboard-config" | ||
23 | |||
24 | FILES_${PN}-utils = "${bindir}/scanpci ${bindir}/pcitweak ${bindir}/ioport ${bindir}/in[bwl] ${bindir}/out[bwl] ${bindir}/mmap[rw] ${bindir}/gtf ${bindir}/getconfig ${bindir}/getconfig.pl" | ||
25 | FILES_${PN} = "${libdir}/X11/Options ${libdir}/X11/Cards ${libdir}/X11/getconfig ${libdir}/X11/etc ${libdir}/xserver/SecurityPolicy ${libdir}/xorg/modules/*.so ${libdir}/xorg/modules/*/*.so ${libdir}/xorg/modules/*/*/*.so /etc/X11 " | ||
26 | FILES_${PN}-doc += "${libdir}/X11/doc /usr/share/X11/xkb/compiled/README.compiled" | ||
27 | |||
28 | FILES_${PN}-dbg += "${libdir}/xorg/modules/.debug \ | ||
29 | ${libdir}/xorg/modules/*/.debug \ | ||
30 | ${libdir}/xorg/modules/*/*/.debug \ | ||
31 | " | ||
32 | |||
33 | SRC_URI += "file://macro_tweak.patch" | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/igep0020/xorg.conf b/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/igep0020/xorg.conf new file mode 100644 index 0000000000..ae8a395a05 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/igep0020/xorg.conf | |||
@@ -0,0 +1,47 @@ | |||
1 | |||
2 | Section "Files" | ||
3 | EndSection | ||
4 | |||
5 | Section "InputDevice" | ||
6 | Identifier "Generic Keyboard" | ||
7 | Driver "kbd" | ||
8 | Option "CoreKeyboard" | ||
9 | Option "XkbRules" "xorg" | ||
10 | Option "XkbModel" "pc105" | ||
11 | Option "XkbLayout" "us" | ||
12 | EndSection | ||
13 | |||
14 | Section "InputDevice" | ||
15 | Identifier "Configured Mouse" | ||
16 | Driver "mouse" | ||
17 | Option "CorePointer" | ||
18 | Option "Device" "/dev/input/mice" | ||
19 | Option "Protocol" "ImPS/2" | ||
20 | Option "ZAxisMapping" "4 5" | ||
21 | Option "Emulate3Buttons" "true" | ||
22 | EndSection | ||
23 | |||
24 | Section "Device" | ||
25 | Identifier "OMAPFB Graphics Controller" | ||
26 | Driver "omapfb" | ||
27 | EndSection | ||
28 | |||
29 | Section "Monitor" | ||
30 | Identifier "Generic Monitor" | ||
31 | Option "DPMS" | ||
32 | EndSection | ||
33 | |||
34 | Section "Screen" | ||
35 | Identifier "Default Screen" | ||
36 | Device "OMAPFB Graphics Controller" | ||
37 | Monitor "Generic Monitor" | ||
38 | EndSection | ||
39 | |||
40 | Section "ServerLayout" | ||
41 | Identifier "Default Layout" | ||
42 | Screen "Default Screen" | ||
43 | InputDevice "Generic Keyboard" | ||
44 | InputDevice "Configured Mouse" | ||
45 | Option "AllowEmptyInput" "no" | ||
46 | EndSection | ||
47 | |||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/netbook/xorg.conf b/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/netbook/xorg.conf new file mode 100644 index 0000000000..e18b911199 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/netbook/xorg.conf | |||
@@ -0,0 +1,26 @@ | |||
1 | Section "Device" | ||
2 | Identifier "Intel Graphics Driver" | ||
3 | Driver "intel" | ||
4 | EndSection | ||
5 | |||
6 | Section "Monitor" | ||
7 | Identifier "Generic Monitor" | ||
8 | Option "DPMS" | ||
9 | EndSection | ||
10 | |||
11 | Section "Screen" | ||
12 | Identifier "Default Screen" | ||
13 | Device "Intel Graphics Driver" | ||
14 | Monitor "Generic Monitor" | ||
15 | DefaultDepth 24 | ||
16 | EndSection | ||
17 | |||
18 | Section "ServerLayout" | ||
19 | Identifier "Default Layout" | ||
20 | Screen "Default Screen" | ||
21 | EndSection | ||
22 | |||
23 | Section "ServerFlags" | ||
24 | Option "DontZap" "0" | ||
25 | Option "AutoAddDevices" "False" | ||
26 | EndSection | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemux86-64/xorg.conf b/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemux86-64/xorg.conf new file mode 100644 index 0000000000..4216de7bdf --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemux86-64/xorg.conf | |||
@@ -0,0 +1,68 @@ | |||
1 | |||
2 | Section "Files" | ||
3 | EndSection | ||
4 | |||
5 | Section "InputDevice" | ||
6 | Identifier "Generic Keyboard" | ||
7 | Driver "kbd" | ||
8 | Option "CoreKeyboard" | ||
9 | Option "XkbRules" "xorg" | ||
10 | Option "XkbModel" "pc105" | ||
11 | Option "XkbLayout" "us" | ||
12 | EndSection | ||
13 | |||
14 | Section "InputDevice" | ||
15 | Identifier "Configured Mouse" | ||
16 | Driver "vmmouse" | ||
17 | Option "CorePointer" | ||
18 | Option "Device" "/dev/input/mice" | ||
19 | Option "Protocol" "ImPS/2" | ||
20 | Option "ZAxisMapping" "4 5" | ||
21 | Option "Emulate3Buttons" "true" | ||
22 | EndSection | ||
23 | |||
24 | Section "InputDevice" | ||
25 | Identifier "Qemu Tablet" | ||
26 | Driver "evdev" | ||
27 | Option "CorePointer" | ||
28 | Option "Device" "/dev/input/touchscreen0" | ||
29 | Option "USB" "on" | ||
30 | EndSection | ||
31 | |||
32 | Section "Device" | ||
33 | Identifier "Graphics Controller" | ||
34 | Driver "vmware" | ||
35 | EndSection | ||
36 | |||
37 | Section "Monitor" | ||
38 | Identifier "Generic Monitor" | ||
39 | Option "DPMS" | ||
40 | # 1024x600 59.85 Hz (CVT) hsync: 37.35 kHz; pclk: 49.00 MHz | ||
41 | Modeline "1024x600_60.00" 49.00 1024 1072 1168 1312 600 603 613 624 -hsync +vsync | ||
42 | # 640x480 @ 60Hz (Industry standard) hsync: 31.5kHz | ||
43 | ModeLine "640x480" 25.2 640 656 752 800 480 490 492 525 -hsync -vsync | ||
44 | # 640x480 @ 72Hz (VESA) hsync: 37.9kHz | ||
45 | ModeLine "640x480" 31.5 640 664 704 832 480 489 491 520 -hsync -vsync | ||
46 | # 640x480 @ 75Hz (VESA) hsync: 37.5kHz | ||
47 | ModeLine "640x480" 31.5 640 656 720 840 480 481 484 500 -hsync -vsync | ||
48 | # 640x480 @ 85Hz (VESA) hsync: 43.3kHz | ||
49 | ModeLine "640x480" 36.0 640 696 752 832 480 481 484 509 -hsync -vsync | ||
50 | EndSection | ||
51 | |||
52 | Section "Screen" | ||
53 | Identifier "Default Screen" | ||
54 | Device "Graphics Controller" | ||
55 | Monitor "Generic Monitor" | ||
56 | SubSection "Display" | ||
57 | Modes "640x480" | ||
58 | EndSubSection | ||
59 | EndSection | ||
60 | |||
61 | Section "ServerLayout" | ||
62 | Identifier "Default Layout" | ||
63 | Screen "Default Screen" | ||
64 | InputDevice "Generic Keyboard" | ||
65 | # InputDevice "Configured Mouse" | ||
66 | InputDevice "QEMU Tablet" | ||
67 | Option "AllowEmptyInput" "no" | ||
68 | EndSection | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemux86/xorg.conf b/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemux86/xorg.conf new file mode 100644 index 0000000000..4216de7bdf --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemux86/xorg.conf | |||
@@ -0,0 +1,68 @@ | |||
1 | |||
2 | Section "Files" | ||
3 | EndSection | ||
4 | |||
5 | Section "InputDevice" | ||
6 | Identifier "Generic Keyboard" | ||
7 | Driver "kbd" | ||
8 | Option "CoreKeyboard" | ||
9 | Option "XkbRules" "xorg" | ||
10 | Option "XkbModel" "pc105" | ||
11 | Option "XkbLayout" "us" | ||
12 | EndSection | ||
13 | |||
14 | Section "InputDevice" | ||
15 | Identifier "Configured Mouse" | ||
16 | Driver "vmmouse" | ||
17 | Option "CorePointer" | ||
18 | Option "Device" "/dev/input/mice" | ||
19 | Option "Protocol" "ImPS/2" | ||
20 | Option "ZAxisMapping" "4 5" | ||
21 | Option "Emulate3Buttons" "true" | ||
22 | EndSection | ||
23 | |||
24 | Section "InputDevice" | ||
25 | Identifier "Qemu Tablet" | ||
26 | Driver "evdev" | ||
27 | Option "CorePointer" | ||
28 | Option "Device" "/dev/input/touchscreen0" | ||
29 | Option "USB" "on" | ||
30 | EndSection | ||
31 | |||
32 | Section "Device" | ||
33 | Identifier "Graphics Controller" | ||
34 | Driver "vmware" | ||
35 | EndSection | ||
36 | |||
37 | Section "Monitor" | ||
38 | Identifier "Generic Monitor" | ||
39 | Option "DPMS" | ||
40 | # 1024x600 59.85 Hz (CVT) hsync: 37.35 kHz; pclk: 49.00 MHz | ||
41 | Modeline "1024x600_60.00" 49.00 1024 1072 1168 1312 600 603 613 624 -hsync +vsync | ||
42 | # 640x480 @ 60Hz (Industry standard) hsync: 31.5kHz | ||
43 | ModeLine "640x480" 25.2 640 656 752 800 480 490 492 525 -hsync -vsync | ||
44 | # 640x480 @ 72Hz (VESA) hsync: 37.9kHz | ||
45 | ModeLine "640x480" 31.5 640 664 704 832 480 489 491 520 -hsync -vsync | ||
46 | # 640x480 @ 75Hz (VESA) hsync: 37.5kHz | ||
47 | ModeLine "640x480" 31.5 640 656 720 840 480 481 484 500 -hsync -vsync | ||
48 | # 640x480 @ 85Hz (VESA) hsync: 43.3kHz | ||
49 | ModeLine "640x480" 36.0 640 696 752 832 480 481 484 509 -hsync -vsync | ||
50 | EndSection | ||
51 | |||
52 | Section "Screen" | ||
53 | Identifier "Default Screen" | ||
54 | Device "Graphics Controller" | ||
55 | Monitor "Generic Monitor" | ||
56 | SubSection "Display" | ||
57 | Modes "640x480" | ||
58 | EndSubSection | ||
59 | EndSection | ||
60 | |||
61 | Section "ServerLayout" | ||
62 | Identifier "Default Layout" | ||
63 | Screen "Default Screen" | ||
64 | InputDevice "Generic Keyboard" | ||
65 | # InputDevice "Configured Mouse" | ||
66 | InputDevice "QEMU Tablet" | ||
67 | Option "AllowEmptyInput" "no" | ||
68 | EndSection | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/xorg.conf b/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/xorg.conf new file mode 100644 index 0000000000..9c3d49019f --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/xorg.conf | |||
@@ -0,0 +1,26 @@ | |||
1 | |||
2 | Section "Device" | ||
3 | Identifier "Intel Graphics Driver" | ||
4 | Driver "intel" | ||
5 | EndSection | ||
6 | |||
7 | Section "Monitor" | ||
8 | Identifier "Generic Monitor" | ||
9 | Option "DPMS" | ||
10 | EndSection | ||
11 | |||
12 | Section "Screen" | ||
13 | Identifier "Default Screen" | ||
14 | Device "Intel Graphics Driver" | ||
15 | Monitor "Generic Monitor" | ||
16 | DefaultDepth 24 | ||
17 | EndSection | ||
18 | |||
19 | Section "ServerLayout" | ||
20 | Identifier "Default Layout" | ||
21 | Screen "Default Screen" | ||
22 | EndSection | ||
23 | |||
24 | Section "ServerFlags" | ||
25 | Option "DontZap" "0" | ||
26 | EndSection | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bb b/meta/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bb new file mode 100644 index 0000000000..fc91285f27 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bb | |||
@@ -0,0 +1,17 @@ | |||
1 | DESCRIPTION = "X.Org X server configuration file" | ||
2 | HOMEPAGE = "http://www.x.org" | ||
3 | SECTION = "x11/base" | ||
4 | LICENSE = "MIT-X" | ||
5 | PR = "r9" | ||
6 | |||
7 | SRC_URI = "file://xorg.conf" | ||
8 | |||
9 | CONFFILES_${PN} += "${sysconfdir}/X11/xorg.conf" | ||
10 | |||
11 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
12 | |||
13 | do_install () { | ||
14 | install -d ${D}/${sysconfdir}/X11 | ||
15 | install -m 0644 ${WORKDIR}/xorg.conf ${D}/${sysconfdir}/X11/ | ||
16 | } | ||
17 | |||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite.inc b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite.inc new file mode 100644 index 0000000000..db2d1266bb --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite.inc | |||
@@ -0,0 +1,37 @@ | |||
1 | require xserver-xf86-common.inc | ||
2 | |||
3 | PROTO_DEPS = "randrproto renderproto fixesproto damageproto xextproto xproto xf86dgaproto xf86miscproto xf86rushproto xf86vidmodeproto xf86bigfontproto compositeproto recordproto resourceproto videoproto scrnsaverproto evieext trapproto xineramaproto fontsproto kbproto inputproto bigreqsproto xcmiscproto glproto" | ||
4 | |||
5 | LIB_DEPS = "pixman virtual/libgl libxfont xtrans libxau libxext libxdmcp libdrm libxkbfile libpciaccess openssl" | ||
6 | |||
7 | DEPENDS = "${PROTO_DEPS} ${LIB_DEPS}" | ||
8 | |||
9 | RDEPENDS_${PN} += "hal xorg-minimal-fonts" | ||
10 | |||
11 | FILES_${PN} += "${bindir}/Xorg " | ||
12 | |||
13 | EXTRA_OECONF += "--disable-static \ | ||
14 | --disable-acfb \ | ||
15 | --disable-ccfb \ | ||
16 | --disable-mcfb \ | ||
17 | --disable-dga \ | ||
18 | --disable-xinerama \ | ||
19 | --disable-xf86misc \ | ||
20 | --disable-xorgcfg \ | ||
21 | --disable-record \ | ||
22 | --disable-dmx \ | ||
23 | --disable-xnest \ | ||
24 | --disable-xvfb \ | ||
25 | --enable-composite \ | ||
26 | --enable-glx-tls \ | ||
27 | --sysconfdir=/etc/X11 \ | ||
28 | --localstatedir=/var \ | ||
29 | --with-pic \ | ||
30 | --with-int10=x86emu \ | ||
31 | --with-fontdir=/usr/share/fonts/X11 \ | ||
32 | --with-xkb-output=/var/lib/xkb \ | ||
33 | ac_cv_file__usr_share_sgml_X11_defs_ent=no" | ||
34 | |||
35 | # Due to mesa-dri | ||
36 | COMPATIBLE_HOST = '(i.86.*-linux|x86_64.*-linux)' | ||
37 | |||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/cache-xkbcomp-output-for-fast-start-up.patch b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/cache-xkbcomp-output-for-fast-start-up.patch new file mode 100644 index 0000000000..b121bba655 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/cache-xkbcomp-output-for-fast-start-up.patch | |||
@@ -0,0 +1,358 @@ | |||
1 | From 0f70ba9d3412b17ac4e08e33e1be3c226c06ea54 Mon Sep 17 00:00:00 2001 | ||
2 | From: Yan Li <yan.i.li@intel.com> | ||
3 | Date: Tue, 12 May 2009 17:49:07 +0800 | ||
4 | Subject: [PATCH] XKB: cache xkbcomp output for fast start-up v5 for 1.6.1 | ||
5 | Organization: Intel | ||
6 | |||
7 | xkbcomp outputs will be cached in files with hashed keymap as | ||
8 | names. This saves boot time for around 1s on commodity netbooks. | ||
9 | |||
10 | Signed-off-by: Yan Li <yan.i.li@intel.com> | ||
11 | --- | ||
12 | configure.ac | 6 +- | ||
13 | xkb/README.compiled | 8 +- | ||
14 | xkb/ddxLoad.c | 192 +++++++++++++++++++++++++++++++++++++++++--------- | ||
15 | 3 files changed, 164 insertions(+), 42 deletions(-) | ||
16 | |||
17 | diff --git a/configure.ac b/configure.ac | ||
18 | index 4c4c797..7a5020a 100644 | ||
19 | --- a/configure.ac | ||
20 | +++ b/configure.ac | ||
21 | @@ -476,9 +476,9 @@ AC_ARG_WITH(default-font-path, AS_HELP_STRING([--with-default-font-path=PATH], [ | ||
22 | AC_ARG_WITH(xkb-path, AS_HELP_STRING([--with-xkb-path=PATH], [Path to XKB base dir (default: ${datadir}/X11/xkb)]), | ||
23 | [ XKBPATH="$withval" ], | ||
24 | [ XKBPATH="${datadir}/X11/xkb" ]) | ||
25 | -AC_ARG_WITH(xkb-output, AS_HELP_STRING([--with-xkb-output=PATH], [Path to XKB output dir (default: ${datadir}/X11/xkb/compiled)]), | ||
26 | +AC_ARG_WITH(xkb-output, AS_HELP_STRING([--with-xkb-output=PATH], [Path to XKB output dir (default: ${localstatedir}/cache/xkb)]), | ||
27 | [ XKBOUTPUT="$withval" ], | ||
28 | - [ XKBOUTPUT="compiled" ]) | ||
29 | + [ XKBOUTPUT="${localstatedir}/cache/xkb" ]) | ||
30 | AC_ARG_WITH(serverconfig-path, AS_HELP_STRING([--with-serverconfig-path=PATH], | ||
31 | [Directory where ancillary server config files are installed (default: ${libdir}/xorg)]), | ||
32 | [ SERVERCONFIG="$withval" ], | ||
33 | @@ -1757,7 +1757,7 @@ AC_DEFINE_DIR(XKB_BIN_DIRECTORY, bindir, [Path to XKB bin dir]) | ||
34 | XKBOUTPUT_FIRSTCHAR=`echo $XKBOUTPUT | cut -b 1` | ||
35 | |||
36 | if [[ x$XKBOUTPUT_FIRSTCHAR != x/ ]] ; then | ||
37 | - XKBOUTPUT="$XKB_BASE_DIRECTORY/$XKBOUTPUT" | ||
38 | + AC_MSG_ERROR([xkb-output must be an absolute path.]) | ||
39 | fi | ||
40 | |||
41 | # XKM_OUTPUT_DIR (used in code) must end in / or file names get hosed | ||
42 | diff --git a/xkb/README.compiled b/xkb/README.compiled | ||
43 | index 71caa2f..a4a2ae0 100644 | ||
44 | --- a/xkb/README.compiled | ||
45 | +++ b/xkb/README.compiled | ||
46 | @@ -4,10 +4,10 @@ current keymap and/or any scratch keymaps used by clients. The X server | ||
47 | or some other tool might destroy or replace the files in this directory, | ||
48 | so it is not a safe place to store compiled keymaps for long periods of | ||
49 | time. The default keymap for any server is usually stored in: | ||
50 | - X<num>-default.xkm | ||
51 | -where <num> is the display number of the server in question, which makes | ||
52 | -it possible for several servers *on the same host* to share the same | ||
53 | -directory. | ||
54 | + server-<SHA1>.xkm | ||
55 | + | ||
56 | +where <SHA1> is the SHA1 hash of keymap source, so that compiled | ||
57 | +keymap of different keymap sources are stored in different files. | ||
58 | |||
59 | Unless the X server is modified, sharing this directory between servers on | ||
60 | different hosts could cause problems. | ||
61 | diff --git a/xkb/ddxLoad.c b/xkb/ddxLoad.c | ||
62 | index 4d5dfb6..60a68af 100644 | ||
63 | --- a/xkb/ddxLoad.c | ||
64 | +++ b/xkb/ddxLoad.c | ||
65 | @@ -32,6 +32,12 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
66 | #include <xkb-config.h> | ||
67 | #endif | ||
68 | |||
69 | +#ifdef HAVE_SHA1_IN_LIBMD /* Use libmd for SHA1 */ | ||
70 | +# include <sha1.h> | ||
71 | +#else /* Use OpenSSL's libcrypto */ | ||
72 | +# include <stddef.h> /* buggy openssl/sha.h wants size_t */ | ||
73 | +# include <openssl/sha.h> | ||
74 | +#endif | ||
75 | #include <stdio.h> | ||
76 | #include <ctype.h> | ||
77 | #define NEED_EVENTS 1 | ||
78 | @@ -46,24 +52,13 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
79 | #define XKBSRV_NEED_FILE_FUNCS | ||
80 | #include <xkbsrv.h> | ||
81 | #include <X11/extensions/XI.h> | ||
82 | +#include <errno.h> | ||
83 | #include "xkb.h" | ||
84 | |||
85 | #if defined(CSRG_BASED) || defined(linux) || defined(__GNU__) | ||
86 | #include <paths.h> | ||
87 | #endif | ||
88 | |||
89 | - /* | ||
90 | - * If XKM_OUTPUT_DIR specifies a path without a leading slash, it is | ||
91 | - * relative to the top-level XKB configuration directory. | ||
92 | - * Making the server write to a subdirectory of that directory | ||
93 | - * requires some work in the general case (install procedure | ||
94 | - * has to create links to /var or somesuch on many machines), | ||
95 | - * so we just compile into /usr/tmp for now. | ||
96 | - */ | ||
97 | -#ifndef XKM_OUTPUT_DIR | ||
98 | -#define XKM_OUTPUT_DIR "compiled/" | ||
99 | -#endif | ||
100 | - | ||
101 | #define PRE_ERROR_MSG "\"The XKEYBOARD keymap compiler (xkbcomp) reports:\"" | ||
102 | #define ERROR_PREFIX "\"> \"" | ||
103 | #define POST_ERROR_MSG1 "\"Errors from xkbcomp are not fatal to the X server\"" | ||
104 | @@ -179,6 +174,45 @@ OutputDirectory( | ||
105 | } | ||
106 | |||
107 | static Bool | ||
108 | +Sha1Asc(char sha1Asc[SHA_DIGEST_LENGTH*2+1], const char * input) | ||
109 | +{ | ||
110 | + int i; | ||
111 | + unsigned char sha1[SHA_DIGEST_LENGTH]; | ||
112 | + | ||
113 | +#ifdef HAVE_SHA1_IN_LIBMD /* Use libmd for SHA1 */ | ||
114 | + SHA1_CTX ctx; | ||
115 | + | ||
116 | + SHA1Init (&ctx); | ||
117 | + SHA1Update (&ctx, input, strlen(input)); | ||
118 | + SHA1Final (sha1, &ctx); | ||
119 | +#else /* Use OpenSSL's libcrypto */ | ||
120 | + SHA_CTX ctx; | ||
121 | + int success; | ||
122 | + | ||
123 | + success = SHA1_Init (&ctx); | ||
124 | + if (! success) | ||
125 | + return BadAlloc; | ||
126 | + | ||
127 | + success = SHA1_Update (&ctx, input, strlen(input)); | ||
128 | + if (! success) | ||
129 | + return BadAlloc; | ||
130 | + | ||
131 | + success = SHA1_Final (sha1, &ctx); | ||
132 | + if (! success) | ||
133 | + return BadAlloc; | ||
134 | +#endif | ||
135 | + | ||
136 | + /* convert sha1 to sha1_asc */ | ||
137 | + for(i=0; i<SHA_DIGEST_LENGTH; ++i) { | ||
138 | + sprintf(sha1Asc+i*2, "%02X", sha1[i]); | ||
139 | + } | ||
140 | + | ||
141 | + return Success; | ||
142 | +} | ||
143 | + | ||
144 | +/* call xkbcomp and compile XKB keymap, return xkm file name in | ||
145 | + nameRtrn */ | ||
146 | +static Bool | ||
147 | XkbDDXCompileKeymapByNames( XkbDescPtr xkb, | ||
148 | XkbComponentNamesPtr names, | ||
149 | unsigned want, | ||
150 | @@ -187,7 +221,11 @@ XkbDDXCompileKeymapByNames( XkbDescPtr xkb, | ||
151 | int nameRtrnLen) | ||
152 | { | ||
153 | FILE * out; | ||
154 | - char *buf = NULL, keymap[PATH_MAX], xkm_output_dir[PATH_MAX]; | ||
155 | + char * buf = NULL, xkmfile[PATH_MAX], xkm_output_dir[PATH_MAX]; | ||
156 | + char * tmpXkmFile = NULL; | ||
157 | + char * canonicalXkmFileName = NULL; | ||
158 | + char sha1Asc[SHA_DIGEST_LENGTH*2+1], xkbKeyMapBuf[100*1024]; | ||
159 | + int ret, result; | ||
160 | |||
161 | const char *emptystring = ""; | ||
162 | const char *xkbbasedirflag = emptystring; | ||
163 | @@ -198,16 +236,70 @@ XkbDDXCompileKeymapByNames( XkbDescPtr xkb, | ||
164 | /* WIN32 has no popen. The input must be stored in a file which is | ||
165 | used as input for xkbcomp. xkbcomp does not read from stdin. */ | ||
166 | char tmpname[PATH_MAX]; | ||
167 | - const char *xkmfile = tmpname; | ||
168 | + const char *xkbfile = tmpname; | ||
169 | #else | ||
170 | - const char *xkmfile = "-"; | ||
171 | + const char *xkbfile = "-"; | ||
172 | #endif | ||
173 | |||
174 | - snprintf(keymap, sizeof(keymap), "server-%s", display); | ||
175 | + /* Write keymap source (xkbfile) to memory buffer `xkbKeyMapBuf', | ||
176 | + of which SHA1 is generated and used as result xkm file name */ | ||
177 | + memset(xkbKeyMapBuf, 0, sizeof(xkbKeyMapBuf)); | ||
178 | + out = fmemopen(xkbKeyMapBuf, sizeof(xkbKeyMapBuf), "w"); | ||
179 | + if (NULL == out) { | ||
180 | + ErrorF("[xkb] Open xkbKeyMapBuf for writing failed\n"); | ||
181 | + return False; | ||
182 | + } | ||
183 | + ret = XkbWriteXKBKeymapForNames(out, names, xkb, want, need); | ||
184 | + if (fclose(out) !=0) | ||
185 | + { | ||
186 | + ErrorF("[xkb] XkbWriteXKBKeymapForNames error, perhaps xkbKeyMapBuf is too small\n"); | ||
187 | + return False; | ||
188 | + } | ||
189 | +#ifdef DEBUG | ||
190 | + if (xkbDebugFlags) { | ||
191 | + ErrorF("[xkb] XkbDDXCompileKeymapByNames compiling keymap:\n"); | ||
192 | + fputs(xkbKeyMapBuf, stderr); | ||
193 | + } | ||
194 | +#endif | ||
195 | + if (!ret) { | ||
196 | + ErrorF("[xkb] Generating XKB Keymap failed, giving up compiling keymap\n"); | ||
197 | + return False; | ||
198 | + } | ||
199 | + | ||
200 | + DebugF("[xkb] computing SHA1 of keymap\n"); | ||
201 | + if (Success == Sha1Asc(sha1Asc, xkbKeyMapBuf)) { | ||
202 | + snprintf(xkmfile, sizeof(xkmfile), "server-%s", sha1Asc); | ||
203 | + } | ||
204 | + else { | ||
205 | + ErrorF("[xkb] Computing SHA1 of keymap failed, " | ||
206 | + "using display name instead as xkm file name\n"); | ||
207 | + snprintf(xkmfile, sizeof(xkmfile), "server-%s", display); | ||
208 | + } | ||
209 | |||
210 | - XkbEnsureSafeMapName(keymap); | ||
211 | + XkbEnsureSafeMapName(xkmfile); | ||
212 | OutputDirectory(xkm_output_dir, sizeof(xkm_output_dir)); | ||
213 | |||
214 | + /* set nameRtrn, fail if it's too small */ | ||
215 | + if ((strlen(xkmfile)+1 > nameRtrnLen) && nameRtrn) { | ||
216 | + ErrorF("[xkb] nameRtrn too small to hold xkmfile name\n"); | ||
217 | + return False; | ||
218 | + } | ||
219 | + strncpy(nameRtrn, xkmfile, nameRtrnLen); | ||
220 | + | ||
221 | + /* if the xkm file already exists, reuse it */ | ||
222 | + canonicalXkmFileName = Xprintf("%s%s.xkm", xkm_output_dir, xkmfile); | ||
223 | + if (access(canonicalXkmFileName, R_OK) == 0) { | ||
224 | + /* yes, we can reuse the old xkm file */ | ||
225 | + LogMessage(X_INFO, "XKB: reuse xkmfile %s\n", canonicalXkmFileName); | ||
226 | + result = True; | ||
227 | + goto _ret; | ||
228 | + } | ||
229 | + LogMessage(X_INFO, "XKB: generating xkmfile %s\n", canonicalXkmFileName); | ||
230 | + | ||
231 | + /* continue to call xkbcomp to compile the keymap. to avoid race | ||
232 | + condition, we compile it to a tmpfile then rename it to | ||
233 | + xkmfile */ | ||
234 | + | ||
235 | #ifdef WIN32 | ||
236 | strcpy(tmpname, Win32TempDir()); | ||
237 | strcat(tmpname, "\\xkb_XXXXXX"); | ||
238 | @@ -230,19 +322,30 @@ XkbDDXCompileKeymapByNames( XkbDescPtr xkb, | ||
239 | } | ||
240 | } | ||
241 | |||
242 | + if ( (tmpXkmFile = tempnam(xkm_output_dir, NULL)) == NULL ) { | ||
243 | + ErrorF("[xkb] Can't generate temp xkm file name"); | ||
244 | + result = False; | ||
245 | + goto _ret; | ||
246 | + } | ||
247 | + | ||
248 | buf = Xprintf("\"%s%sxkbcomp\" -w %d %s -xkm \"%s\" " | ||
249 | - "-em1 %s -emp %s -eml %s \"%s%s.xkm\"", | ||
250 | + "-em1 %s -emp %s -eml %s \"%s\"", | ||
251 | xkbbindir, xkbbindirsep, | ||
252 | ( (xkbDebugFlags < 2) ? 1 : | ||
253 | ((xkbDebugFlags > 10) ? 10 : (int)xkbDebugFlags) ), | ||
254 | - xkbbasedirflag, xkmfile, | ||
255 | + xkbbasedirflag, xkbfile, | ||
256 | PRE_ERROR_MSG, ERROR_PREFIX, POST_ERROR_MSG1, | ||
257 | - xkm_output_dir, keymap); | ||
258 | + tmpXkmFile); | ||
259 | |||
260 | if (xkbbasedirflag != emptystring) { | ||
261 | xfree(xkbbasedirflag); | ||
262 | } | ||
263 | |||
264 | + /* there's a potential race condition between calling tempnam() | ||
265 | + and invoking xkbcomp to write the result file (potential temp | ||
266 | + file name conflicts), but since xkbcomp is a standalone | ||
267 | + program, we have to live with this */ | ||
268 | + | ||
269 | #ifndef WIN32 | ||
270 | out= Popen(buf,"w"); | ||
271 | #else | ||
272 | @@ -250,31 +353,43 @@ XkbDDXCompileKeymapByNames( XkbDescPtr xkb, | ||
273 | #endif | ||
274 | |||
275 | if (out!=NULL) { | ||
276 | -#ifdef DEBUG | ||
277 | - if (xkbDebugFlags) { | ||
278 | - ErrorF("[xkb] XkbDDXCompileKeymapByNames compiling keymap:\n"); | ||
279 | - XkbWriteXKBKeymapForNames(stderr,names,xkb,want,need); | ||
280 | + /* write XKBKeyMapBuf to xkbcomp */ | ||
281 | + if (EOF==fputs(xkbKeyMapBuf, out)) | ||
282 | + { | ||
283 | + ErrorF("[xkb] Sending keymap to xkbcomp failed\n"); | ||
284 | + result = False; | ||
285 | + goto _ret; | ||
286 | } | ||
287 | -#endif | ||
288 | - XkbWriteXKBKeymapForNames(out,names,xkb,want,need); | ||
289 | #ifndef WIN32 | ||
290 | if (Pclose(out)==0) | ||
291 | #else | ||
292 | if (fclose(out)==0 && System(buf) >= 0) | ||
293 | #endif | ||
294 | { | ||
295 | + /* xkbcomp success */ | ||
296 | if (xkbDebugFlags) | ||
297 | DebugF("[xkb] xkb executes: %s\n",buf); | ||
298 | - if (nameRtrn) { | ||
299 | - strncpy(nameRtrn,keymap,nameRtrnLen); | ||
300 | - nameRtrn[nameRtrnLen-1]= '\0'; | ||
301 | + | ||
302 | + /* if canonicalXkmFileName already exists now, we simply | ||
303 | + overwrite it, this is OK */ | ||
304 | + ret = rename(tmpXkmFile, canonicalXkmFileName); | ||
305 | + if (0 != ret) { | ||
306 | + ErrorF("[xkb] Can't rename %s to %s, error: %s\n", | ||
307 | + tmpXkmFile, canonicalXkmFileName, | ||
308 | + strerror(errno)); | ||
309 | + | ||
310 | + /* in case of error, don't unlink tmpXkmFile, leave it | ||
311 | + for debugging */ | ||
312 | + | ||
313 | + result = False; | ||
314 | + goto _ret; | ||
315 | } | ||
316 | - if (buf != NULL) | ||
317 | - xfree (buf); | ||
318 | - return True; | ||
319 | + | ||
320 | + result = True; | ||
321 | + goto _ret; | ||
322 | } | ||
323 | else | ||
324 | - LogMessage(X_ERROR, "Error compiling keymap (%s)\n", keymap); | ||
325 | + LogMessage(X_ERROR, "Error compiling keymap (%s)\n", xkbfile); | ||
326 | #ifdef WIN32 | ||
327 | /* remove the temporary file */ | ||
328 | unlink(tmpname); | ||
329 | @@ -289,9 +404,17 @@ XkbDDXCompileKeymapByNames( XkbDescPtr xkb, | ||
330 | } | ||
331 | if (nameRtrn) | ||
332 | nameRtrn[0]= '\0'; | ||
333 | + result = False; | ||
334 | + | ||
335 | +_ret: | ||
336 | + if (tmpXkmFile) | ||
337 | + free(tmpXkmFile); | ||
338 | + if (canonicalXkmFileName) | ||
339 | + xfree(canonicalXkmFileName); | ||
340 | if (buf != NULL) | ||
341 | xfree (buf); | ||
342 | - return False; | ||
343 | + | ||
344 | + return result; | ||
345 | } | ||
346 | |||
347 | static FILE * | ||
348 | @@ -375,7 +498,6 @@ unsigned missing; | ||
349 | DebugF("Loaded XKB keymap %s, defined=0x%x\n",fileName,(*xkbRtrn)->defined); | ||
350 | } | ||
351 | fclose(file); | ||
352 | - (void) unlink (fileName); | ||
353 | return (need|want)&(~missing); | ||
354 | } | ||
355 | |||
356 | -- | ||
357 | 1.5.6.5 | ||
358 | |||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/crosscompile.patch b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/crosscompile.patch new file mode 100644 index 0000000000..8b82de2223 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/crosscompile.patch | |||
@@ -0,0 +1,20 @@ | |||
1 | diff --git a/configure.ac b/configure.ac | ||
2 | index b3b752c..600500b 100644 | ||
3 | --- a/configure.ac | ||
4 | +++ b/configure.ac | ||
5 | @@ -523,13 +523,9 @@ dnl Uses --default-font-path if set, otherwise checks for /etc/X11/fontpath.d, | ||
6 | dnl otherwise uses standard subdirectories of FONTROOTDIR. When cross | ||
7 | dnl compiling, assume default font path uses standard FONTROOTDIR directories. | ||
8 | DEFAULT_FONT_PATH="${FONTMISCDIR}/,${FONTTTFDIR}/,${FONTOTFDIR}/,${FONTTYPE1DIR}/,${FONT100DPIDIR}/,${FONT75DPIDIR}/" | ||
9 | -if test "$cross_compiling" != yes; then | ||
10 | - AC_CHECK_FILE([${sysconfdir}/X11/fontpath.d], | ||
11 | - [DEFAULT_FONT_PATH='catalogue:${sysconfdir}/X11/fontpath.d'], | ||
12 | - [case $host_os in | ||
13 | + case $host_os in | ||
14 | darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;; | ||
15 | - esac]) | ||
16 | -fi | ||
17 | + esac | ||
18 | AC_ARG_WITH(default-font-path, AS_HELP_STRING([--with-default-font-path=PATH], [Comma separated list of font dirs]), | ||
19 | [ FONTPATH="$withval" ], | ||
20 | [ FONTPATH="${DEFAULT_FONT_PATH}" ]) | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/doublefix.patch b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/doublefix.patch new file mode 100644 index 0000000000..092a712903 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/doublefix.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | Index: xorg-server-1.6.0/hw/xfree86/common/Makefile.am | ||
2 | =================================================================== | ||
3 | --- xorg-server-1.6.0.orig/hw/xfree86/common/Makefile.am 2010-02-01 14:04:53.247789918 +0000 | ||
4 | +++ xorg-server-1.6.0/hw/xfree86/common/Makefile.am 2010-02-01 14:05:27.787817002 +0000 | ||
5 | @@ -46,7 +46,7 @@ | ||
6 | sdk_HEADERS = compiler.h fourcc.h xf86.h xf86Module.h xf86Opt.h \ | ||
7 | xf86PciInfo.h xf86Priv.h xf86Privstr.h xf86Resources.h \ | ||
8 | xf86cmap.h xf86fbman.h xf86str.h xf86RAC.h xf86Xinput.h xisb.h \ | ||
9 | - $(XVSDKINCS) xorgVersion.h \ | ||
10 | + xorgVersion.h \ | ||
11 | xf86sbusBus.h xf86xv.h xf86xvmc.h xf86xvpriv.h | ||
12 | |||
13 | DISTCLEANFILES = xf86Build.h | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/drmfix.patch b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/drmfix.patch new file mode 100644 index 0000000000..a62a767f23 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/drmfix.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | Index: xorg-server-1.4/hw/xfree86/os-support/linux/Makefile.am | ||
2 | =================================================================== | ||
3 | --- xorg-server-1.4.orig/hw/xfree86/os-support/linux/Makefile.am 2007-08-23 21:04:53.000000000 +0200 | ||
4 | +++ xorg-server-1.4/hw/xfree86/os-support/linux/Makefile.am 2008-03-13 18:27:23.000000000 +0100 | ||
5 | @@ -41,7 +41,7 @@ | ||
6 | |||
7 | AM_CFLAGS = -DUSESTDRES -DHAVE_SYSV_IPC $(DIX_CFLAGS) $(XORG_CFLAGS) $(PLATFORM_DEFINES) | ||
8 | |||
9 | -INCLUDES = $(XORG_INCS) $(PLATFORM_INCLUDES) -I/usr/include/drm # FIXME this last part is crack | ||
10 | +INCLUDES = $(XORG_INCS) $(PLATFORM_INCLUDES) $(LIBDRM_CFLAGS) | ||
11 | |||
12 | # FIXME: These need to be added to the build | ||
13 | LNX_EXTRA_SRCS = \ | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/fix_macros.patch b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/fix_macros.patch new file mode 100644 index 0000000000..eed491b4d9 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/fix_macros.patch | |||
@@ -0,0 +1,21 @@ | |||
1 | We need to insert the sysroot path into compiler commandlines for this | ||
2 | kind of variable use, otherwise we're looking into /usr/include/. | ||
3 | |||
4 | RP - 26/11/09 | ||
5 | |||
6 | Index: git/xorg-server.m4 | ||
7 | =================================================================== | ||
8 | --- git.orig/xorg-server.m4 2009-11-10 12:04:34.000000000 +0000 | ||
9 | +++ git/xorg-server.m4 2009-11-27 00:05:02.000000000 +0000 | ||
10 | @@ -28,9 +28,10 @@ | ||
11 | # Checks for the $1 define in xorg-server.h (from the sdk). If it | ||
12 | # is defined, then add $1 to $REQUIRED_MODULES. | ||
13 | |||
14 | +m4_pattern_allow([^PKG_CONFIG_SYSROOT_DIR$]) | ||
15 | AC_DEFUN([XORG_DRIVER_CHECK_EXT],[ | ||
16 | SAVE_CFLAGS="$CFLAGS" | ||
17 | - CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" | ||
18 | + CFLAGS="$CFLAGS -I$PKG_CONFIG_SYSROOT_DIR`pkg-config --variable=sdkdir xorg-server`" | ||
19 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | ||
20 | #include "xorg-server.h" | ||
21 | #if !defined $1 | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/fix_macros1.patch b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/fix_macros1.patch new file mode 100644 index 0000000000..94852f0dea --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/fix_macros1.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | We need to insert the sysroot path into compiler commandlines for this | ||
2 | kind of variable use, otherwise we're looking into /usr/include/. | ||
3 | |||
4 | RP - 26/11/09 | ||
5 | |||
6 | Index: git/xorg-server.m4 | ||
7 | =================================================================== | ||
8 | --- git.orig/xorg-server.m4 2010-02-05 10:00:55.000000000 +0000 | ||
9 | +++ git/xorg-server.m4 2010-02-05 10:02:12.000000000 +0000 | ||
10 | @@ -28,10 +28,11 @@ | ||
11 | # Checks for the $1 define in xorg-server.h (from the sdk). If it | ||
12 | # is defined, then add $1 to $REQUIRED_MODULES. | ||
13 | |||
14 | +m4_pattern_allow([^PKG_CONFIG_SYSROOT_DIR$]) | ||
15 | AC_DEFUN([XORG_DRIVER_CHECK_EXT],[ | ||
16 | AC_REQUIRE([PKG_PROG_PKG_CONFIG]) | ||
17 | SAVE_CFLAGS="$CFLAGS" | ||
18 | - CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" | ||
19 | + CFLAGS="$CFLAGS -I$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=sdkdir xorg-server`" | ||
20 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | ||
21 | #include "xorg-server.h" | ||
22 | #if !defined $1 | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/fix_open_max_preprocessor_error.patch b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/fix_open_max_preprocessor_error.patch new file mode 100644 index 0000000000..565832eed8 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/fix_open_max_preprocessor_error.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | Index: git/os/osdep.h | ||
2 | =================================================================== | ||
3 | --- git.orig/os/osdep.h 2008-10-07 18:38:21.000000000 +0100 | ||
4 | +++ git/os/osdep.h 2008-10-07 18:39:36.000000000 +0100 | ||
5 | @@ -92,7 +92,7 @@ | ||
6 | * like sysconf(_SC_OPEN_MAX) is not supported. | ||
7 | */ | ||
8 | |||
9 | -#if OPEN_MAX <= 256 | ||
10 | +#if 0 | ||
11 | #define MAXSOCKS (OPEN_MAX - 1) | ||
12 | #else | ||
13 | #define MAXSOCKS 256 | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/libdri-xinerama-symbol.patch b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/libdri-xinerama-symbol.patch new file mode 100644 index 0000000000..db29da93ca --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/libdri-xinerama-symbol.patch | |||
@@ -0,0 +1,50 @@ | |||
1 | Index: xorg-server-1.5.0/hw/xfree86/dri/dri.c | ||
2 | =================================================================== | ||
3 | --- xorg-server-1.5.0.orig/hw/xfree86/dri/dri.c 2008-09-24 17:43:04.000000000 +0100 | ||
4 | +++ xorg-server-1.5.0/hw/xfree86/dri/dri.c 2008-09-24 17:46:38.000000000 +0100 | ||
5 | @@ -73,10 +73,6 @@ | ||
6 | |||
7 | #define PCI_BUS_NO_DOMAIN(bus) ((bus) & 0xffu) | ||
8 | |||
9 | -#if !defined(PANORAMIX) | ||
10 | -extern Bool noPanoramiXExtension; | ||
11 | -#endif | ||
12 | - | ||
13 | static int DRIEntPrivIndex = -1; | ||
14 | static DevPrivateKey DRIScreenPrivKey = &DRIScreenPrivKey; | ||
15 | static DevPrivateKey DRIWindowPrivKey = &DRIWindowPrivKey; | ||
16 | @@ -307,7 +303,6 @@ | ||
17 | drm_context_t * reserved; | ||
18 | int reserved_count; | ||
19 | int i; | ||
20 | - Bool xineramaInCore = FALSE; | ||
21 | DRIEntPrivPtr pDRIEntPriv; | ||
22 | ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; | ||
23 | DRIContextFlags flags = 0; | ||
24 | @@ -320,20 +315,13 @@ | ||
25 | return FALSE; | ||
26 | } | ||
27 | |||
28 | - /* | ||
29 | - * If Xinerama is on, don't allow DRI to initialise. It won't be usable | ||
30 | - * anyway. | ||
31 | - */ | ||
32 | - if (xf86LoaderCheckSymbol("noPanoramiXExtension")) | ||
33 | - xineramaInCore = TRUE; | ||
34 | - | ||
35 | - if (xineramaInCore) { | ||
36 | - if (!noPanoramiXExtension) { | ||
37 | - DRIDrvMsg(pScreen->myNum, X_WARNING, | ||
38 | - "Direct rendering is not supported when Xinerama is enabled\n"); | ||
39 | - return FALSE; | ||
40 | - } | ||
41 | +#if defined(PANORAMIX) | ||
42 | + if (!noPanoramiXExtension) { | ||
43 | + DRIDrvMsg(pScreen->myNum, X_WARNING, | ||
44 | + "Direct rendering is not supported when Xinerama is enabled\n"); | ||
45 | + return FALSE; | ||
46 | } | ||
47 | +#endif | ||
48 | |||
49 | if (!DRIOpenDRMMaster(pScrn, pDRIInfo->SAREASize, | ||
50 | pDRIInfo->busIdString, | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/macro_tweak.patch b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/macro_tweak.patch new file mode 100644 index 0000000000..cd408c7bc2 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/macro_tweak.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | This is the revised version of files/macro_tweak.patch for | ||
2 | xorg-server 1.8.99.904. | ||
3 | |||
4 | the files/macro_tweak.patch can not removed now since it is used by | ||
5 | xserver-kdrive-1.7.99.2 and xserver-xf86-lite_1.7.99.2. Once they | ||
6 | are all upgraded to 1.8.99.904, the the files/macro_tweak.patch | ||
7 | can be safely replace by this patch. | ||
8 | |||
9 | Signed-off-by: Yu Ke <ke.yu@intel.com> | ||
10 | |||
11 | diff --git a/xorg-server.m4 b/xorg-server.m4 | ||
12 | index bdecf62..040fdb8 100644 | ||
13 | --- a/xorg-server.m4 | ||
14 | +++ b/xorg-server.m4 | ||
15 | @@ -28,10 +28,12 @@ dnl | ||
16 | # Checks for the $1 define in xorg-server.h (from the sdk). If it | ||
17 | # is defined, then add $1 to $REQUIRED_MODULES. | ||
18 | |||
19 | +m4_pattern_allow(PKG_CONFIG_SYSROOT_DIR) | ||
20 | + | ||
21 | AC_DEFUN([XORG_DRIVER_CHECK_EXT],[ | ||
22 | AC_REQUIRE([PKG_PROG_PKG_CONFIG]) | ||
23 | SAVE_CFLAGS="$CFLAGS" | ||
24 | - CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" | ||
25 | + CFLAGS="$CFLAGS -I$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=sdkdir xorg-server`" | ||
26 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | ||
27 | #include "xorg-server.h" | ||
28 | #if !defined $1 | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/nodolt.patch b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/nodolt.patch new file mode 100644 index 0000000000..6b34032a39 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/nodolt.patch | |||
@@ -0,0 +1,12 @@ | |||
1 | Index: git/configure.ac | ||
2 | =================================================================== | ||
3 | --- git.orig/configure.ac 2009-01-15 20:35:31.000000000 +0000 | ||
4 | +++ git/configure.ac 2009-01-15 20:35:38.000000000 +0000 | ||
5 | @@ -62,7 +62,6 @@ | ||
6 | AC_LIBTOOL_WIN32_DLL | ||
7 | AC_DISABLE_STATIC | ||
8 | AC_PROG_LIBTOOL | ||
9 | -DOLT | ||
10 | AC_PROG_MAKE_SET | ||
11 | PKG_PROG_PKG_CONFIG | ||
12 | AC_PROG_LEX | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/xorg-server-disable-dri_sarea.patch b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/xorg-server-disable-dri_sarea.patch new file mode 100755 index 0000000000..3d2fa1669a --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/xorg-server-disable-dri_sarea.patch | |||
@@ -0,0 +1,12 @@ | |||
1 | diff -urN xorg-server-1.5.99.1/hw/xfree86/dri2/dri2.c xorg-server-1.5.99.1.new/hw/xfree86/dri2/dri2.c | ||
2 | --- xorg-server-1.5.99.1/hw/xfree86/dri2/dri2.c 2008-09-01 03:26:37.000000000 +0800 | ||
3 | +++ xorg-server-1.5.99.1.new/hw/xfree86/dri2/dri2.c 2008-09-18 00:28:16.000000000 +0800 | ||
4 | @@ -39,7 +39,7 @@ | ||
5 | #include "scrnintstr.h" | ||
6 | #include "windowstr.h" | ||
7 | #include "dri2.h" | ||
8 | -#include <GL/internal/dri_sarea.h> | ||
9 | +//#include <GL/internal/dri_sarea.h> | ||
10 | |||
11 | #include "xf86.h" | ||
12 | |||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/xorg-server-enable-dri2.patch b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/xorg-server-enable-dri2.patch new file mode 100755 index 0000000000..7ff3658d0c --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/xorg-server-enable-dri2.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | commit 67b9b3a77a8b86eef03af36a0f4be3a07411efee | ||
2 | Author: Eric Anholt <eric@anholt.net> | ||
3 | Date: Thu Sep 11 16:18:17 2008 -0700 | ||
4 | |||
5 | Enable DRI2 build. | ||
6 | |||
7 | diff --git a/hw/xfree86/Makefile.am b/hw/xfree86/Makefile.am | ||
8 | index eff2c31..98d7ec8 100644 | ||
9 | --- a/hw/xfree86/Makefile.am | ||
10 | +++ b/hw/xfree86/Makefile.am | ||
11 | @@ -4,9 +4,9 @@ if DRI | ||
12 | DRI_SUBDIR = dri | ||
13 | endif | ||
14 | |||
15 | -#if DRI2 | ||
16 | -#DRI2_SUBDIR = dri2 | ||
17 | -#endif | ||
18 | +if DRI2 | ||
19 | +DRI2_SUBDIR = dri2 | ||
20 | +endif | ||
21 | |||
22 | if XF86UTILS | ||
23 | XF86UTILS_SUBDIR = utils | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/xserver-1.5.0-bg-none-root.patch b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/xserver-1.5.0-bg-none-root.patch new file mode 100644 index 0000000000..ef53689bd0 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/xserver-1.5.0-bg-none-root.patch | |||
@@ -0,0 +1,156 @@ | |||
1 | From a3e15680da24cb8259f6a83dee0c930dab024290 Mon Sep 17 00:00:00 2001 | ||
2 | From: Kristian <krh@redhat.com> | ||
3 | Date: Fri, 15 Aug 2008 15:15:14 +1000 | ||
4 | Subject: [PATCH] Add nr for background=none root | ||
5 | |||
6 | --- | ||
7 | dix/globals.c | 1 + | ||
8 | dix/window.c | 22 ++++++++++++---------- | ||
9 | hw/xfree86/common/xf86Init.c | 11 +++++++++++ | ||
10 | hw/xfree86/common/xf86str.h | 5 ++++- | ||
11 | include/opaque.h | 1 + | ||
12 | os/utils.c | 3 +++ | ||
13 | 6 files changed, 32 insertions(+), 11 deletions(-) | ||
14 | |||
15 | diff --git a/dix/globals.c b/dix/globals.c | ||
16 | index 973dc43..dbd76bb 100644 | ||
17 | --- a/dix/globals.c | ||
18 | +++ b/dix/globals.c | ||
19 | @@ -141,6 +141,7 @@ FontPtr defaultFont; /* not declared in dix.h to avoid including font.h in | ||
20 | CursorPtr rootCursor; | ||
21 | Bool party_like_its_1989 = FALSE; | ||
22 | Bool whiteRoot = FALSE; | ||
23 | +Bool bgNoneRoot = FALSE; | ||
24 | |||
25 | int cursorScreenDevPriv[MAXSCREENS]; | ||
26 | |||
27 | diff --git a/dix/window.c b/dix/window.c | ||
28 | index c31fa87..8bb178d 100644 | ||
29 | --- a/dix/window.c | ||
30 | +++ b/dix/window.c | ||
31 | @@ -482,23 +482,24 @@ InitRootWindow(WindowPtr pWin) | ||
32 | pWin->cursorIsNone = FALSE; | ||
33 | pWin->optional->cursor = rootCursor; | ||
34 | rootCursor->refcnt++; | ||
35 | - | ||
36 | + pWin->backingStore = defaultBackingStore; | ||
37 | + pWin->forcedBS = (defaultBackingStore != NotUseful); | ||
38 | |||
39 | if (party_like_its_1989) { | ||
40 | MakeRootTile(pWin); | ||
41 | backFlag |= CWBackPixmap; | ||
42 | + pScreen->ChangeWindowAttributes(pWin, backFlag); | ||
43 | + } else if (bgNoneRoot) { | ||
44 | + /* nothing, handled in xf86CreateRootWindow */ | ||
45 | } else { | ||
46 | if (whiteRoot) | ||
47 | pWin->background.pixel = pScreen->whitePixel; | ||
48 | else | ||
49 | pWin->background.pixel = pScreen->blackPixel; | ||
50 | backFlag |= CWBackPixel; | ||
51 | - } | ||
52 | |||
53 | - pWin->backingStore = defaultBackingStore; | ||
54 | - pWin->forcedBS = (defaultBackingStore != NotUseful); | ||
55 | - /* We SHOULD check for an error value here XXX */ | ||
56 | - (*pScreen->ChangeWindowAttributes)(pWin, backFlag); | ||
57 | + pScreen->ChangeWindowAttributes(pWin, backFlag); | ||
58 | + } | ||
59 | |||
60 | MapWindow(pWin, serverClient); | ||
61 | } | ||
62 | diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c | ||
63 | index 236c00b..083a6ac 100644 | ||
64 | --- a/hw/xfree86/common/xf86Init.c | ||
65 | +++ b/hw/xfree86/common/xf86Init.c | ||
66 | @@ -79,6 +79,7 @@ | ||
67 | #ifdef RENDER | ||
68 | #include "picturestr.h" | ||
69 | #endif | ||
70 | +#include "xace.h" | ||
71 | |||
72 | #include "globals.h" | ||
73 | |||
74 | @@ -328,6 +329,7 @@ xf86CreateRootWindow(WindowPtr pWin) | ||
75 | int ret = TRUE; | ||
76 | int err = Success; | ||
77 | ScreenPtr pScreen = pWin->drawable.pScreen; | ||
78 | + ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; | ||
79 | RootWinPropPtr pProp; | ||
80 | CreateWindowProcPtr CreateWindow = (CreateWindowProcPtr) | ||
81 | dixLookupPrivate(&pScreen->devPrivates, xf86CreateRootWindowKey); | ||
82 | @@ -381,6 +383,15 @@ xf86CreateRootWindow(WindowPtr pWin) | ||
83 | } | ||
84 | } | ||
85 | |||
86 | + if (bgNoneRoot && pScrn->canDoBGNoneRoot || 1) { | ||
87 | + pWin->backgroundState = XaceBackgroundNoneState(pWin); | ||
88 | + pWin->background.pixel = pScreen->whitePixel; | ||
89 | + pScreen->ChangeWindowAttributes(pWin, CWBackPixmap | CWBorderPixel | CWCursor | CWBackingStore); | ||
90 | + } else { | ||
91 | + pWin->background.pixel = pScreen->blackPixel; | ||
92 | + pScreen->ChangeWindowAttributes(pWin, CWBackPixel | CWBorderPixel | CWCursor | CWBackingStore); | ||
93 | + } | ||
94 | + | ||
95 | #ifdef DEBUG | ||
96 | ErrorF("xf86CreateRootWindow() returns %d\n", ret); | ||
97 | #endif | ||
98 | diff --git a/hw/xfree86/common/xf86str.h b/hw/xfree86/common/xf86str.h | ||
99 | index 904c369..8c38f69 100644 | ||
100 | --- a/hw/xfree86/common/xf86str.h | ||
101 | +++ b/hw/xfree86/common/xf86str.h | ||
102 | @@ -531,7 +531,7 @@ typedef struct _confdrirec { | ||
103 | } confDRIRec, *confDRIPtr; | ||
104 | |||
105 | /* These values should be adjusted when new fields are added to ScrnInfoRec */ | ||
106 | -#define NUM_RESERVED_INTS 16 | ||
107 | +#define NUM_RESERVED_INTS 15 | ||
108 | #define NUM_RESERVED_POINTERS 15 | ||
109 | #define NUM_RESERVED_FUNCS 11 | ||
110 | |||
111 | @@ -959,6 +959,9 @@ typedef struct _ScrnInfoRec { | ||
112 | ClockRangesPtr clockRanges; | ||
113 | int adjustFlags; | ||
114 | |||
115 | + /* -nr support */ | ||
116 | + int canDoBGNoneRoot; | ||
117 | + | ||
118 | /* | ||
119 | * These can be used when the minor ABI version is incremented. | ||
120 | * The NUM_* parameters must be reduced appropriately to keep the | ||
121 | diff --git a/include/opaque.h b/include/opaque.h | ||
122 | index 07a0715..be1577b 100644 | ||
123 | --- a/include/opaque.h | ||
124 | +++ b/include/opaque.h | ||
125 | @@ -71,6 +71,7 @@ extern Bool defeatAccessControl; | ||
126 | extern long maxBigRequestSize; | ||
127 | extern Bool party_like_its_1989; | ||
128 | extern Bool whiteRoot; | ||
129 | +extern Bool bgNoneRoot; | ||
130 | |||
131 | extern Bool CoreDump; | ||
132 | |||
133 | diff --git a/os/utils.c b/os/utils.c | ||
134 | index b100949..c41b45b 100644 | ||
135 | --- a/os/utils.c | ||
136 | +++ b/os/utils.c | ||
137 | @@ -515,6 +515,7 @@ void UseMsg(void) | ||
138 | #endif | ||
139 | ErrorF("-nolisten string don't listen on protocol\n"); | ||
140 | ErrorF("-noreset don't reset after last client exists\n"); | ||
141 | + ErrorF("-nr create root window with no background\n"); | ||
142 | ErrorF("-reset reset after last client exists\n"); | ||
143 | ErrorF("-p # screen-saver pattern duration (minutes)\n"); | ||
144 | ErrorF("-pn accept failure to listen on all ports\n"); | ||
145 | @@ -859,6 +860,8 @@ ProcessCommandLine(int argc, char *argv[]) | ||
146 | defaultBackingStore = WhenMapped; | ||
147 | else if ( strcmp( argv[i], "-wr") == 0) | ||
148 | whiteRoot = TRUE; | ||
149 | + else if ( strcmp( argv[i], "-nr") == 0) | ||
150 | + bgNoneRoot = TRUE; | ||
151 | else if ( strcmp( argv[i], "-maxbigreqsize") == 0) { | ||
152 | if(++i < argc) { | ||
153 | long reqSizeArg = atol(argv[i]); | ||
154 | -- | ||
155 | 1.5.3.4 | ||
156 | |||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/xserver-DRI2Swapbuffer.patch b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/xserver-DRI2Swapbuffer.patch new file mode 100644 index 0000000000..2754170d2f --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/xserver-DRI2Swapbuffer.patch | |||
@@ -0,0 +1,179 @@ | |||
1 | diff --git a/glx/glxdri2.c b/glx/glxdri2.c | ||
2 | index 146ea82..3b5338b 100644 | ||
3 | --- a/glx/glxdri2.c | ||
4 | +++ b/glx/glxdri2.c | ||
5 | @@ -70,6 +70,7 @@ struct __GLXDRIscreen { | ||
6 | |||
7 | const __DRIcoreExtension *core; | ||
8 | const __DRIdri2Extension *dri2; | ||
9 | + const __DRI2flushExtension *flush; | ||
10 | const __DRIcopySubBufferExtension *copySubBuffer; | ||
11 | const __DRIswapControlExtension *swapControl; | ||
12 | const __DRItexBufferExtension *texBuffer; | ||
13 | @@ -135,10 +136,14 @@ __glXDRIdrawableCopySubBuffer(__GLXdrawable *drawable, | ||
14 | static GLboolean | ||
15 | __glXDRIdrawableSwapBuffers(__GLXdrawable *drawable) | ||
16 | { | ||
17 | - __GLXDRIdrawable *private = (__GLXDRIdrawable *) drawable; | ||
18 | + __GLXDRIdrawable *priv = (__GLXDRIdrawable *) drawable; | ||
19 | + __GLXDRIscreen *screen = priv->screen; | ||
20 | + | ||
21 | + if (!DRI2SwapBuffers(drawable->pDraw)) | ||
22 | + return FALSE; | ||
23 | |||
24 | - __glXDRIdrawableCopySubBuffer(drawable, 0, 0, | ||
25 | - private->width, private->height); | ||
26 | + if (screen->flush->flushInvalidate) | ||
27 | + (*screen->flush->flushInvalidate)(priv->driDrawable); | ||
28 | |||
29 | return TRUE; | ||
30 | } | ||
31 | diff --git a/hw/xfree86/dri2/dri2.c b/hw/xfree86/dri2/dri2.c | ||
32 | index 580383d..23e6467 100644 | ||
33 | --- a/hw/xfree86/dri2/dri2.c | ||
34 | +++ b/hw/xfree86/dri2/dri2.c | ||
35 | @@ -70,6 +70,7 @@ typedef struct _DRI2Screen { | ||
36 | DRI2CreateBufferProcPtr CreateBuffer; | ||
37 | DRI2DestroyBufferProcPtr DestroyBuffer; | ||
38 | DRI2CopyRegionProcPtr CopyRegion; | ||
39 | + DRI2SwapBuffersProcPtr SwapBuffers; | ||
40 | |||
41 | HandleExposuresProcPtr HandleExposures; | ||
42 | } DRI2ScreenRec, *DRI2ScreenPtr; | ||
43 | @@ -422,6 +423,49 @@ DRI2CopyRegion(DrawablePtr pDraw, RegionPtr pRegion, | ||
44 | return Success; | ||
45 | } | ||
46 | |||
47 | +Bool | ||
48 | +DRI2SwapBuffers(DrawablePtr pDraw) | ||
49 | +{ | ||
50 | + DRI2ScreenPtr ds = DRI2GetScreen(pDraw->pScreen); | ||
51 | + DRI2DrawablePtr pPriv; | ||
52 | + DRI2BufferPtr pDestBuffer, pSrcBuffer; | ||
53 | + int i; | ||
54 | + | ||
55 | + pPriv = DRI2GetDrawable(pDraw); | ||
56 | + if (pPriv == NULL) | ||
57 | + return FALSE; | ||
58 | + | ||
59 | + pDestBuffer = NULL; | ||
60 | + pSrcBuffer = NULL; | ||
61 | + for (i = 0; i < pPriv->bufferCount; i++) | ||
62 | + { | ||
63 | + if (pPriv->buffers[i]->attachment == DRI2BufferFrontLeft) | ||
64 | + pDestBuffer = (DRI2BufferPtr) pPriv->buffers[i]; | ||
65 | + if (pPriv->buffers[i]->attachment == DRI2BufferBackLeft) | ||
66 | + pSrcBuffer = (DRI2BufferPtr) pPriv->buffers[i]; | ||
67 | + } | ||
68 | + if (pSrcBuffer == NULL || pDestBuffer == NULL) | ||
69 | + return FALSE; | ||
70 | + | ||
71 | + if (ds->SwapBuffers) { | ||
72 | + if ((*ds->SwapBuffers)(pDraw, pDestBuffer, pSrcBuffer)) | ||
73 | + return TRUE; | ||
74 | + } | ||
75 | + | ||
76 | + BoxRec box; | ||
77 | + RegionRec region; | ||
78 | + | ||
79 | + box.x1 = 0; | ||
80 | + box.y1 = 0; | ||
81 | + box.x2 = pDraw->width; | ||
82 | + box.y2 = pDraw->height; | ||
83 | + REGION_INIT(drawable->pDraw->pScreen, ®ion, &box, 0); | ||
84 | + if (DRI2CopyRegion(pDraw, ®ion, DRI2BufferFrontLeft, DRI2BufferBackLeft) != Success) | ||
85 | + return FALSE; | ||
86 | + | ||
87 | + return TRUE; | ||
88 | +} | ||
89 | + | ||
90 | void | ||
91 | DRI2DestroyDrawable(DrawablePtr pDraw) | ||
92 | { | ||
93 | @@ -538,6 +582,9 @@ DRI2ScreenInit(ScreenPtr pScreen, DRI2InfoPtr info) | ||
94 | } | ||
95 | ds->CopyRegion = info->CopyRegion; | ||
96 | |||
97 | + if (info->version >= 3) | ||
98 | + ds->SwapBuffers = info->SwapBuffers; | ||
99 | + | ||
100 | dixSetPrivate(&pScreen->devPrivates, dri2ScreenPrivateKey, ds); | ||
101 | |||
102 | xf86DrvMsg(pScreen->myNum, X_INFO, "[DRI2] Setup complete\n"); | ||
103 | diff --git a/hw/xfree86/dri2/dri2.h b/hw/xfree86/dri2/dri2.h | ||
104 | index f369267..e2784dd 100644 | ||
105 | --- a/hw/xfree86/dri2/dri2.h | ||
106 | +++ b/hw/xfree86/dri2/dri2.h | ||
107 | @@ -67,6 +67,10 @@ typedef void (*DRI2CopyRegionProcPtr)(DrawablePtr pDraw, | ||
108 | DRI2BufferPtr pDestBuffer, | ||
109 | DRI2BufferPtr pSrcBuffer); | ||
110 | |||
111 | +typedef Bool (*DRI2SwapBuffersProcPtr)(DrawablePtr pDraw, | ||
112 | + DRI2BufferPtr pFrontBuffer, | ||
113 | + DRI2BufferPtr pBackBuffer); | ||
114 | + | ||
115 | typedef void (*DRI2WaitProcPtr)(WindowPtr pWin, | ||
116 | unsigned int sequence); | ||
117 | |||
118 | @@ -90,6 +94,7 @@ typedef struct { | ||
119 | DRI2CreateBuffersProcPtr CreateBuffers; | ||
120 | DRI2DestroyBuffersProcPtr DestroyBuffers; | ||
121 | DRI2CopyRegionProcPtr CopyRegion; | ||
122 | + DRI2SwapBuffersProcPtr SwapBuffers; | ||
123 | DRI2WaitProcPtr Wait; | ||
124 | |||
125 | /** | ||
126 | @@ -153,4 +158,6 @@ extern _X_EXPORT DRI2Buffer2Ptr *DRI2GetBuffersWithFormat(DrawablePtr pDraw, | ||
127 | int *width, int *height, unsigned int *attachments, int count, | ||
128 | int *out_count); | ||
129 | |||
130 | +extern _X_EXPORT Bool DRI2SwapBuffers(DrawablePtr pDraw); | ||
131 | + | ||
132 | #endif | ||
133 | diff --git a/hw/xfree86/dri2/dri2ext.c b/hw/xfree86/dri2/dri2ext.c | ||
134 | index 3c06174..67b419b 100644 | ||
135 | --- a/hw/xfree86/dri2/dri2ext.c | ||
136 | +++ b/hw/xfree86/dri2/dri2ext.c | ||
137 | @@ -81,7 +81,7 @@ ProcDRI2QueryVersion(ClientPtr client) | ||
138 | rep.length = 0; | ||
139 | rep.sequenceNumber = client->sequence; | ||
140 | rep.majorVersion = 1; | ||
141 | - rep.minorVersion = 1; | ||
142 | + rep.minorVersion = 2; | ||
143 | |||
144 | if (client->swapped) { | ||
145 | swaps(&rep.sequenceNumber, n); | ||
146 | @@ -323,6 +323,24 @@ ProcDRI2CopyRegion(ClientPtr client) | ||
147 | } | ||
148 | |||
149 | static int | ||
150 | +ProcDRI2SwapBuffers(ClientPtr client) | ||
151 | +{ | ||
152 | + REQUEST(xDRI2SwapBuffersReq); | ||
153 | + DrawablePtr pDrawable; | ||
154 | + int status; | ||
155 | + | ||
156 | + REQUEST_SIZE_MATCH(xDRI2SwapBuffersReq); | ||
157 | + | ||
158 | + if (!validDrawable(client, stuff->drawable, &pDrawable, &status)) | ||
159 | + return status; | ||
160 | + | ||
161 | + if (!DRI2SwapBuffers(pDrawable)) | ||
162 | + return BadAlloc; | ||
163 | + | ||
164 | + return client->noClientException; | ||
165 | +} | ||
166 | + | ||
167 | +static int | ||
168 | ProcDRI2Dispatch (ClientPtr client) | ||
169 | { | ||
170 | REQUEST(xReq); | ||
171 | @@ -350,6 +368,8 @@ ProcDRI2Dispatch (ClientPtr client) | ||
172 | return ProcDRI2CopyRegion(client); | ||
173 | case X_DRI2GetBuffersWithFormat: | ||
174 | return ProcDRI2GetBuffersWithFormat(client); | ||
175 | + case X_DRI2SwapBuffers: | ||
176 | + return ProcDRI2SwapBuffers(client); | ||
177 | default: | ||
178 | return BadRequest; | ||
179 | } | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/xserver-boottime.patch b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/xserver-boottime.patch new file mode 100644 index 0000000000..efc85a42ab --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/xserver-boottime.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | diff --git a/os/log.c b/os/log.c | ||
2 | index 0860847..2c46f1a 100644 | ||
3 | --- a/os/log.c | ||
4 | +++ b/os/log.c | ||
5 | @@ -255,6 +255,33 @@ LogVWrite(int verb, const char *f, va_list args) | ||
6 | static char tmpBuffer[1024]; | ||
7 | int len = 0; | ||
8 | |||
9 | + struct timeval time; | ||
10 | + time_t tv_sec; | ||
11 | + suseconds_t tv_usec; | ||
12 | + static Bool first = TRUE; | ||
13 | + static time_t start_tv_sec; | ||
14 | + static suseconds_t start_usec; | ||
15 | + int diff_sec, diff_usec; | ||
16 | + | ||
17 | + gettimeofday(&time, NULL); | ||
18 | + tv_sec = time.tv_sec; | ||
19 | + tv_usec = time.tv_usec; | ||
20 | + if (first == TRUE) { | ||
21 | + start_tv_sec = tv_sec; | ||
22 | + start_usec = tv_usec; | ||
23 | + first = FALSE; | ||
24 | + } | ||
25 | + diff_sec = (int)difftime(tv_sec, start_tv_sec); | ||
26 | + diff_usec = (tv_usec - start_usec); | ||
27 | + if (diff_usec < 0) { | ||
28 | + diff_sec--; | ||
29 | + diff_usec += 1000000; | ||
30 | + } | ||
31 | + sprintf(tmpBuffer, "[%d sec: %06d usec]", diff_sec , diff_usec); | ||
32 | + len = strlen(tmpBuffer); | ||
33 | + if (logFile) | ||
34 | + fwrite(tmpBuffer, len, 1, logFile); | ||
35 | + | ||
36 | /* | ||
37 | * Since a va_list can only be processed once, write the string to a | ||
38 | * buffer, and then write the buffer out to the appropriate output | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/xserver-no-root-2.patch b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/xserver-no-root-2.patch new file mode 100644 index 0000000000..afc94dcc5c --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/xserver-no-root-2.patch | |||
@@ -0,0 +1,105 @@ | |||
1 | diff --git a/hw/xfree86/os-support/linux/lnx_init.c b/hw/xfree86/os-support/linux/lnx_init.c | ||
2 | index 7f40857..cf58c01 100644 | ||
3 | --- a/hw/xfree86/os-support/linux/lnx_init.c | ||
4 | +++ b/hw/xfree86/os-support/linux/lnx_init.c | ||
5 | @@ -49,6 +49,7 @@ static Bool KeepTty = FALSE; | ||
6 | static int VTnum = -1; | ||
7 | static Bool VTSwitch = TRUE; | ||
8 | static Bool ShareVTs = FALSE; | ||
9 | +Bool NoHwAccess = FALSE; | ||
10 | static int activeVT = -1; | ||
11 | |||
12 | static int vtPermSave[4]; | ||
13 | @@ -80,9 +81,11 @@ saveVtPerms(void) | ||
14 | static void | ||
15 | restoreVtPerms(void) | ||
16 | { | ||
17 | - /* Set the terminal permissions back to before we started. */ | ||
18 | - chown("/dev/tty0", vtPermSave[0], vtPermSave[1]); | ||
19 | - chown(vtname, vtPermSave[2], vtPermSave[3]); | ||
20 | + if (geteuid() == 0) { | ||
21 | + /* Set the terminal permissions back to before we started. */ | ||
22 | + (void)chown("/dev/tty0", vtPermSave[0], vtPermSave[1]); | ||
23 | + (void)chown(vtname, vtPermSave[2], vtPermSave[3]); | ||
24 | + } | ||
25 | } | ||
26 | |||
27 | static void *console_handler; | ||
28 | @@ -210,20 +213,22 @@ xf86OpenConsole(void) | ||
29 | xf86Msg(X_WARNING, | ||
30 | "xf86OpenConsole: Could not save ownership of VT\n"); | ||
31 | |||
32 | - /* change ownership of the vt */ | ||
33 | - if (chown(vtname, getuid(), getgid()) < 0) | ||
34 | - xf86Msg(X_WARNING,"xf86OpenConsole: chown %s failed: %s\n", | ||
35 | - vtname, strerror(errno)); | ||
36 | - | ||
37 | - /* | ||
38 | - * the current VT device we're running on is not "console", we want | ||
39 | - * to grab all consoles too | ||
40 | - * | ||
41 | - * Why is this needed?? | ||
42 | - */ | ||
43 | - if (chown("/dev/tty0", getuid(), getgid()) < 0) | ||
44 | - xf86Msg(X_WARNING,"xf86OpenConsole: chown /dev/tty0 failed: %s\n", | ||
45 | - strerror(errno)); | ||
46 | + if (geteuid() == 0) { | ||
47 | + /* change ownership of the vt */ | ||
48 | + if (chown(vtname, getuid(), getgid()) < 0) | ||
49 | + xf86Msg(X_WARNING,"xf86OpenConsole: chown %s failed: %s\n", | ||
50 | + vtname, strerror(errno)); | ||
51 | + | ||
52 | + /* | ||
53 | + * the current VT device we're running on is not | ||
54 | + * "console", we want to grab all consoles too | ||
55 | + * | ||
56 | + * Why is this needed?? | ||
57 | + */ | ||
58 | + if (chown("/dev/tty0", getuid(), getgid()) < 0) | ||
59 | + xf86Msg(X_WARNING,"xf86OpenConsole: chown /dev/tty0 failed: %s\n", | ||
60 | + strerror(errno)); | ||
61 | + } | ||
62 | } | ||
63 | |||
64 | /* | ||
65 | @@ -433,6 +438,11 @@ xf86ProcessArgument(int argc, char *argv[], int i) | ||
66 | ShareVTs = TRUE; | ||
67 | return(1); | ||
68 | } | ||
69 | + if (!strcmp(argv[i], "-nohwaccess")) | ||
70 | + { | ||
71 | + NoHwAccess = TRUE; | ||
72 | + return(1); | ||
73 | + } | ||
74 | if ((argv[i][0] == 'v') && (argv[i][1] == 't')) | ||
75 | { | ||
76 | if (sscanf(argv[i], "vt%2d", &VTnum) == 0) | ||
77 | @@ -454,5 +464,6 @@ xf86UseMsg() | ||
78 | ErrorF("don't detach controlling tty (for debugging only)\n"); | ||
79 | ErrorF("-novtswitch don't immediately switch to new VT\n"); | ||
80 | ErrorF("-sharevts share VTs with another X server\n"); | ||
81 | + ErrorF("-nohwaccess don't access hardware ports directly\n"); | ||
82 | return; | ||
83 | } | ||
84 | diff --git a/hw/xfree86/os-support/linux/lnx_video.c b/hw/xfree86/os-support/linux/lnx_video.c | ||
85 | index 688106a..34a845b 100644 | ||
86 | --- a/hw/xfree86/os-support/linux/lnx_video.c | ||
87 | +++ b/hw/xfree86/os-support/linux/lnx_video.c | ||
88 | @@ -51,6 +51,7 @@ | ||
89 | #define MAP_FAILED ((void *)-1) | ||
90 | #endif | ||
91 | |||
92 | +extern Bool NoHwAccess; | ||
93 | static Bool ExtendedEnabled = FALSE; | ||
94 | |||
95 | #ifdef __ia64__ | ||
96 | @@ -509,6 +510,9 @@ xf86EnableIO(void) | ||
97 | int fd; | ||
98 | unsigned int ioBase_phys; | ||
99 | #endif | ||
100 | + /* Fake it... */ | ||
101 | + if (NoHwAccess) | ||
102 | + return TRUE; | ||
103 | |||
104 | if (ExtendedEnabled) | ||
105 | return TRUE; | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite_1.8.99.904.bb b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite_1.8.99.904.bb new file mode 100644 index 0000000000..98d79a1b28 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite_1.8.99.904.bb | |||
@@ -0,0 +1,20 @@ | |||
1 | require xserver-xf86-dri-lite.inc | ||
2 | |||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=3dd2bbe3563837f80ed8926b06c1c353" | ||
4 | |||
5 | PROTO_DEPS += "xf86driproto dri2proto" | ||
6 | |||
7 | DEPENDS += "font-util" | ||
8 | |||
9 | PE = "1" | ||
10 | PR = "r1" | ||
11 | |||
12 | SRC_URI += "file://nodolt.patch \ | ||
13 | file://crosscompile.patch" | ||
14 | # file://libdri-xinerama-symbol.patch;patch=1 \ | ||
15 | # file://xserver-boottime.patch;patch=1" | ||
16 | |||
17 | # Misc build failure for master HEAD | ||
18 | SRC_URI += "file://fix_open_max_preprocessor_error.patch" | ||
19 | |||
20 | EXTRA_OECONF += "--enable-dri --enable-dri2" | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite_git.bb b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite_git.bb new file mode 100644 index 0000000000..4789f28f5f --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite_git.bb | |||
@@ -0,0 +1,31 @@ | |||
1 | require xserver-xf86-dri-lite.inc | ||
2 | |||
3 | PE = "1" | ||
4 | PR = "r0" | ||
5 | PV = "1.7.99+git${SRCPV}" | ||
6 | |||
7 | PROTO_DEPS += "xf86driproto dri2proto" | ||
8 | |||
9 | DEPENDS += "font-util" | ||
10 | |||
11 | RDEPENDS_${PN} += "xkeyboard-config" | ||
12 | |||
13 | # file://cache-xkbcomp-output-for-fast-start-up.patch;patch=1 \ | ||
14 | # file://xserver-1.5.0-bg-none-root.patch;patch=1 \ | ||
15 | # file://xserver-no-root-2.patch;patch=1 \ | ||
16 | # file://xserver-boottime.patch;patch=1" | ||
17 | # file://xserver-DRI2Swapbuffer.patch;patch=1" | ||
18 | |||
19 | |||
20 | SRC_URI = "git://anongit.freedesktop.org/git/xorg/xserver;protocol=git;branch=master \ | ||
21 | file://nodolt.patch;patch=1 \ | ||
22 | file://crosscompile.patch;patch=1 \ | ||
23 | file://fix_macros1.patch;patch=1" | ||
24 | # file://libdri-xinerama-symbol.patch;patch=1" | ||
25 | |||
26 | # Misc build failure for master HEAD | ||
27 | SRC_URI += "file://fix_open_max_preprocessor_error.patch;patch=1" | ||
28 | |||
29 | EXTRA_OECONF += "--enable-dri --enable-dri2 --enable-dga" | ||
30 | |||
31 | S = "${WORKDIR}/git" | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-lite.inc b/meta/recipes-graphics/xorg-xserver/xserver-xf86-lite.inc new file mode 100644 index 0000000000..7150a2a466 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-lite.inc | |||
@@ -0,0 +1,34 @@ | |||
1 | require xserver-xf86-common.inc | ||
2 | |||
3 | PROVIDES += "xserver-xf86-lite" | ||
4 | |||
5 | PROTO_DEPS = "randrproto renderproto fixesproto damageproto xextproto xproto xf86dgaproto xf86miscproto xf86rushproto xf86vidmodeproto xf86bigfontproto compositeproto recordproto resourceproto videoproto scrnsaverproto evieext trapproto xineramaproto fontsproto kbproto inputproto bigreqsproto xcmiscproto glproto" | ||
6 | |||
7 | LIB_DEPS = "pixman libxfont xtrans libxau libxext libxdmcp libdrm libxkbfile libpciaccess openssl" | ||
8 | |||
9 | DEPENDS = "${PROTO_DEPS} ${LIB_DEPS}" | ||
10 | |||
11 | RDEPENDS_${PN} += "hal xorg-minimal-fonts" | ||
12 | |||
13 | FILES_${PN} += "${bindir}/Xorg " | ||
14 | |||
15 | EXTRA_OECONF += "--disable-static \ | ||
16 | --disable-acfb \ | ||
17 | --disable-ccfb \ | ||
18 | --disable-mcfb \ | ||
19 | --disable-dga \ | ||
20 | --disable-xinerama \ | ||
21 | --disable-xf86misc \ | ||
22 | --disable-xorgcfg \ | ||
23 | --disable-record \ | ||
24 | --disable-dmx \ | ||
25 | --disable-xnest \ | ||
26 | --disable-xvfb \ | ||
27 | --enable-composite \ | ||
28 | --disable-dri \ | ||
29 | --disable-glx \ | ||
30 | --sysconfdir=/etc/X11 \ | ||
31 | --localstatedir=/var \ | ||
32 | --with-fontdir=/usr/share/fonts/X11 \ | ||
33 | --with-xkb-output=/var/lib/xkb \ | ||
34 | ac_cv_file__usr_share_sgml_X11_defs_ent=no" | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-lite/crosscompile.patch b/meta/recipes-graphics/xorg-xserver/xserver-xf86-lite/crosscompile.patch new file mode 100644 index 0000000000..2341e40bca --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-lite/crosscompile.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | Index: xorg-server-1.7.99.2/configure.ac | ||
2 | =================================================================== | ||
3 | --- xorg-server-1.7.99.2.orig/configure.ac 2010-01-29 16:38:49.000000000 +0000 | ||
4 | +++ xorg-server-1.7.99.2/configure.ac 2010-01-29 16:42:39.000000000 +0000 | ||
5 | @@ -503,14 +503,10 @@ | ||
6 | |||
7 | dnl Uses --default-font-path if set, otherwise checks for /etc/X11/fontpath.d, | ||
8 | dnl otherwise uses standard subdirectories of FONTROOTDIR | ||
9 | -AC_CHECK_FILE([${sysconfdir}/X11/fontpath.d], | ||
10 | - [DEFAULT_FONT_PATH='catalogue:${sysconfdir}/X11/fontpath.d'], | ||
11 | - [ | ||
12 | DEFAULT_FONT_PATH="${FONTMISCDIR}/,${FONTTTFDIR}/,${FONTOTFDIR}/,${FONTTYPE1DIR}/,${FONT100DPIDIR}/,${FONT75DPIDIR}/" | ||
13 | case $host_os in | ||
14 | darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;; | ||
15 | esac | ||
16 | - ]) | ||
17 | AC_ARG_WITH(default-font-path, AS_HELP_STRING([--with-default-font-path=PATH], [Comma separated list of font dirs]), | ||
18 | [ FONTPATH="$withval" ], | ||
19 | [ FONTPATH="${DEFAULT_FONT_PATH}" ]) | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-lite/drmfix.patch b/meta/recipes-graphics/xorg-xserver/xserver-xf86-lite/drmfix.patch new file mode 100644 index 0000000000..a62a767f23 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-lite/drmfix.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | Index: xorg-server-1.4/hw/xfree86/os-support/linux/Makefile.am | ||
2 | =================================================================== | ||
3 | --- xorg-server-1.4.orig/hw/xfree86/os-support/linux/Makefile.am 2007-08-23 21:04:53.000000000 +0200 | ||
4 | +++ xorg-server-1.4/hw/xfree86/os-support/linux/Makefile.am 2008-03-13 18:27:23.000000000 +0100 | ||
5 | @@ -41,7 +41,7 @@ | ||
6 | |||
7 | AM_CFLAGS = -DUSESTDRES -DHAVE_SYSV_IPC $(DIX_CFLAGS) $(XORG_CFLAGS) $(PLATFORM_DEFINES) | ||
8 | |||
9 | -INCLUDES = $(XORG_INCS) $(PLATFORM_INCLUDES) -I/usr/include/drm # FIXME this last part is crack | ||
10 | +INCLUDES = $(XORG_INCS) $(PLATFORM_INCLUDES) $(LIBDRM_CFLAGS) | ||
11 | |||
12 | # FIXME: These need to be added to the build | ||
13 | LNX_EXTRA_SRCS = \ | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-lite/fix_open_max_preprocessor_error.patch b/meta/recipes-graphics/xorg-xserver/xserver-xf86-lite/fix_open_max_preprocessor_error.patch new file mode 100644 index 0000000000..565832eed8 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-lite/fix_open_max_preprocessor_error.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | Index: git/os/osdep.h | ||
2 | =================================================================== | ||
3 | --- git.orig/os/osdep.h 2008-10-07 18:38:21.000000000 +0100 | ||
4 | +++ git/os/osdep.h 2008-10-07 18:39:36.000000000 +0100 | ||
5 | @@ -92,7 +92,7 @@ | ||
6 | * like sysconf(_SC_OPEN_MAX) is not supported. | ||
7 | */ | ||
8 | |||
9 | -#if OPEN_MAX <= 256 | ||
10 | +#if 0 | ||
11 | #define MAXSOCKS (OPEN_MAX - 1) | ||
12 | #else | ||
13 | #define MAXSOCKS 256 | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-lite/libdri-xinerama-symbol.patch b/meta/recipes-graphics/xorg-xserver/xserver-xf86-lite/libdri-xinerama-symbol.patch new file mode 100644 index 0000000000..db29da93ca --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-lite/libdri-xinerama-symbol.patch | |||
@@ -0,0 +1,50 @@ | |||
1 | Index: xorg-server-1.5.0/hw/xfree86/dri/dri.c | ||
2 | =================================================================== | ||
3 | --- xorg-server-1.5.0.orig/hw/xfree86/dri/dri.c 2008-09-24 17:43:04.000000000 +0100 | ||
4 | +++ xorg-server-1.5.0/hw/xfree86/dri/dri.c 2008-09-24 17:46:38.000000000 +0100 | ||
5 | @@ -73,10 +73,6 @@ | ||
6 | |||
7 | #define PCI_BUS_NO_DOMAIN(bus) ((bus) & 0xffu) | ||
8 | |||
9 | -#if !defined(PANORAMIX) | ||
10 | -extern Bool noPanoramiXExtension; | ||
11 | -#endif | ||
12 | - | ||
13 | static int DRIEntPrivIndex = -1; | ||
14 | static DevPrivateKey DRIScreenPrivKey = &DRIScreenPrivKey; | ||
15 | static DevPrivateKey DRIWindowPrivKey = &DRIWindowPrivKey; | ||
16 | @@ -307,7 +303,6 @@ | ||
17 | drm_context_t * reserved; | ||
18 | int reserved_count; | ||
19 | int i; | ||
20 | - Bool xineramaInCore = FALSE; | ||
21 | DRIEntPrivPtr pDRIEntPriv; | ||
22 | ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; | ||
23 | DRIContextFlags flags = 0; | ||
24 | @@ -320,20 +315,13 @@ | ||
25 | return FALSE; | ||
26 | } | ||
27 | |||
28 | - /* | ||
29 | - * If Xinerama is on, don't allow DRI to initialise. It won't be usable | ||
30 | - * anyway. | ||
31 | - */ | ||
32 | - if (xf86LoaderCheckSymbol("noPanoramiXExtension")) | ||
33 | - xineramaInCore = TRUE; | ||
34 | - | ||
35 | - if (xineramaInCore) { | ||
36 | - if (!noPanoramiXExtension) { | ||
37 | - DRIDrvMsg(pScreen->myNum, X_WARNING, | ||
38 | - "Direct rendering is not supported when Xinerama is enabled\n"); | ||
39 | - return FALSE; | ||
40 | - } | ||
41 | +#if defined(PANORAMIX) | ||
42 | + if (!noPanoramiXExtension) { | ||
43 | + DRIDrvMsg(pScreen->myNum, X_WARNING, | ||
44 | + "Direct rendering is not supported when Xinerama is enabled\n"); | ||
45 | + return FALSE; | ||
46 | } | ||
47 | +#endif | ||
48 | |||
49 | if (!DRIOpenDRMMaster(pScrn, pDRIInfo->SAREASize, | ||
50 | pDRIInfo->busIdString, | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-lite/nodolt.patch b/meta/recipes-graphics/xorg-xserver/xserver-xf86-lite/nodolt.patch new file mode 100644 index 0000000000..6b34032a39 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-lite/nodolt.patch | |||
@@ -0,0 +1,12 @@ | |||
1 | Index: git/configure.ac | ||
2 | =================================================================== | ||
3 | --- git.orig/configure.ac 2009-01-15 20:35:31.000000000 +0000 | ||
4 | +++ git/configure.ac 2009-01-15 20:35:38.000000000 +0000 | ||
5 | @@ -62,7 +62,6 @@ | ||
6 | AC_LIBTOOL_WIN32_DLL | ||
7 | AC_DISABLE_STATIC | ||
8 | AC_PROG_LIBTOOL | ||
9 | -DOLT | ||
10 | AC_PROG_MAKE_SET | ||
11 | PKG_PROG_PKG_CONFIG | ||
12 | AC_PROG_LEX | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-lite/revert_make_sys_c_use_unaligned_access_functions.patch b/meta/recipes-graphics/xorg-xserver/xserver-xf86-lite/revert_make_sys_c_use_unaligned_access_functions.patch new file mode 100644 index 0000000000..235b55153a --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-lite/revert_make_sys_c_use_unaligned_access_functions.patch | |||
@@ -0,0 +1,256 @@ | |||
1 | From 74ab27f64a747ee45810f99cdc6e29b82cf8035e Mon Sep 17 00:00:00 2001 | ||
2 | From: Tiago Vignatti <tiago.vignatti@nokia.com> | ||
3 | Date: Mon, 28 Dec 2009 16:00:28 +0000 | ||
4 | Subject: Revert "Make sys.c use unaligned access functions provided in compiler." | ||
5 | |||
6 | This reverts commit da923d0bc15e99a8ed1986bd6f5df37f7af7284b. | ||
7 | |||
8 | Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com> | ||
9 | Signed-off-by: Keith Packard <keithp@keithp.com> | ||
10 | --- | ||
11 | diff --git a/hw/xfree86/x86emu/Makefile.am b/hw/xfree86/x86emu/Makefile.am | ||
12 | index e7368f5..df96977 100644 | ||
13 | --- a/hw/xfree86/x86emu/Makefile.am | ||
14 | +++ b/hw/xfree86/x86emu/Makefile.am | ||
15 | @@ -11,7 +11,7 @@ libx86emu_la_SOURCES = debug.c \ | ||
16 | sys.c \ | ||
17 | x86emu.h | ||
18 | |||
19 | -INCLUDES = $(XORG_INCS) | ||
20 | +INCLUDES = | ||
21 | |||
22 | AM_CFLAGS = $(DIX_CFLAGS) $(XORG_CFLAGS) | ||
23 | |||
24 | diff --git a/hw/xfree86/x86emu/sys.c b/hw/xfree86/x86emu/sys.c | ||
25 | index 2ebf6f1..e15fb09 100644 | ||
26 | --- a/hw/xfree86/x86emu/sys.c | ||
27 | +++ b/hw/xfree86/x86emu/sys.c | ||
28 | @@ -48,13 +48,168 @@ | ||
29 | #ifndef NO_SYS_HEADERS | ||
30 | #include <string.h> | ||
31 | #endif | ||
32 | -#include "compiler.h" /* for unaligned access functions */ | ||
33 | /*------------------------- Global Variables ------------------------------*/ | ||
34 | |||
35 | X86EMU_sysEnv _X86EMU_env; /* Global emulator machine state */ | ||
36 | X86EMU_intrFuncs _X86EMU_intrTab[256]; | ||
37 | |||
38 | /*----------------------------- Implementation ----------------------------*/ | ||
39 | +#if defined(__alpha__) || defined(__alpha) | ||
40 | +/* to cope with broken egcs-1.1.2 :-(((( */ | ||
41 | + | ||
42 | +#define ALPHA_UALOADS | ||
43 | +/* | ||
44 | + * inline functions to do unaligned accesses | ||
45 | + * from linux/include/asm-alpha/unaligned.h | ||
46 | + */ | ||
47 | + | ||
48 | +/* | ||
49 | + * EGCS 1.1 knows about arbitrary unaligned loads. Define some | ||
50 | + * packed structures to talk about such things with. | ||
51 | + */ | ||
52 | + | ||
53 | +#if defined(__GNUC__) | ||
54 | +struct __una_u64 { unsigned long x __attribute__((packed)); }; | ||
55 | +struct __una_u32 { unsigned int x __attribute__((packed)); }; | ||
56 | +struct __una_u16 { unsigned short x __attribute__((packed)); }; | ||
57 | +#endif | ||
58 | + | ||
59 | +static __inline__ unsigned long ldq_u(unsigned long * r11) | ||
60 | +{ | ||
61 | +#if defined(__GNUC__) | ||
62 | + const struct __una_u64 *ptr = (const struct __una_u64 *) r11; | ||
63 | + return ptr->x; | ||
64 | +#else | ||
65 | + unsigned long r1,r2; | ||
66 | + __asm__("ldq_u %0,%3\n\t" | ||
67 | + "ldq_u %1,%4\n\t" | ||
68 | + "extql %0,%2,%0\n\t" | ||
69 | + "extqh %1,%2,%1" | ||
70 | + :"=&r" (r1), "=&r" (r2) | ||
71 | + :"r" (r11), | ||
72 | + "m" (*r11), | ||
73 | + "m" (*(const unsigned long *)(7+(char *) r11))); | ||
74 | + return r1 | r2; | ||
75 | +#endif | ||
76 | +} | ||
77 | + | ||
78 | +static __inline__ unsigned long ldl_u(unsigned int * r11) | ||
79 | +{ | ||
80 | +#if defined(__GNUC__) | ||
81 | + const struct __una_u32 *ptr = (const struct __una_u32 *) r11; | ||
82 | + return ptr->x; | ||
83 | +#else | ||
84 | + unsigned long r1,r2; | ||
85 | + __asm__("ldq_u %0,%3\n\t" | ||
86 | + "ldq_u %1,%4\n\t" | ||
87 | + "extll %0,%2,%0\n\t" | ||
88 | + "extlh %1,%2,%1" | ||
89 | + :"=&r" (r1), "=&r" (r2) | ||
90 | + :"r" (r11), | ||
91 | + "m" (*r11), | ||
92 | + "m" (*(const unsigned long *)(3+(char *) r11))); | ||
93 | + return r1 | r2; | ||
94 | +#endif | ||
95 | +} | ||
96 | + | ||
97 | +static __inline__ unsigned long ldw_u(unsigned short * r11) | ||
98 | +{ | ||
99 | +#if defined(__GNUC__) | ||
100 | + const struct __una_u16 *ptr = (const struct __una_u16 *) r11; | ||
101 | + return ptr->x; | ||
102 | +#else | ||
103 | + unsigned long r1,r2; | ||
104 | + __asm__("ldq_u %0,%3\n\t" | ||
105 | + "ldq_u %1,%4\n\t" | ||
106 | + "extwl %0,%2,%0\n\t" | ||
107 | + "extwh %1,%2,%1" | ||
108 | + :"=&r" (r1), "=&r" (r2) | ||
109 | + :"r" (r11), | ||
110 | + "m" (*r11), | ||
111 | + "m" (*(const unsigned long *)(1+(char *) r11))); | ||
112 | + return r1 | r2; | ||
113 | +#endif | ||
114 | +} | ||
115 | + | ||
116 | +/* | ||
117 | + * Elemental unaligned stores | ||
118 | + */ | ||
119 | + | ||
120 | +static __inline__ void stq_u(unsigned long r5, unsigned long * r11) | ||
121 | +{ | ||
122 | +#if defined(__GNUC__) | ||
123 | + struct __una_u64 *ptr = (struct __una_u64 *) r11; | ||
124 | + ptr->x = r5; | ||
125 | +#else | ||
126 | + unsigned long r1,r2,r3,r4; | ||
127 | + | ||
128 | + __asm__("ldq_u %3,%1\n\t" | ||
129 | + "ldq_u %2,%0\n\t" | ||
130 | + "insqh %6,%7,%5\n\t" | ||
131 | + "insql %6,%7,%4\n\t" | ||
132 | + "mskqh %3,%7,%3\n\t" | ||
133 | + "mskql %2,%7,%2\n\t" | ||
134 | + "bis %3,%5,%3\n\t" | ||
135 | + "bis %2,%4,%2\n\t" | ||
136 | + "stq_u %3,%1\n\t" | ||
137 | + "stq_u %2,%0" | ||
138 | + :"=m" (*r11), | ||
139 | + "=m" (*(unsigned long *)(7+(char *) r11)), | ||
140 | + "=&r" (r1), "=&r" (r2), "=&r" (r3), "=&r" (r4) | ||
141 | + :"r" (r5), "r" (r11)); | ||
142 | +#endif | ||
143 | +} | ||
144 | + | ||
145 | +static __inline__ void stl_u(unsigned long r5, unsigned int * r11) | ||
146 | +{ | ||
147 | +#if defined(__GNUC__) | ||
148 | + struct __una_u32 *ptr = (struct __una_u32 *) r11; | ||
149 | + ptr->x = r5; | ||
150 | +#else | ||
151 | + unsigned long r1,r2,r3,r4; | ||
152 | + | ||
153 | + __asm__("ldq_u %3,%1\n\t" | ||
154 | + "ldq_u %2,%0\n\t" | ||
155 | + "inslh %6,%7,%5\n\t" | ||
156 | + "insll %6,%7,%4\n\t" | ||
157 | + "msklh %3,%7,%3\n\t" | ||
158 | + "mskll %2,%7,%2\n\t" | ||
159 | + "bis %3,%5,%3\n\t" | ||
160 | + "bis %2,%4,%2\n\t" | ||
161 | + "stq_u %3,%1\n\t" | ||
162 | + "stq_u %2,%0" | ||
163 | + :"=m" (*r11), | ||
164 | + "=m" (*(unsigned long *)(3+(char *) r11)), | ||
165 | + "=&r" (r1), "=&r" (r2), "=&r" (r3), "=&r" (r4) | ||
166 | + :"r" (r5), "r" (r11)); | ||
167 | +#endif | ||
168 | +} | ||
169 | + | ||
170 | +static __inline__ void stw_u(unsigned long r5, unsigned short * r11) | ||
171 | +{ | ||
172 | +#if defined(__GNUC__) | ||
173 | + struct __una_u16 *ptr = (struct __una_u16 *) r11; | ||
174 | + ptr->x = r5; | ||
175 | +#else | ||
176 | + unsigned long r1,r2,r3,r4; | ||
177 | + | ||
178 | + __asm__("ldq_u %3,%1\n\t" | ||
179 | + "ldq_u %2,%0\n\t" | ||
180 | + "inswh %6,%7,%5\n\t" | ||
181 | + "inswl %6,%7,%4\n\t" | ||
182 | + "mskwh %3,%7,%3\n\t" | ||
183 | + "mskwl %2,%7,%2\n\t" | ||
184 | + "bis %3,%5,%3\n\t" | ||
185 | + "bis %2,%4,%2\n\t" | ||
186 | + "stq_u %3,%1\n\t" | ||
187 | + "stq_u %2,%0" | ||
188 | + :"=m" (*r11), | ||
189 | + "=m" (*(unsigned long *)(1+(char *) r11)), | ||
190 | + "=&r" (r1), "=&r" (r2), "=&r" (r3), "=&r" (r4) | ||
191 | + :"r" (r5), "r" (r11)); | ||
192 | +#endif | ||
193 | +} | ||
194 | +#endif | ||
195 | |||
196 | /**************************************************************************** | ||
197 | PARAMETERS: | ||
198 | @@ -107,7 +262,13 @@ u16 X86API rdw( | ||
199 | } | ||
200 | else | ||
201 | #endif | ||
202 | +#if defined(ALPHA_UALOADS) | ||
203 | val = ldw_u((u16*)(M.mem_base + addr)); | ||
204 | +#elif defined(IA64_UALOADS) | ||
205 | + val = uldw((u16*)(M.mem_base + addr)); | ||
206 | +#else | ||
207 | + val = *(u16*)(M.mem_base + addr); | ||
208 | +#endif | ||
209 | DB( if (DEBUG_MEM_TRACE()) | ||
210 | printk("%#08x 2 -> %#x\n", addr, val);) | ||
211 | return val; | ||
212 | @@ -140,7 +301,13 @@ u32 X86API rdl( | ||
213 | } | ||
214 | else | ||
215 | #endif | ||
216 | +#if defined(ALPHA_UALOADS) | ||
217 | val = ldl_u((u32*)(M.mem_base + addr)); | ||
218 | +#elif defined(IA64_UALOADS) | ||
219 | + val = uldl((u32*)(M.mem_base + addr)); | ||
220 | +#else | ||
221 | + val = *(u32*)(M.mem_base + addr); | ||
222 | +#endif | ||
223 | DB( if (DEBUG_MEM_TRACE()) | ||
224 | printk("%#08x 4 -> %#x\n", addr, val);) | ||
225 | return val; | ||
226 | @@ -192,7 +359,13 @@ DB( if (DEBUG_MEM_TRACE()) | ||
227 | } | ||
228 | else | ||
229 | #endif | ||
230 | +#if defined(ALPHA_UALOADS) | ||
231 | stw_u(val,(u16*)(M.mem_base + addr)); | ||
232 | +#elif defined(IA64_UALOADS) | ||
233 | + ustw(val,(u16*)(M.mem_base + addr)); | ||
234 | +#else | ||
235 | + *(u16*)(M.mem_base + addr) = val; | ||
236 | +#endif | ||
237 | } | ||
238 | |||
239 | /**************************************************************************** | ||
240 | @@ -222,7 +395,13 @@ DB( if (DEBUG_MEM_TRACE()) | ||
241 | } | ||
242 | else | ||
243 | #endif | ||
244 | +#if defined(ALPHA_UALOADS) | ||
245 | stl_u(val,(u32*)(M.mem_base + addr)); | ||
246 | +#elif defined(IA64_UALOADS) | ||
247 | + ustl(val,(u32*)(M.mem_base + addr)); | ||
248 | +#else | ||
249 | + *(u32*)(M.mem_base + addr) = val; | ||
250 | +#endif | ||
251 | } | ||
252 | |||
253 | /**************************************************************************** | ||
254 | -- | ||
255 | cgit v0.8.3-6-g21f6 | ||
256 | |||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-lite_1.7.99.2.bb b/meta/recipes-graphics/xorg-xserver/xserver-xf86-lite_1.7.99.2.bb new file mode 100644 index 0000000000..5ef23019ad --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-lite_1.7.99.2.bb | |||
@@ -0,0 +1,12 @@ | |||
1 | require xserver-xf86-lite.inc | ||
2 | |||
3 | PR = "r1" | ||
4 | |||
5 | DEPENDS += "font-util" | ||
6 | |||
7 | SRC_URI += "file://nodolt.patch;patch=1 \ | ||
8 | file://crosscompile.patch;patch=1" | ||
9 | |||
10 | # Misc build failure for master HEAD | ||
11 | SRC_URI += "file://fix_open_max_preprocessor_error.patch;patch=1 \ | ||
12 | file://revert_make_sys_c_use_unaligned_access_functions.patch;patch=1" | ||
diff --git a/meta/recipes-graphics/xtscal/xtscal/30xTs_Calibrate.sh b/meta/recipes-graphics/xtscal/xtscal/30xTs_Calibrate.sh new file mode 100644 index 0000000000..ee55784548 --- /dev/null +++ b/meta/recipes-graphics/xtscal/xtscal/30xTs_Calibrate.sh | |||
@@ -0,0 +1,10 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | . /etc/formfactor/config | ||
4 | |||
5 | if [ "$HAVE_TOUCHSCREEN" = "1" ]; then | ||
6 | while [ ! -z $TSLIB_TSDEVICE ] && [ ! -f /etc/pointercal ] | ||
7 | do | ||
8 | /usr/bin/xtscal | ||
9 | done | ||
10 | fi | ||
diff --git a/meta/recipes-graphics/xtscal/xtscal/change-cross.patch b/meta/recipes-graphics/xtscal/xtscal/change-cross.patch new file mode 100644 index 0000000000..3ecd36bb5e --- /dev/null +++ b/meta/recipes-graphics/xtscal/xtscal/change-cross.patch | |||
@@ -0,0 +1,16 @@ | |||
1 | --- tmp/main.c.orig 2007-01-02 15:39:54.000000000 +0000 | ||
2 | +++ tmp/main.c 2007-01-02 15:39:54.000000000 +0000 | ||
3 | @@ -131,9 +131,10 @@ | ||
4 | { | ||
5 | XRenderFillRectangles (dpy, PictOpSrc, pict, &rect_color, rectangles, 2); | ||
6 | |||
7 | - XFillArc (dpy, crosshair_w, crosshair_gc, (CROSSHAIR_SIZE / 2) - (WIDTH / 2) - 1, | ||
8 | - (CROSSHAIR_SIZE / 2) - (WIDTH / 2) - 1, | ||
9 | - WIDTH + 1, WIDTH + 1, 0, 360 * 64); | ||
10 | + XFillRectangle (dpy, crosshair_w, crosshair_gc, | ||
11 | + (CROSSHAIR_SIZE / 2) - (WIDTH / 2), | ||
12 | + (CROSSHAIR_SIZE / 2) - (WIDTH / 2), | ||
13 | + WIDTH, WIDTH); | ||
14 | } | ||
15 | |||
16 | void | ||
diff --git a/meta/recipes-graphics/xtscal/xtscal/cleanup.patch b/meta/recipes-graphics/xtscal/xtscal/cleanup.patch new file mode 100644 index 0000000000..ce674edef6 --- /dev/null +++ b/meta/recipes-graphics/xtscal/xtscal/cleanup.patch | |||
@@ -0,0 +1,619 @@ | |||
1 | --- | ||
2 | Makefile.am | 9 -- | ||
3 | configure.ac | 3 | ||
4 | gpe-dist.am | 12 --- | ||
5 | h3600_ts.h | 216 ----------------------------------------------------------- | ||
6 | main.c | 210 ++------------------------------------------------------- | ||
7 | xtscal.in | 19 ----- | ||
8 | 6 files changed, 14 insertions(+), 455 deletions(-) | ||
9 | |||
10 | Index: xtscal-0.6.3/xtscal.in | ||
11 | =================================================================== | ||
12 | --- xtscal-0.6.3.orig/xtscal.in 2004-09-10 20:10:36.000000000 +0100 | ||
13 | +++ /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
14 | @@ -1,19 +0,0 @@ | ||
15 | -#!/bin/sh | ||
16 | - | ||
17 | -module_id() { | ||
18 | - # Get model name | ||
19 | - echo `grep "^Hardware" /proc/cpuinfo | sed -e "s/.*: *//" | tr a-z A-Z` | ||
20 | -} | ||
21 | - | ||
22 | -case `module_id` in | ||
23 | - "HP IPAQ H3100" | "HP IPAQ H3800" ) | ||
24 | - ARGS="-rotate 90" ;; | ||
25 | - "HP IPAQ H3600" | "HP IPAQ H3700" | "HP IPAQ H3900" | *COLLIE | *POODLE) | ||
26 | - ARGS="-rotate 270" ;; | ||
27 | - # H2200: works without rotation | ||
28 | -esac | ||
29 | - | ||
30 | -# the things we do for autoconf | ||
31 | -prefix=@prefix@ | ||
32 | -exec_prefix=@exec_prefix@ | ||
33 | -exec @libexecdir@/xtscal.bin $ARGS $* | ||
34 | Index: xtscal-0.6.3/main.c | ||
35 | =================================================================== | ||
36 | --- xtscal-0.6.3.orig/main.c 2007-07-01 01:12:52.000000000 +0100 | ||
37 | +++ xtscal-0.6.3/main.c 2007-07-01 01:12:55.000000000 +0100 | ||
38 | @@ -22,12 +22,10 @@ | ||
39 | #include <X11/Xlib.h> | ||
40 | |||
41 | #include <X11/extensions/Xrender.h> | ||
42 | -#include <X11/extensions/Xrandr.h> | ||
43 | #include <X11/Xft/Xft.h> | ||
44 | #include <X11/extensions/xcalibrate.h> | ||
45 | #include <X11/keysym.h> | ||
46 | |||
47 | -#include "h3600_ts.h" | ||
48 | #include "calibrate.h" | ||
49 | |||
50 | Display *dpy; | ||
51 | @@ -45,15 +43,11 @@ XftColor xftcol; | ||
52 | XftDraw *xftdraw; | ||
53 | XftFont *xftfont; | ||
54 | int screen_x, screen_y; | ||
55 | -int ts_fd; | ||
56 | int samples; | ||
57 | Pixmap bg_pixmap; | ||
58 | int flag_debug; | ||
59 | -int rotation = 0; | ||
60 | int error_base, event_base; | ||
61 | |||
62 | -int using_xcalibrate; | ||
63 | - | ||
64 | int moving; | ||
65 | |||
66 | #define CROSSHAIR_SIZE 25 | ||
67 | @@ -63,7 +57,6 @@ int moving; | ||
68 | #define ENOUGH 5 | ||
69 | #define MAX_SAMPLES 40 | ||
70 | |||
71 | -#define RAW_DEVICE "/dev/h3600_tsraw" | ||
72 | #define FONTNAME "sans-10" | ||
73 | |||
74 | struct point | ||
75 | @@ -287,12 +280,8 @@ sort_by_y (const void* a, const void *b) | ||
76 | void | ||
77 | set_calibration (calibration *cal) | ||
78 | { | ||
79 | - TS_CAL tc; | ||
80 | - int xtrans, ytrans, xscale, yscale, xyscale, yxscale; | ||
81 | calibration ocal = *cal; | ||
82 | |||
83 | - if (using_xcalibrate) | ||
84 | - { | ||
85 | FILE *fp; | ||
86 | if (flag_debug) | ||
87 | printf ("constants are: %d %d %d %d %d %d %d\n", cal->a[1], cal->a[2], cal->a[0], cal->a[4], cal->a[5], cal->a[3], cal->a[6]); | ||
88 | @@ -304,29 +293,6 @@ set_calibration (calibration *cal) | ||
89 | } | ||
90 | fprintf (fp, "%d %d %d %d %d %d %d\n", cal->a[1], cal->a[2], cal->a[0], cal->a[4], cal->a[5], cal->a[3], cal->a[6]); | ||
91 | fclose (fp); | ||
92 | - return; | ||
93 | - } | ||
94 | - | ||
95 | - xtrans = cal->a[0] / cal->a[6]; | ||
96 | - ytrans = cal->a[3] / cal->a[6]; | ||
97 | - xscale = cal->a[1] * 256 / cal->a[6]; | ||
98 | - yscale = cal->a[5] * 256 / cal->a[6]; | ||
99 | - xyscale = cal->a[2] * 256 / cal->a[6]; | ||
100 | - yxscale = cal->a[4] * 256 / cal->a[6]; | ||
101 | - | ||
102 | - tc.xtrans = xtrans; | ||
103 | - tc.ytrans = ytrans; | ||
104 | - tc.xscale = xscale; | ||
105 | - tc.yscale = yscale; | ||
106 | - tc.xyswap = 0; | ||
107 | - | ||
108 | - printf ("%d %d %d %d %d\n", tc.xscale, tc.xtrans, tc.yscale, tc.ytrans, tc.xyswap); | ||
109 | - | ||
110 | - if (ioctl (ts_fd, TS_SET_CAL, (void *)&tc) != 0) | ||
111 | - { | ||
112 | - perror ("TS_SET_CAL"); | ||
113 | - exit (1); | ||
114 | - } | ||
115 | } | ||
116 | |||
117 | void | ||
118 | @@ -398,80 +364,13 @@ handle_ts_event (int x, int y, int press | ||
119 | } | ||
120 | |||
121 | void | ||
122 | -read_ts (void) | ||
123 | -{ | ||
124 | - TS_EVENT ts_ev; | ||
125 | - int r; | ||
126 | - | ||
127 | - r = read (ts_fd, &ts_ev, sizeof (ts_ev)); | ||
128 | - if (r == sizeof (ts_ev)) | ||
129 | - handle_ts_event (ts_ev.x, ts_ev.y, ts_ev.pressure); | ||
130 | -} | ||
131 | - | ||
132 | -void | ||
133 | -do_cal (char **args) | ||
134 | -{ | ||
135 | - TS_CAL tc; | ||
136 | - | ||
137 | - tc.xscale = atoi (args[0]); | ||
138 | - tc.xtrans = atoi (args[1]); | ||
139 | - tc.yscale = atoi (args[2]); | ||
140 | - tc.ytrans = atoi (args[3]); | ||
141 | - tc.xyswap = atoi (args[4]); | ||
142 | - | ||
143 | - if (flag_debug) | ||
144 | - fprintf (stderr, "setting: %d %d %d %d %d\n", | ||
145 | - tc.xtrans, tc.ytrans, tc.xscale, tc.yscale, tc.xyswap); | ||
146 | - | ||
147 | - if (ioctl (ts_fd, TS_SET_CAL, (void *)&tc) != 0) | ||
148 | - { | ||
149 | - perror ("TS_SET_CAL"); | ||
150 | - exit (1); | ||
151 | - } | ||
152 | - | ||
153 | - exit (0); | ||
154 | -} | ||
155 | - | ||
156 | -void | ||
157 | -show_cal (void) | ||
158 | -{ | ||
159 | - TS_CAL tc; | ||
160 | - | ||
161 | - if (ioctl (ts_fd, TS_GET_CAL, (void *)&tc) != 0) | ||
162 | - { | ||
163 | - perror ("TS_GET_CAL"); | ||
164 | - exit (1); | ||
165 | - } | ||
166 | - | ||
167 | - printf ("%d %d %d %d %d\n", tc.xscale, tc.xtrans, tc.yscale, tc.ytrans, tc.xyswap); | ||
168 | -} | ||
169 | - | ||
170 | -void | ||
171 | usage (const char *name) | ||
172 | { | ||
173 | - fprintf (stderr, "usage: %s -view\n", name); | ||
174 | - fprintf (stderr, " %s [-rotate <0 | 90 | 180 | 270>]\n", name); | ||
175 | - fprintf (stderr, " %s -cal <xs> <xt> <ys> <yt> <xyswap>\n", name); | ||
176 | - | ||
177 | + fprintf (stderr, "usage: %s [-debug]\n", name); | ||
178 | exit (1); | ||
179 | } | ||
180 | |||
181 | int | ||
182 | -xrr_supported (void) | ||
183 | -{ | ||
184 | - int xrr_event_base, xrr_error_base; | ||
185 | - int xrr_major, xrr_minor; | ||
186 | - | ||
187 | - if (XRRQueryExtension (dpy, &xrr_event_base, &xrr_error_base) == False | ||
188 | - || XRRQueryVersion (dpy, &xrr_major, &xrr_minor) == 0 | ||
189 | - || xrr_major != 1 | ||
190 | - || xrr_minor < 1) | ||
191 | - return 0; | ||
192 | - | ||
193 | - return 1; | ||
194 | -} | ||
195 | - | ||
196 | -int | ||
197 | main (int argc, char *argv[]) | ||
198 | { | ||
199 | XSetWindowAttributes attributes; | ||
200 | @@ -480,31 +379,11 @@ main (int argc, char *argv[]) | ||
201 | int max_fd; | ||
202 | GC bg_gc; | ||
203 | int i; | ||
204 | - int have_xrandr; | ||
205 | |||
206 | for (i = 1; i < argc; i++) | ||
207 | { | ||
208 | - if (!strcmp (argv[i], "-view")) | ||
209 | - { | ||
210 | - show_cal (); | ||
211 | - exit (0); | ||
212 | - } | ||
213 | - else if (!strcmp (argv[i], "-debug")) | ||
214 | + if (!strcmp (argv[i], "-debug")) | ||
215 | flag_debug = 1; | ||
216 | - else if (!strcmp (argv[i], "-cal")) | ||
217 | - { | ||
218 | - if (argc > (i + 5)) | ||
219 | - do_cal (argv + i + 1); | ||
220 | - else | ||
221 | - usage (argv[0]); | ||
222 | - } | ||
223 | - else if (!strcmp (argv[i], "-rotate")) | ||
224 | - { | ||
225 | - if (argc > (i + 1)) | ||
226 | - rotation = atoi (argv[++i]); | ||
227 | - else | ||
228 | - usage (argv[0]); | ||
229 | - } | ||
230 | else | ||
231 | usage (argv[0]); | ||
232 | } | ||
233 | @@ -531,48 +410,11 @@ main (int argc, char *argv[]) | ||
234 | fprintf (stderr, "failed to set raw mode: error %d\n", r); | ||
235 | exit (1); | ||
236 | } | ||
237 | - | ||
238 | - using_xcalibrate = 1; | ||
239 | - } | ||
240 | - | ||
241 | - have_xrandr = xrr_supported (); | ||
242 | - if (have_xrandr) | ||
243 | - { | ||
244 | - XRRScreenConfiguration *rr_screen; | ||
245 | - Rotation current_rotation; | ||
246 | - | ||
247 | - if (flag_debug) | ||
248 | - fprintf (stderr, "XRANDR is supported\n"); | ||
249 | - | ||
250 | - rr_screen = XRRGetScreenInfo (dpy, RootWindow (dpy, screen)); | ||
251 | - | ||
252 | - XRRRotations (dpy, screen, ¤t_rotation); | ||
253 | - | ||
254 | - XRRFreeScreenConfigInfo (rr_screen); | ||
255 | - | ||
256 | - if (flag_debug) | ||
257 | - fprintf (stderr, "Current RANDR rotation is %d\n", current_rotation); | ||
258 | - | ||
259 | - switch (current_rotation) | ||
260 | - { | ||
261 | - case RR_Rotate_270: | ||
262 | - rotation += 90; | ||
263 | - case RR_Rotate_180: | ||
264 | - rotation += 90; | ||
265 | - case RR_Rotate_90: | ||
266 | - rotation += 90; | ||
267 | - rotation %= 360; | ||
268 | - case RR_Rotate_0: | ||
269 | - break; | ||
270 | - default: | ||
271 | - fprintf (stderr, "Unknown RANDR rotation: %d\n", current_rotation); | ||
272 | - break; | ||
273 | - } | ||
274 | } | ||
275 | else | ||
276 | { | ||
277 | - if (flag_debug) | ||
278 | - fprintf (stderr, "XRANDR not supported\n"); | ||
279 | + perror ("XCALIBRATE extension missing"); | ||
280 | + exit (1); | ||
281 | } | ||
282 | |||
283 | attributes.override_redirect = flag_debug ? False : True; | ||
284 | @@ -666,45 +508,17 @@ main (int argc, char *argv[]) | ||
285 | |||
286 | for (i = 0; i < NR_POINTS; i++) | ||
287 | { | ||
288 | - switch (rotation) | ||
289 | - { | ||
290 | - case 0: | ||
291 | - cal.xfb[i] = cal.xscr[i]; | ||
292 | - cal.yfb[i] = cal.yscr[i]; | ||
293 | - break; | ||
294 | - case 90: | ||
295 | - cal.xfb[i] = cal.yscr[i]; | ||
296 | - cal.yfb[i] = screen_x - cal.xscr[i]; | ||
297 | - break; | ||
298 | - case 180: | ||
299 | - cal.xfb[i] = screen_x - cal.xscr[i]; | ||
300 | - cal.yfb[i] = screen_y - cal.yscr[i]; | ||
301 | - break; | ||
302 | - case 270: | ||
303 | - cal.xfb[i] = screen_y - cal.yscr[i]; | ||
304 | - cal.yfb[i] = cal.xscr[i]; | ||
305 | - break; | ||
306 | - } | ||
307 | + cal.xfb[i] = cal.xscr[i]; | ||
308 | + cal.yfb[i] = cal.yscr[i]; | ||
309 | + XCalibrateScreenToCoord (dpy, &cal.xfb[i], &cal.yfb[i]); | ||
310 | |||
311 | if (flag_debug) | ||
312 | - printf ("rotation %d: (%d,%d) -> (%d,%d)\n", rotation, | ||
313 | + printf ("rotation conversion: (%d,%d) -> (%d,%d)\n", | ||
314 | cal.xscr[i], cal.yscr[i], cal.xfb[i], cal.yfb[i]); | ||
315 | } | ||
316 | |||
317 | next_event (); | ||
318 | |||
319 | - if (!using_xcalibrate) | ||
320 | - { | ||
321 | - ts_fd = open (RAW_DEVICE, O_RDONLY); | ||
322 | - if (ts_fd < 0) | ||
323 | - { | ||
324 | - perror (RAW_DEVICE); | ||
325 | - exit (1); | ||
326 | - } | ||
327 | - } | ||
328 | - | ||
329 | - max_fd = (xfd > ts_fd) ? xfd : ts_fd; | ||
330 | - | ||
331 | for (;;) | ||
332 | { | ||
333 | fd_set fds; | ||
334 | @@ -713,12 +527,8 @@ main (int argc, char *argv[]) | ||
335 | |||
336 | FD_ZERO (&fds); | ||
337 | FD_SET (xfd, &fds); | ||
338 | - if (ts_fd != -1) | ||
339 | - FD_SET (ts_fd, &fds); | ||
340 | |||
341 | - select (max_fd + 1, &fds, NULL, NULL, NULL); | ||
342 | - | ||
343 | - if (ts_fd != -1 && FD_ISSET (ts_fd, &fds)) | ||
344 | - read_ts (); | ||
345 | + select (xfd + 1, &fds, NULL, NULL, NULL); | ||
346 | } | ||
347 | } | ||
348 | + | ||
349 | Index: xtscal-0.6.3/configure.ac | ||
350 | =================================================================== | ||
351 | --- xtscal-0.6.3.orig/configure.ac 2004-09-10 20:11:12.000000000 +0100 | ||
352 | +++ xtscal-0.6.3/configure.ac 2007-07-01 01:12:55.000000000 +0100 | ||
353 | @@ -9,8 +9,7 @@ AM_INIT_AUTOMAKE([foreign dist-bzip2]) | ||
354 | # Checks for programs. | ||
355 | AC_PROG_CC | ||
356 | |||
357 | -PKG_CHECK_MODULES(XTSCAL, x11 xft xext xrandr xcalibrate) | ||
358 | +PKG_CHECK_MODULES(XTSCAL, x11 xft xext xcalibrate) | ||
359 | |||
360 | AC_CONFIG_FILES([Makefile]) | ||
361 | -AC_CONFIG_FILES([xtscal]) | ||
362 | AC_OUTPUT | ||
363 | Index: xtscal-0.6.3/gpe-dist.am | ||
364 | =================================================================== | ||
365 | --- xtscal-0.6.3.orig/gpe-dist.am 2004-06-02 23:07:13.000000000 +0100 | ||
366 | +++ /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
367 | @@ -1,12 +0,0 @@ | ||
368 | -CVSTAG := $(shell echo $(PACKAGE)-$(VERSION) | tr [a-z.] [A-Z_]) | ||
369 | - | ||
370 | -dist-upload: dist | ||
371 | - scp $(PACKAGE)-$(VERSION).tar.bz2 $(USER)@handhelds.org:/home/ftp/pub/projects/gpe/source/ | ||
372 | - | ||
373 | -tag: | ||
374 | - cvs tag $(CVSTAG) | ||
375 | - | ||
376 | -retag: | ||
377 | - cvs tag -F $(CVSTAG) | ||
378 | - | ||
379 | -source: tag dist-upload | ||
380 | Index: xtscal-0.6.3/h3600_ts.h | ||
381 | =================================================================== | ||
382 | --- xtscal-0.6.3.orig/h3600_ts.h 2003-07-05 17:27:10.000000000 +0100 | ||
383 | +++ /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
384 | @@ -1,216 +0,0 @@ | ||
385 | -/* | ||
386 | -* | ||
387 | -* Driver for the H3600 Touch Screen and other Atmel controlled devices. | ||
388 | -* | ||
389 | -* Copyright 2000 Compaq Computer Corporation. | ||
390 | -* | ||
391 | -* Use consistent with the GNU GPL is permitted, | ||
392 | -* provided that this copyright notice is | ||
393 | -* preserved in its entirety in all copies and derived works. | ||
394 | -* | ||
395 | -* COMPAQ COMPUTER CORPORATION MAKES NO WARRANTIES, EXPRESSED OR IMPLIED, | ||
396 | -* AS TO THE USEFULNESS OR CORRECTNESS OF THIS CODE OR ITS | ||
397 | -* FITNESS FOR ANY PARTICULAR PURPOSE. | ||
398 | -* | ||
399 | -* Author: Charles Flynn. | ||
400 | -* | ||
401 | -*/ | ||
402 | - | ||
403 | - | ||
404 | -#ifndef __H3600_TS_H__ | ||
405 | -#define __H3600_TS_H__ | ||
406 | - | ||
407 | -#include <linux/ioctl.h> | ||
408 | - | ||
409 | -enum h3600_ts_minor_devices { | ||
410 | - TS_MINOR = 0, | ||
411 | - TSRAW_MINOR = 1, | ||
412 | - KEY_MINOR = 2 | ||
413 | -}; | ||
414 | - | ||
415 | -typedef struct h3600_ts_calibration { | ||
416 | - int xscale; | ||
417 | - int xtrans; | ||
418 | - int yscale; | ||
419 | - int ytrans; | ||
420 | - int xyswap; | ||
421 | -} TS_CAL; | ||
422 | - | ||
423 | -typedef struct h3600_ts_event { | ||
424 | - unsigned short pressure; | ||
425 | - unsigned short x; | ||
426 | - unsigned short y; | ||
427 | - unsigned short pad; | ||
428 | -} TS_EVENT; | ||
429 | - | ||
430 | -/* Deprecated - do not use */ | ||
431 | -typedef struct h3600_ts_return { | ||
432 | - unsigned short pressure; | ||
433 | - unsigned short x; | ||
434 | - unsigned short y; | ||
435 | - unsigned short pad; | ||
436 | -} TS_RET; | ||
437 | - | ||
438 | -enum power_button_mode { | ||
439 | - PBM_SUSPEND = 0, | ||
440 | - PBM_GENERATE_KEYPRESS = 1 | ||
441 | -}; | ||
442 | - | ||
443 | - | ||
444 | -/* ++++++++++++++ +++++++++++++++++++++++++++++++++++++ */ | ||
445 | - | ||
446 | -typedef struct therm_dev { | ||
447 | - short data; | ||
448 | -} THERM_DEV; | ||
449 | - | ||
450 | -#define H3600_BATT_CHEM_ALKALINE 0x01 | ||
451 | -#define H3600_BATT_CHEM_NICD 0x02 | ||
452 | -#define H3600_BATT_CHEM_NIMH 0x03 | ||
453 | -#define H3600_BATT_CHEM_LION 0x04 | ||
454 | -#define H3600_BATT_CHEM_LIPOLY 0x05 | ||
455 | -#define H3600_BATT_CHEM_NOT_INSTALLED 0x06 | ||
456 | -#define H3600_BATT_CHEM_UNKNOWN 0xff | ||
457 | - | ||
458 | -/* These should match the apm_bios.h definitions */ | ||
459 | -#define H3600_AC_STATUS_AC_OFFLINE 0x00 | ||
460 | -#define H3600_AC_STATUS_AC_ONLINE 0x01 | ||
461 | -#define H3600_AC_STATUS_AC_BACKUP 0x02 /* What does this mean? */ | ||
462 | -#define H3600_AC_STATUS_AC_UNKNOWN 0xff | ||
463 | - | ||
464 | -/* These bitfields are rarely "or'd" together */ | ||
465 | -#define H3600_BATT_STATUS_HIGH 0x01 | ||
466 | -#define H3600_BATT_STATUS_LOW 0x02 | ||
467 | -#define H3600_BATT_STATUS_CRITICAL 0x04 | ||
468 | -#define H3600_BATT_STATUS_CHARGING 0x08 | ||
469 | -#define H3600_BATT_STATUS_CHARGE_MAIN 0x10 | ||
470 | -#define H3600_BATT_STATUS_DEAD 0x20 /* Battery will not charge */ | ||
471 | -#define H3600_BATT_NOT_INSTALLED 0x20 /* For expansion pack batteries */ | ||
472 | -#define H3600_BATT_STATUS_FULL 0x40 /* Battery fully charged (and connected to AC) */ | ||
473 | -#define H3600_BATT_STATUS_NOBATT 0x80 | ||
474 | -#define H3600_BATT_STATUS_UNKNOWN 0xff | ||
475 | - | ||
476 | -struct battery_data { | ||
477 | - unsigned char chemistry; | ||
478 | - unsigned char status; | ||
479 | - unsigned short voltage; /* Voltage for battery #0; unknown for battery #1 */ | ||
480 | - unsigned short percentage; /* Percentage of full charge */ | ||
481 | - unsigned short life; /* Life remaining in minutes */ | ||
482 | -}; | ||
483 | - | ||
484 | -struct h3600_battery { | ||
485 | - unsigned char ac_status; | ||
486 | - unsigned char battery_count; /* How many batteries we have */ | ||
487 | - struct battery_data battery[2]; | ||
488 | -}; | ||
489 | - | ||
490 | -/* -------- EEPROM and SPI Interfaces ---------------*/ | ||
491 | - | ||
492 | -#define EEPROM_RD_BUFSIZ 6 /* EEPROM reads are 16 bits */ | ||
493 | -#define EEPROM_WR_BUFSIZ 5 /* Allow room for 8bit 'addr' field in buffer*/ | ||
494 | -#define SPI_RD_BUFSIZ 16 /* SPI reads are 8 bits */ | ||
495 | -#define SPI_WR_BUFSIZ 7 | ||
496 | - | ||
497 | -/* The EEPROM is where internal programs are stored on the Amtel. | ||
498 | - You probably don't want to read or write these values */ | ||
499 | - | ||
500 | -typedef struct h3600_eeprom_read_request { | ||
501 | - unsigned char addr; /* 8bit Address Offset 0-255 */ | ||
502 | - unsigned char len; /* Number of 16bit words to read 0-128 */ | ||
503 | - unsigned short buff[EEPROM_RD_BUFSIZ]; | ||
504 | -} EEPROM_READ; | ||
505 | - | ||
506 | -typedef struct h3600_eeprom_write_request { | ||
507 | - unsigned char len; /* used only to compute the number of bytes to send */ | ||
508 | - unsigned char addr; /* 0-128 */ | ||
509 | - unsigned short buff[EEPROM_WR_BUFSIZ]; | ||
510 | -} EEPROM_WRITE; | ||
511 | - | ||
512 | -/* The SPI bus connects to EEPROMs located on sleeves plugged into | ||
513 | - the iPAQ. You may want to read these values */ | ||
514 | - | ||
515 | -typedef struct h3600_spi_read_request { | ||
516 | - unsigned short addr; /* 16bit Address Offset 0-128 */ | ||
517 | - unsigned char len; /* Number of bytes to read */ | ||
518 | - unsigned char buff[SPI_RD_BUFSIZ]; | ||
519 | -} SPI_READ; | ||
520 | - | ||
521 | -#define SPI_READ_STATUS_BYTE 0xffff /* Use this address to read the status byte */ | ||
522 | - | ||
523 | -typedef struct h3600_spi_write_request { | ||
524 | - unsigned short len; /* used only to compute the number of bytes to send */ | ||
525 | - unsigned short addr; /* this 16bit address accesses a single byte */ | ||
526 | - unsigned char buff[SPI_WR_BUFSIZ]; | ||
527 | -} SPI_WRITE; | ||
528 | - | ||
529 | - | ||
530 | -/* -------- end of EEPROM and SPI Interfaces ---------------*/ | ||
531 | - | ||
532 | -/* User space structures for IOCTL calls */ | ||
533 | - | ||
534 | -typedef struct h3600_ts_version { | ||
535 | - unsigned char host_version[8]; /* ascii "x.yy" */ | ||
536 | - unsigned char pack_version[8]; /* ascii "x.yy" */ | ||
537 | - unsigned char boot_type; /* TODO ?? */ | ||
538 | -} VER_RET; | ||
539 | - | ||
540 | -typedef struct h3600_ts_led { | ||
541 | - unsigned char OffOnBlink; /* 0=off 1=on 2=Blink */ | ||
542 | - unsigned char TotalTime; /* Units of 5 seconds */ | ||
543 | - unsigned char OnTime; /* units of 100m/s */ | ||
544 | - unsigned char OffTime; /* units of 100m/s */ | ||
545 | -} LED_IN; | ||
546 | - | ||
547 | -enum flite_mode { | ||
548 | - FLITE_MODE1 = 1, | ||
549 | - FLITE_AUTO_MODE = 1, /* for reference only */ | ||
550 | - FLITE_MANUAL_MODE = 2, /* Use this normally? */ | ||
551 | - FLITE_GET_LIGHT_SENSOR = 3 /* Returns light reading in "brightness" field */ | ||
552 | -}; | ||
553 | -enum flite_pwr { | ||
554 | - FLITE_PWR_OFF = 0, | ||
555 | - FLITE_PWR_ON = 1 | ||
556 | -}; | ||
557 | - | ||
558 | -typedef struct h3600_ts_flite { | ||
559 | - unsigned char mode; | ||
560 | - unsigned char pwr; | ||
561 | - unsigned char brightness; | ||
562 | -} FLITE_IN; | ||
563 | - | ||
564 | -/*************************** Updated "universal" structures *******************/ | ||
565 | - | ||
566 | -/* Sets backlight for both H3100 and H3600 models - technically "frontlight" for H3600 */ | ||
567 | -struct h3600_ts_backlight { | ||
568 | - enum flite_pwr power; /* 0 = off, 1 = on */ | ||
569 | - unsigned char brightness; /* 0 - 255 */ | ||
570 | -}; | ||
571 | - | ||
572 | -struct h3600_ts_contrast { /* Only useful on H3100 model */ | ||
573 | - unsigned char contrast; /* 0 - 255 */ | ||
574 | -}; | ||
575 | - | ||
576 | -/* IOCTL cmds user or kernel space */ | ||
577 | - | ||
578 | -/* Use 'f' as magic number */ | ||
579 | -#define IOC_H3600_TS_MAGIC 'f' | ||
580 | - | ||
581 | -/* TODO: Some of these IOWR values are just plain wrong */ | ||
582 | -#define GET_VERSION _IOR(IOC_H3600_TS_MAGIC, 1, struct h3600_ts_version ) | ||
583 | -#define READ_EEPROM _IOWR(IOC_H3600_TS_MAGIC, 2, struct h3600_eeprom_read_request) | ||
584 | -#define WRITE_EEPROM _IOWR(IOC_H3600_TS_MAGIC, 3, struct h3600_eeprom_write_request) | ||
585 | -#define GET_THERMAL _IOR(IOC_H3600_TS_MAGIC, 4, struct therm_dev) | ||
586 | -#define LED_ON _IOW(IOC_H3600_TS_MAGIC, 5, struct h3600_ts_led) | ||
587 | -#define GET_BATTERY_STATUS _IOR(IOC_H3600_TS_MAGIC, 6, struct h3600_battery) | ||
588 | -#define FLITE_ON _IOW(IOC_H3600_TS_MAGIC, 7, struct h3600_ts_flite) | ||
589 | -#define READ_SPI _IOWR(IOC_H3600_TS_MAGIC, 8, struct h3600_spi_read_request) | ||
590 | -#define WRITE_SPI _IOWR(IOC_H3600_TS_MAGIC, 9, struct h3600_spi_write_request) | ||
591 | -#define TS_GET_CAL _IOR(IOC_H3600_TS_MAGIC, 10, struct h3600_ts_calibration) | ||
592 | -#define TS_SET_CAL _IOW(IOC_H3600_TS_MAGIC, 11, struct h3600_ts_calibration) | ||
593 | - | ||
594 | -/* New IOCTL interfaces - defined to be more user friendly */ | ||
595 | -#define TS_GET_BACKLIGHT _IOR(IOC_H3600_TS_MAGIC, 20, struct h3600_ts_backlight) | ||
596 | -#define TS_SET_BACKLIGHT _IOW(IOC_H3600_TS_MAGIC, 20, struct h3600_ts_backlight) | ||
597 | -#define TS_GET_CONTRAST _IOR(IOC_H3600_TS_MAGIC, 21, struct h3600_ts_contrast) | ||
598 | -#define TS_SET_CONTRAST _IOW(IOC_H3600_TS_MAGIC, 21, struct h3600_ts_contrast) | ||
599 | - | ||
600 | -#endif | ||
601 | Index: xtscal-0.6.3/Makefile.am | ||
602 | =================================================================== | ||
603 | --- xtscal-0.6.3.orig/Makefile.am 2004-06-02 23:07:13.000000000 +0100 | ||
604 | +++ xtscal-0.6.3/Makefile.am 2007-07-02 12:51:02.000000000 +0100 | ||
605 | @@ -1,11 +1,8 @@ | ||
606 | -libexec_PROGRAMS = xtscal.bin | ||
607 | -bin_SCRIPTS = xtscal | ||
608 | +bin_PROGRAMS = xtscal | ||
609 | |||
610 | -xtscal_bin_SOURCES = main.c calibrate.c calibrate.h h3600_ts.h | ||
611 | +xtscal_SOURCES = main.c calibrate.c calibrate.h | ||
612 | |||
613 | -xtscal_bin_LDADD = @XTSCAL_LIBS@ | ||
614 | +xtscal_LDADD = @XTSCAL_LIBS@ | ||
615 | |||
616 | INCLUDES = @XTSCAL_CFLAGS@ -DNR_POINTS=5 | ||
617 | |||
618 | -include gpe-dist.am | ||
619 | - | ||
diff --git a/meta/recipes-graphics/xtscal/xtscal_0.6.3.bb b/meta/recipes-graphics/xtscal/xtscal_0.6.3.bb new file mode 100644 index 0000000000..565393d062 --- /dev/null +++ b/meta/recipes-graphics/xtscal/xtscal_0.6.3.bb | |||
@@ -0,0 +1,24 @@ | |||
1 | DESCRIPTION = "Touchscreen calibration utility" | ||
2 | HOMEPAGE = "http://gpe.linuxtogo.org" | ||
3 | BUGTRACKER = "http://bugs.linuxtogo.org" | ||
4 | LICENSE = "GPLv2 & GPLv2+" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | ||
6 | file://main.c;endline=10;md5=8721bcb08ae9f24e5fe4c82941873c87" | ||
7 | |||
8 | SECTION = "x11/base" | ||
9 | |||
10 | DEPENDS = "virtual/libx11 libxft libxcalibrate" | ||
11 | |||
12 | PR = "r12" | ||
13 | |||
14 | SRC_URI = "${GPE_MIRROR}/xtscal-${PV}.tar.bz2 \ | ||
15 | file://change-cross.patch;patch=1 \ | ||
16 | file://cleanup.patch;patch=1 \ | ||
17 | file://30xTs_Calibrate.sh" | ||
18 | |||
19 | inherit autotools | ||
20 | |||
21 | do_install_append() { | ||
22 | install -d ${D}${sysconfdir}/X11/Xsession.d/ | ||
23 | install -m 0755 ${WORKDIR}/30xTs_Calibrate.sh ${D}${sysconfdir}/X11/Xsession.d/ | ||
24 | } | ||