summaryrefslogtreecommitdiff
path: root/recipes
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2010-06-02 09:19:37 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2010-06-02 09:56:18 +0200
commitfb641200b65b3d3c465332efb1febab7001eff47 (patch)
treef5126a28b62f2189553c1e490b94e9f49a0511d4 /recipes
parente676ecc9ec8744eebcdc654dedc4200c7285c170 (diff)
xinput-calibrator: add INC_PR, move machine specific file to separate recipe
* sorry for making whole xinput-calibrator machine specific before, this way it should be better for upgrades (as proved by normal pointercal for tslib) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes')
-rw-r--r--recipes/xinput-calibrator/pointercal-xinput/om-gta01/pointercal.xinput (renamed from recipes/xinput-calibrator/files/om-gta02/pointercal.xinput)0
-rw-r--r--recipes/xinput-calibrator/pointercal-xinput/om-gta02/pointercal.xinput2
-rw-r--r--recipes/xinput-calibrator/pointercal-xinput/pointercal.xinput (renamed from recipes/xinput-calibrator/files/pointercal.xinput)0
-rw-r--r--recipes/xinput-calibrator/pointercal-xinput_0.0.bb18
-rw-r--r--recipes/xinput-calibrator/xinput-calibrator.inc3
-rw-r--r--recipes/xinput-calibrator/xinput-calibrator_0.5.0.bb2
-rw-r--r--recipes/xinput-calibrator/xinput-calibrator_0.6.0.bb2
-rw-r--r--recipes/xinput-calibrator/xinput-calibrator_0.6.1.bb10
-rw-r--r--recipes/xinput-calibrator/xinput-calibrator_git.bb1
9 files changed, 27 insertions, 11 deletions
diff --git a/recipes/xinput-calibrator/files/om-gta02/pointercal.xinput b/recipes/xinput-calibrator/pointercal-xinput/om-gta01/pointercal.xinput
index be25da3529..be25da3529 100644
--- a/recipes/xinput-calibrator/files/om-gta02/pointercal.xinput
+++ b/recipes/xinput-calibrator/pointercal-xinput/om-gta01/pointercal.xinput
diff --git a/recipes/xinput-calibrator/pointercal-xinput/om-gta02/pointercal.xinput b/recipes/xinput-calibrator/pointercal-xinput/om-gta02/pointercal.xinput
new file mode 100644
index 0000000000..be25da3529
--- /dev/null
+++ b/recipes/xinput-calibrator/pointercal-xinput/om-gta02/pointercal.xinput
@@ -0,0 +1,2 @@
+xinput set-int-prop "Touchscreen" "Evdev Axis Calibration" 32 107 918 911 98
+xinput set-int-prop "Touchscreen" "Evdev Axes Swap" 8 1
diff --git a/recipes/xinput-calibrator/files/pointercal.xinput b/recipes/xinput-calibrator/pointercal-xinput/pointercal.xinput
index 9633fc5f32..9633fc5f32 100644
--- a/recipes/xinput-calibrator/files/pointercal.xinput
+++ b/recipes/xinput-calibrator/pointercal-xinput/pointercal.xinput
diff --git a/recipes/xinput-calibrator/pointercal-xinput_0.0.bb b/recipes/xinput-calibrator/pointercal-xinput_0.0.bb
new file mode 100644
index 0000000000..9a2d7ab98c
--- /dev/null
+++ b/recipes/xinput-calibrator/pointercal-xinput_0.0.bb
@@ -0,0 +1,18 @@
+DESCRIPTION = "Touchscreen calibration data from xinput-calibrator"
+LICENSE = "MIT/X11"
+SECTION = "base"
+
+SRC_URI = "file://pointercal.xinput"
+S = "${WORKDIR}"
+
+do_install() {
+ # Only install file if it has a contents
+ if [ -s ${S}/pointercal.xinput ]; then
+ install -d ${D}${sysconfdir}/
+ install -m 0644 ${S}/pointercal.xinput ${D}${sysconfdir}/
+ fi
+}
+
+ALLOW_EMPTY_${PN} = "1"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+CONFFILES_${PN} = "${sysconfdir}/pointercal.xinput"
diff --git a/recipes/xinput-calibrator/xinput-calibrator.inc b/recipes/xinput-calibrator/xinput-calibrator.inc
index fad07869c7..357b0e5c04 100644
--- a/recipes/xinput-calibrator/xinput-calibrator.inc
+++ b/recipes/xinput-calibrator/xinput-calibrator.inc
@@ -2,6 +2,7 @@ DESCRIPTION = "A generic touchscreen calibration program for X.Org"
HOMEPAGE = "http://www.freedesktop.org/wiki/Software/xinput_calibrator"
LICENSE = "MIT/X11"
DEPENDS = "virtual/libx11 libxi"
-RDEPENDS_${PN} = "xinput"
+RDEPENDS_${PN} = "xinput pointercal-xinput"
+INC_PR = "r7"
inherit autotools
diff --git a/recipes/xinput-calibrator/xinput-calibrator_0.5.0.bb b/recipes/xinput-calibrator/xinput-calibrator_0.5.0.bb
index 71d7931816..ba04865f99 100644
--- a/recipes/xinput-calibrator/xinput-calibrator_0.5.0.bb
+++ b/recipes/xinput-calibrator/xinput-calibrator_0.5.0.bb
@@ -1,6 +1,6 @@
require xinput-calibrator.inc
-PR = "r6"
+PR = "${INC_PR}.0"
SRC_URI = "git://github.com/tias/xinput_calibrator.git;protocol=git \
file://xinput-calibrator.desktop \
diff --git a/recipes/xinput-calibrator/xinput-calibrator_0.6.0.bb b/recipes/xinput-calibrator/xinput-calibrator_0.6.0.bb
index 0e2c435795..06f46d0bbb 100644
--- a/recipes/xinput-calibrator/xinput-calibrator_0.6.0.bb
+++ b/recipes/xinput-calibrator/xinput-calibrator_0.6.0.bb
@@ -6,7 +6,7 @@ SRC_URI = "git://github.com/tias/xinput_calibrator.git;protocol=git \
SRCREV = "d6e01d780001948f55006698e8e9e48c12894810"
S = "${WORKDIR}/git/"
-PR = "r2"
+PR = "${INC_PR}.0"
do_install_append() {
install -d ${D}${bindir}
diff --git a/recipes/xinput-calibrator/xinput-calibrator_0.6.1.bb b/recipes/xinput-calibrator/xinput-calibrator_0.6.1.bb
index 8d0f245fe2..7dc6f29e13 100644
--- a/recipes/xinput-calibrator/xinput-calibrator_0.6.1.bb
+++ b/recipes/xinput-calibrator/xinput-calibrator_0.6.1.bb
@@ -1,22 +1,16 @@
require xinput-calibrator.inc
-SRC_URI = "git://github.com/tias/xinput_calibrator.git;protocol=git \
- file://pointercal.xinput \
-"
+SRC_URI = "git://github.com/tias/xinput_calibrator.git;protocol=git"
SRCREV = "d2ce98b3f638667dd64b6d718721379b2dc750a7"
-PR = "r1"
+PR = "${INC_PR}.0"
S = "${WORKDIR}/git/"
do_install_append() {
install -d ${D}${bindir}
install -m 0755 scripts/xinput_calibrator_pointercal.sh ${D}${bindir}/xinput_calibrator_once.sh
- install -d ${D}${sysconfdir}
- install -m 0644 ${WORKDIR}/pointercal.xinput ${D}${sysconfdir}/pointercal.xinput
ln -s ${bindir}/xinput_calibrator_x11 ${D}${bindir}/xinput_calibrator
install -d ${D}${datadir}/applications/
install -m 0755 scripts/xinput_calibrator.desktop ${D}${datadir}/applications/xinput-calibrator.desktop
install -m 0755 scripts/xinput_calibrator_get_hal_calibration.sh ${D}${bindir}/xinput_calibrator_get_hal_calibration.sh
}
-
-CONFFILES_${PN} = "${sysconfdir}/pointercal.xinput"
diff --git a/recipes/xinput-calibrator/xinput-calibrator_git.bb b/recipes/xinput-calibrator/xinput-calibrator_git.bb
index 5fceed12d8..c6188e6a7c 100644
--- a/recipes/xinput-calibrator/xinput-calibrator_git.bb
+++ b/recipes/xinput-calibrator/xinput-calibrator_git.bb
@@ -1,6 +1,7 @@
require xinput-calibrator.inc
PV = "0.6.0+gitr${SRCPV}"
+PR = "${INC_PR}.0"
SRC_URI = "git://github.com/tias/xinput_calibrator.git;protocol=git;branch=misclick"