Merge branch 'opendreambox' of git://git.opendreambox.org/git/openembedded into opend...
[vuplus_openembedded] / recipes / tslib / tslib.inc
1 DESCRIPTION = "tslib is a plugin-based flexible touchscreen access library."
2 HOMEPAGE = "http://tslib.berlios.de/"
3 AUTHOR = "Russell King w/ plugins by Chris Larson et. al."
4 SECTION = "base"
5 LICENSE = "LGPL"
6
7 SRC_URI += "\
8   file://ts.conf \
9   file://ts.conf-collie-2.4 \
10   file://ts.conf-simpad-2.4 \
11   file://tslib.sh \
12 "
13 SRC_URI_append_mnci += "\
14   file://devfs.patch;patch=1 \
15   file://event1.patch;patch=1 \
16 "
17
18 inherit autotools pkgconfig
19
20 EXTRA_OECONF        = "--enable-shared"
21 EXTRA_OECONF_mnci   = "--enable-shared --disable-h3600 --enable-input --disable-corgi --disable-collie --disable-mk712 --disable-arctic2 --disable-ucb1x00 "
22
23 do_stage () {
24         autotools_stage_all
25 }
26
27 do_install () {
28         autotools_do_install
29         install -d ${D}${sysconfdir}/profile.d/
30         install -m 0755 ${WORKDIR}/tslib.sh ${D}${sysconfdir}/profile.d/
31         install -m 0644 ${WORKDIR}/ts.conf ${D}${sysconfdir}/ts.conf
32         case ${MACHINE} in
33         collie)
34                 install -d ${D}${datadir}/tslib
35                 install -m 0644 ${WORKDIR}/ts.conf-collie-2.4 ${D}${datadir}/tslib/
36                 ;;
37         simpad)
38                 install -d ${D}${datadir}/tslib
39                 install -m 0644 ${WORKDIR}/ts.conf-simpad-2.4 ${D}${datadir}/tslib/
40                 ;;
41         esac
42 }
43
44 SRC_URI_OVERRIDES_PACKAGE_ARCH = "0"
45
46 # People should consider using udev's /dev/input/touchscreen0 symlink
47 # instead of detect-stylus
48 #RDEPENDS_tslib-conf_weird-machine = "detect-stylus"
49 RPROVIDES_tslib-conf = "libts-0.0-conf"
50
51 # Machines with machine specific patches
52 PACKAGE_ARCH_mnci = "${MACHINE_ARCH}"
53 # Machines with machine specific config files (tslib.sh)
54 PACKAGE_ARCH_tslib-conf_a780 = "${MACHINE_ARCH}"
55 PACKAGE_ARCH_tslib-conf_collie = "${MACHINE_ARCH}"
56 PACKAGE_ARCH_tslib-conf_e680 = "${MACHINE_ARCH}"
57 PACKAGE_ARCH_tslib-conf_jornada56x = "${MACHINE_ARCH}"
58 PACKAGE_ARCH_tslib-conf_jornada6xx = "${MACHINE_ARCH}"
59 PACKAGE_ARCH_tslib-conf_jornada7xx = "${MACHINE_ARCH}"
60 PACKAGE_ARCH_tslib-conf_netbook-pro = "${MACHINE_ARCH}"
61 PACKAGE_ARCH_tslib-conf_omap1610h2 = "${MACHINE_ARCH}"
62 PACKAGE_ARCH_tslib-conf_omap5912osk = "${MACHINE_ARCH}"
63 PACKAGE_ARCH_tslib-conf_simpad = "${MACHINE_ARCH}"
64
65 PACKAGES =+ "tslib-conf libts-dev tslib-tests tslib-calibrate"
66 DEBIAN_NOAUTONAME_tslib-conf = "1"
67 DEBIAN_NOAUTONAME_tslib-tests = "1"
68 DEBIAN_NOAUTONAME_tslib-calibrate = "1"
69
70 RDEPENDS_${PN} = "tslib-conf"
71 # Ship calibration data if it exists
72 RRECOMMENDS_angstrom = " pointercal "
73
74 FILES_${PN}-dbg += "${libdir}/ts/.debug*"
75 FILES_tslib-conf = "${sysconfdir}/ts.conf ${sysconfdir}/profile.d/tslib.sh ${datadir}/tslib"
76 FILES_${PN} = "${libdir}/*.so.* ${libdir}/ts/*.so*"
77 FILES_libts-dev = "${FILES_tslib-dev} ${libdir}/ts/*.la"
78 FILES_tslib-calibrate += "${bindir}/ts_calibrate"
79 FILES_tslib-tests = "${bindir}/ts_harvest ${bindir}/ts_print ${bindir}/ts_print_raw ${bindir}/ts_test"