xinput-calibrator: add INC_PR, move machine specific file to separate recipe
authorMartin Jansa <Martin.Jansa@gmail.com>
Wed, 2 Jun 2010 07:19:37 +0000 (09:19 +0200)
committerMartin Jansa <Martin.Jansa@gmail.com>
Wed, 2 Jun 2010 07:56:18 +0000 (09:56 +0200)
* 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>
recipes/xinput-calibrator/pointercal-xinput/om-gta01/pointercal.xinput [moved from recipes/xinput-calibrator/files/om-gta02/pointercal.xinput with 100% similarity]
recipes/xinput-calibrator/pointercal-xinput/om-gta02/pointercal.xinput [new file with mode: 0644]
recipes/xinput-calibrator/pointercal-xinput/pointercal.xinput [moved from recipes/xinput-calibrator/files/pointercal.xinput with 100% similarity]
recipes/xinput-calibrator/pointercal-xinput_0.0.bb [new file with mode: 0644]
recipes/xinput-calibrator/xinput-calibrator.inc
recipes/xinput-calibrator/xinput-calibrator_0.5.0.bb
recipes/xinput-calibrator/xinput-calibrator_0.6.0.bb
recipes/xinput-calibrator/xinput-calibrator_0.6.1.bb
recipes/xinput-calibrator/xinput-calibrator_git.bb

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 (file)
index 0000000..be25da3
--- /dev/null
@@ -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/pointercal-xinput_0.0.bb b/recipes/xinput-calibrator/pointercal-xinput_0.0.bb
new file mode 100644 (file)
index 0000000..9a2d7ab
--- /dev/null
@@ -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"
index fad0786..357b0e5 100644 (file)
@@ -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
index 71d7931..ba04865 100644 (file)
@@ -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 \
index 0e2c435..06f46d0 100644 (file)
@@ -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}
index 8d0f245..7dc6f29 100644 (file)
@@ -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"
index 5fceed1..c6188e6 100644 (file)
@@ -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"