diff options
Diffstat (limited to 'meta-oe/recipes-graphics/tslib/tslib_1.23.bb')
-rw-r--r-- | meta-oe/recipes-graphics/tslib/tslib_1.23.bb | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/tslib/tslib_1.23.bb b/meta-oe/recipes-graphics/tslib/tslib_1.23.bb new file mode 100644 index 0000000000..299aa2a273 --- /dev/null +++ b/meta-oe/recipes-graphics/tslib/tslib_1.23.bb | |||
@@ -0,0 +1,84 @@ | |||
1 | SUMMARY = "An abstraction layer for touchscreen panel events" | ||
2 | DESCRIPTION = "Tslib is an abstraction layer for touchscreen panel \ | ||
3 | events, as well as a filter stack for the manipulation of those events. \ | ||
4 | Tslib is generally used on embedded devices to provide a common user \ | ||
5 | space interface to touchscreen functionality." | ||
6 | HOMEPAGE = "http://tslib.org/" | ||
7 | |||
8 | SECTION = "base" | ||
9 | LICENSE = "LGPL-2.0-or-later & GPL-2.0-or-later" | ||
10 | LIC_FILES_CHKSUM = "\ | ||
11 | file://COPYING;md5=fc178bcd425090939a8b634d1d6a9594 \ | ||
12 | file://tests/COPYING;md5=a23a74b3f4caf9616230789d94217acb \ | ||
13 | " | ||
14 | |||
15 | SRC_URI = "https://github.com/kergoth/tslib/releases/download/${PV}/tslib-${PV}.tar.xz;downloadfilename=tslib-${PV}.tar.xz \ | ||
16 | file://ts.conf \ | ||
17 | file://tslib.sh \ | ||
18 | " | ||
19 | SRC_URI[sha256sum] = "9b489a54d48006201f2fe955a88c3f857535ac93b6cf8e5a16c7b166c8991dac" | ||
20 | |||
21 | UPSTREAM_CHECK_URI = "https://github.com/kergoth/tslib/releases" | ||
22 | |||
23 | inherit autotools pkgconfig | ||
24 | |||
25 | PACKAGECONFIG ??= "debounce dejitter evthres iir linear median pthres skip lowpass invert variance input touchkit waveshare" | ||
26 | PACKAGECONFIG[debounce] = "--enable-debounce,--disable-debounce" | ||
27 | PACKAGECONFIG[dejitter] = "--enable-dejitter,--disable-dejitter" | ||
28 | PACKAGECONFIG[evthres] = "--enable-evthres,--disable-evthres" | ||
29 | PACKAGECONFIG[iir] = "--enable-iir,--disable-iir" | ||
30 | PACKAGECONFIG[linear] = "--enable-linear,--disable-linear" | ||
31 | PACKAGECONFIG[median] = "--enable-median,--disable-median" | ||
32 | PACKAGECONFIG[pthres] = "--enable-pthres,--disable-pthres" | ||
33 | PACKAGECONFIG[skip] = "--enable-skip,--disable-skip" | ||
34 | PACKAGECONFIG[lowpass] = "--enable-lowpass,--disable-lowpass" | ||
35 | PACKAGECONFIG[invert] = "--enable-invert,--disable-invert" | ||
36 | PACKAGECONFIG[variance] = "--enable-variance,--disable-variance" | ||
37 | PACKAGECONFIG[input] = "--enable-input,--disable-input" | ||
38 | PACKAGECONFIG[tatung] = "--enable-tatung,--disable-tatung" | ||
39 | PACKAGECONFIG[touchkit] = "--enable-touchkit,--disable-touchkit" | ||
40 | PACKAGECONFIG[waveshare] = "--enable-waveshare,--disable-waveshare" | ||
41 | PACKAGECONFIG[ucb1x00] = "--enable-ucb1x00,--disable-ucb1x00" | ||
42 | PACKAGECONFIG[mk712] = "--enable-mk712,--disable-mk712" | ||
43 | PACKAGECONFIG[h3600] = "--enable-h3600,--disable-h3600" | ||
44 | PACKAGECONFIG[dmc] = "--enable-dmc,--disable-dmc" | ||
45 | PACKAGECONFIG[linear-h2200] = "--enable-linear-h2200,--disable-linear-h2200" | ||
46 | PACKAGECONFIG[corgi] = "--enable-corgi,--disable-corgi" | ||
47 | PACKAGECONFIG[collie] = "--enable-collie,--disable-collie" | ||
48 | PACKAGECONFIG[arctic2] = "--enable-arctic2,--disable-arctic2" | ||
49 | PACKAGECONFIG[dmc_dus3000] = "--enable-dmc_dus3000,--disable-dmc_dus3000" | ||
50 | PACKAGECONFIG[cy8mrln-palmpre] = "--enable-cy8mrln-palmpre,--disable-cy8mrln-palmpre" | ||
51 | PACKAGECONFIG[galax] = "--enable-galax,--disable-galax" | ||
52 | PACKAGECONFIG[one-wire-ts-input] = "--enable-one-wire-ts-input,--disable-one-wire-ts-input" | ||
53 | PACKAGECONFIG[debug] = "--enable-debug,--disable-debug" | ||
54 | |||
55 | do_install:prepend() { | ||
56 | install -m 0644 ${UNPACKDIR}/ts.conf ${S}/etc/ts.conf | ||
57 | } | ||
58 | |||
59 | do_install:append() { | ||
60 | install -d ${D}${sysconfdir}/profile.d/ | ||
61 | install -m 0755 ${UNPACKDIR}/tslib.sh ${D}${sysconfdir}/profile.d/ | ||
62 | } | ||
63 | |||
64 | RPROVIDES:tslib-conf = "libts-0.0-conf" | ||
65 | |||
66 | PACKAGES =+ "tslib-conf tslib-tests tslib-calibrate tslib-uinput" | ||
67 | DEBIAN_NOAUTONAME:tslib-conf = "1" | ||
68 | DEBIAN_NOAUTONAME:tslib-tests = "1" | ||
69 | DEBIAN_NOAUTONAME:tslib-calibrate = "1" | ||
70 | DEBIAN_NOAUTONAME:tslib-uinput = "1" | ||
71 | |||
72 | RDEPENDS:${PN} = "tslib-conf" | ||
73 | RRECOMMENDS:${PN} = "pointercal" | ||
74 | |||
75 | FILES:${PN}-dev += "${libdir}/ts/*.la" | ||
76 | FILES:tslib-conf = "${sysconfdir}/ts.conf ${sysconfdir}/profile.d/tslib.sh ${datadir}/tslib" | ||
77 | FILES:${PN} = "${libdir}/*.so.* ${libdir}/ts/*.so*" | ||
78 | FILES:tslib-calibrate += "${bindir}/ts_calibrate" | ||
79 | FILES:tslib-uinput += "${bindir}/ts_uinput" | ||
80 | |||
81 | FILES:tslib-tests = "${bindir}/ts_harvest ${bindir}/ts_print ${bindir}/ts_print_raw ${bindir}/ts_print_mt \ | ||
82 | ${bindir}/ts_test ${bindir}/ts_test_mt ${bindir}/ts_verify ${bindir}/ts_finddev ${bindir}/ts_conf" | ||
83 | |||
84 | BBCLASSEXTEND = "native nativesdk" | ||