diff options
| author | Richard Purdie <richard@openedhand.com> | 2006-06-12 12:47:18 +0000 |
|---|---|---|
| committer | Richard Purdie <richard@openedhand.com> | 2006-06-12 12:47:18 +0000 |
| commit | 8a3e00ff657a8404aa6423dd3167b5611017b361 (patch) | |
| tree | 31252a16e7904a1a7a70e93a5a7adf7e08c5ffff /openembedded | |
| parent | 156c652e216f9ee2ecc41376f6e59cfb5ac4515d (diff) | |
| download | poky-8a3e00ff657a8404aa6423dd3167b5611017b361.tar.gz | |
detect-stylus: Add for now until I teach udev how to do this instead
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@463 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded')
4 files changed, 63 insertions, 0 deletions
diff --git a/openembedded/packages/detect-stylus/detect-stylus-0.13/access.patch b/openembedded/packages/detect-stylus/detect-stylus-0.13/access.patch new file mode 100644 index 0000000000..cd8c52074d --- /dev/null +++ b/openembedded/packages/detect-stylus/detect-stylus-0.13/access.patch | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | Index: detect-stylus.c | ||
| 2 | =================================================================== | ||
| 3 | RCS file: /cvs/gpe/base/detect-stylus/detect-stylus.c,v | ||
| 4 | retrieving revision 1.12 | ||
| 5 | retrieving revision 1.13 | ||
| 6 | diff -u -r1.12 -r1.13 | ||
| 7 | --- detect-stylus.c 8 Sep 2004 15:57:15 -0000 1.12 | ||
| 8 | +++ detect-stylus.c 9 Sep 2004 23:08:42 -0000 1.13 | ||
| 9 | @@ -131,7 +131,7 @@ | ||
| 10 | XChangeProperty (dpy, root, atom, XA_INTEGER, 8, PropModeReplace, &b, 1); | ||
| 11 | |||
| 12 | XCloseDisplay (dpy); | ||
| 13 | - if (!access("/usr/bin/xrdb", X_OK)) | ||
| 14 | + if (access("/usr/bin/xrdb", X_OK)) | ||
| 15 | system ("echo \"Matchbox.cursor: no\nXcursor.theme: fully-transparent\" | /usr/X11R6/bin/xrdb -nocpp -merge"); | ||
| 16 | else | ||
| 17 | system ("echo \"Matchbox.cursor: no\nXcursor.theme: fully-transparent\" | /usr/bin/xrdb -nocpp -merge"); | ||
diff --git a/openembedded/packages/detect-stylus/detect-stylus-0.13/correct-theme-name.patch b/openembedded/packages/detect-stylus/detect-stylus-0.13/correct-theme-name.patch new file mode 100644 index 0000000000..7c8213da1f --- /dev/null +++ b/openembedded/packages/detect-stylus/detect-stylus-0.13/correct-theme-name.patch | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | diff -urNd ../detect-stylus-0.13-r1/detect-stylus-0.13/detect-stylus.c detect-stylus-0.13/detect-stylus.c | ||
| 2 | --- ../detect-stylus-0.13-r1/detect-stylus-0.13/detect-stylus.c 2004-09-08 16:56:58.000000000 +0100 | ||
| 3 | +++ detect-stylus-0.13/detect-stylus.c 2004-09-13 21:36:03.000000000 +0100 | ||
| 4 | @@ -132,9 +132,9 @@ | ||
| 5 | |||
| 6 | XCloseDisplay (dpy); | ||
| 7 | if (access("/usr/bin/xrdb", X_OK)) | ||
| 8 | - system ("echo \"Matchbox.cursor: no\nXcursor.theme: fully-transparent\" | /usr/X11R6/bin/xrdb -nocpp -merge"); | ||
| 9 | + system ("echo \"Matchbox.cursor: no\nXcursor.theme: xcursor-transparent\" | /usr/X11R6/bin/xrdb -nocpp -merge"); | ||
| 10 | else | ||
| 11 | - system ("echo \"Matchbox.cursor: no\nXcursor.theme: fully-transparent\" | /usr/bin/xrdb -nocpp -merge"); | ||
| 12 | + system ("echo \"Matchbox.cursor: no\nXcursor.theme: xcursor-transparent\" | /usr/bin/xrdb -nocpp -merge"); | ||
| 13 | } | ||
| 14 | |||
| 15 | exit (0); | ||
diff --git a/openembedded/packages/detect-stylus/detect-stylus-0.13/extra-device-check.patch b/openembedded/packages/detect-stylus/detect-stylus-0.13/extra-device-check.patch new file mode 100644 index 0000000000..94542b11aa --- /dev/null +++ b/openembedded/packages/detect-stylus/detect-stylus-0.13/extra-device-check.patch | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | diff -urNd ../detect-stylus-0.13-r1/detect-stylus-0.13/detect-stylus.c detect-stylus-0.13/detect-stylus.c | ||
| 2 | --- ../detect-stylus-0.13-r1/detect-stylus-0.13/detect-stylus.c 2004-09-08 16:56:58.000000000 +0100 | ||
| 3 | +++ detect-stylus-0.13/detect-stylus.c 2004-09-18 23:43:12.000000000 +0100 | ||
| 4 | @@ -62,6 +62,9 @@ | ||
| 5 | if (fd < 0) | ||
| 6 | fd = try_open ("/dev/touchscreen/ucb1x00"); | ||
| 7 | |||
| 8 | + if (fd < 0) | ||
| 9 | + fd = try_open ("/dev/ts"); | ||
| 10 | + | ||
| 11 | if (fd < 0) | ||
| 12 | { | ||
| 13 | DIR *d; | ||
diff --git a/openembedded/packages/detect-stylus/detect-stylus_0.13.bb b/openembedded/packages/detect-stylus/detect-stylus_0.13.bb new file mode 100644 index 0000000000..793cbef849 --- /dev/null +++ b/openembedded/packages/detect-stylus/detect-stylus_0.13.bb | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | inherit gpe pkgconfig | ||
| 2 | LICENSE = "GPL" | ||
| 3 | |||
| 4 | PR = "r2" | ||
| 5 | |||
| 6 | DEPENDS = "libx11 xcursor-transparent-theme xrdb" | ||
| 7 | SECTION = "gpe" | ||
| 8 | RDEPENDS = "xrdb" | ||
| 9 | |||
| 10 | DESCRIPTION = "Touchscreen detection utility" | ||
| 11 | MAINTAINER = "Florian Boor <florian.boor@kernelconcepts.de>" | ||
| 12 | |||
| 13 | SRC_URI = "${GPE_MIRROR}/${PN}-${PV}.tar.gz \ | ||
| 14 | file://access.patch;patch=1;pnum=0 \ | ||
| 15 | file://extra-device-check.patch;patch=1 \ | ||
| 16 | file://correct-theme-name.patch;patch=1" | ||
| 17 | |||
| 18 | export CVSBUILD="no" | ||
