1*4882a593SmuzhiyunSUMMARY = "An abstraction layer for touchscreen panel events" 2*4882a593SmuzhiyunDESCRIPTION = "Tslib is an abstraction layer for touchscreen panel \ 3*4882a593Smuzhiyunevents, as well as a filter stack for the manipulation of those events. \ 4*4882a593SmuzhiyunTslib is generally used on embedded devices to provide a common user \ 5*4882a593Smuzhiyunspace interface to touchscreen functionality." 6*4882a593SmuzhiyunHOMEPAGE = "http://tslib.org/" 7*4882a593Smuzhiyun 8*4882a593SmuzhiyunAUTHOR = "Martin Kepplinger <martink@posteo.de>" 9*4882a593SmuzhiyunSECTION = "base" 10*4882a593SmuzhiyunLICENSE = "LGPL-2.0-or-later & GPL-2.0-or-later" 11*4882a593SmuzhiyunLIC_FILES_CHKSUM = "\ 12*4882a593Smuzhiyun file://COPYING;md5=fc178bcd425090939a8b634d1d6a9594 \ 13*4882a593Smuzhiyun file://tests/COPYING;md5=a23a74b3f4caf9616230789d94217acb \ 14*4882a593Smuzhiyun" 15*4882a593Smuzhiyun 16*4882a593SmuzhiyunSRC_URI = "https://github.com/kergoth/tslib/releases/download/${PV}/tslib-${PV}.tar.xz;downloadfilename=tslib-${PV}.tar.xz \ 17*4882a593Smuzhiyun file://ts.conf \ 18*4882a593Smuzhiyun file://tslib.sh \ 19*4882a593Smuzhiyun " 20*4882a593SmuzhiyunSRC_URI[sha256sum] = "aaf0aed410a268d7b51385d07fe4d9d64312038e87c447ec8a24c8db0a15617a" 21*4882a593Smuzhiyun 22*4882a593SmuzhiyunUPSTREAM_CHECK_URI = "https://github.com/kergoth/tslib/releases" 23*4882a593Smuzhiyun 24*4882a593Smuzhiyuninherit autotools pkgconfig 25*4882a593Smuzhiyun 26*4882a593SmuzhiyunPACKAGECONFIG ??= "debounce dejitter evthres iir linear median pthres skip lowpass invert variance input touchkit waveshare" 27*4882a593SmuzhiyunPACKAGECONFIG[debounce] = "--enable-debounce,--disable-debounce" 28*4882a593SmuzhiyunPACKAGECONFIG[dejitter] = "--enable-dejitter,--disable-dejitter" 29*4882a593SmuzhiyunPACKAGECONFIG[evthres] = "--enable-evthres,--disable-evthres" 30*4882a593SmuzhiyunPACKAGECONFIG[iir] = "--enable-iir,--disable-iir" 31*4882a593SmuzhiyunPACKAGECONFIG[linear] = "--enable-linear,--disable-linear" 32*4882a593SmuzhiyunPACKAGECONFIG[median] = "--enable-median,--disable-median" 33*4882a593SmuzhiyunPACKAGECONFIG[pthres] = "--enable-pthres,--disable-pthres" 34*4882a593SmuzhiyunPACKAGECONFIG[skip] = "--enable-skip,--disable-skip" 35*4882a593SmuzhiyunPACKAGECONFIG[lowpass] = "--enable-lowpass,--disable-lowpass" 36*4882a593SmuzhiyunPACKAGECONFIG[invert] = "--enable-invert,--disable-invert" 37*4882a593SmuzhiyunPACKAGECONFIG[variance] = "--enable-variance,--disable-variance" 38*4882a593SmuzhiyunPACKAGECONFIG[input] = "--enable-input,--disable-input" 39*4882a593SmuzhiyunPACKAGECONFIG[tatung] = "--enable-tatung,--disable-tatung" 40*4882a593SmuzhiyunPACKAGECONFIG[touchkit] = "--enable-touchkit,--disable-touchkit" 41*4882a593SmuzhiyunPACKAGECONFIG[waveshare] = "--enable-waveshare,--disable-waveshare" 42*4882a593SmuzhiyunPACKAGECONFIG[ucb1x00] = "--enable-ucb1x00,--disable-ucb1x00" 43*4882a593SmuzhiyunPACKAGECONFIG[mk712] = "--enable-mk712,--disable-mk712" 44*4882a593SmuzhiyunPACKAGECONFIG[h3600] = "--enable-h3600,--disable-h3600" 45*4882a593SmuzhiyunPACKAGECONFIG[dmc] = "--enable-dmc,--disable-dmc" 46*4882a593SmuzhiyunPACKAGECONFIG[linear-h2200] = "--enable-linear-h2200,--disable-linear-h2200" 47*4882a593SmuzhiyunPACKAGECONFIG[corgi] = "--enable-corgi,--disable-corgi" 48*4882a593SmuzhiyunPACKAGECONFIG[collie] = "--enable-collie,--disable-collie" 49*4882a593SmuzhiyunPACKAGECONFIG[arctic2] = "--enable-arctic2,--disable-arctic2" 50*4882a593SmuzhiyunPACKAGECONFIG[dmc_dus3000] = "--enable-dmc_dus3000,--disable-dmc_dus3000" 51*4882a593SmuzhiyunPACKAGECONFIG[cy8mrln-palmpre] = "--enable-cy8mrln-palmpre,--disable-cy8mrln-palmpre" 52*4882a593SmuzhiyunPACKAGECONFIG[galax] = "--enable-galax,--disable-galax" 53*4882a593SmuzhiyunPACKAGECONFIG[one-wire-ts-input] = "--enable-one-wire-ts-input,--disable-one-wire-ts-input" 54*4882a593SmuzhiyunPACKAGECONFIG[debug] = "--enable-debug,--disable-debug" 55*4882a593Smuzhiyun 56*4882a593Smuzhiyundo_install:prepend() { 57*4882a593Smuzhiyun install -m 0644 ${WORKDIR}/ts.conf ${S}/etc/ts.conf 58*4882a593Smuzhiyun} 59*4882a593Smuzhiyun 60*4882a593Smuzhiyundo_install:append() { 61*4882a593Smuzhiyun install -d ${D}${sysconfdir}/profile.d/ 62*4882a593Smuzhiyun install -m 0755 ${WORKDIR}/tslib.sh ${D}${sysconfdir}/profile.d/ 63*4882a593Smuzhiyun} 64*4882a593Smuzhiyun 65*4882a593SmuzhiyunRPROVIDES:tslib-conf = "libts-0.0-conf" 66*4882a593Smuzhiyun 67*4882a593SmuzhiyunPACKAGES =+ "tslib-conf tslib-tests tslib-calibrate tslib-uinput" 68*4882a593SmuzhiyunDEBIAN_NOAUTONAME:tslib-conf = "1" 69*4882a593SmuzhiyunDEBIAN_NOAUTONAME:tslib-tests = "1" 70*4882a593SmuzhiyunDEBIAN_NOAUTONAME:tslib-calibrate = "1" 71*4882a593SmuzhiyunDEBIAN_NOAUTONAME:tslib-uinput = "1" 72*4882a593Smuzhiyun 73*4882a593SmuzhiyunRDEPENDS:${PN} = "tslib-conf" 74*4882a593SmuzhiyunRRECOMMENDS:${PN} = "pointercal" 75*4882a593Smuzhiyun 76*4882a593SmuzhiyunFILES:${PN}-dev += "${libdir}/ts/*.la" 77*4882a593SmuzhiyunFILES:tslib-conf = "${sysconfdir}/ts.conf ${sysconfdir}/profile.d/tslib.sh ${datadir}/tslib" 78*4882a593SmuzhiyunFILES:${PN} = "${libdir}/*.so.* ${libdir}/ts/*.so*" 79*4882a593SmuzhiyunFILES:tslib-calibrate += "${bindir}/ts_calibrate" 80*4882a593SmuzhiyunFILES:tslib-uinput += "${bindir}/ts_uinput" 81*4882a593Smuzhiyun 82*4882a593SmuzhiyunFILES:tslib-tests = "${bindir}/ts_harvest ${bindir}/ts_print ${bindir}/ts_print_raw ${bindir}/ts_print_mt \ 83*4882a593Smuzhiyun ${bindir}/ts_test ${bindir}/ts_test_mt ${bindir}/ts_verify ${bindir}/ts_finddev ${bindir}/ts_conf" 84