diff options
Diffstat (limited to 'meta/packages/tslib/tslib-maemo_0.0.1-15.bb')
| -rw-r--r-- | meta/packages/tslib/tslib-maemo_0.0.1-15.bb | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/meta/packages/tslib/tslib-maemo_0.0.1-15.bb b/meta/packages/tslib/tslib-maemo_0.0.1-15.bb new file mode 100644 index 0000000000..e797f5bdce --- /dev/null +++ b/meta/packages/tslib/tslib-maemo_0.0.1-15.bb | |||
| @@ -0,0 +1,49 @@ | |||
| 1 | DEFAULT_PREFERENCE = "-1" | ||
| 2 | SECTION = "base" | ||
| 3 | DESCRIPTION = "tslib is a touchscreen access library (maemo patched version)." | ||
| 4 | PR = "r2" | ||
| 5 | PROVIDES = "tslib" | ||
| 6 | |||
| 7 | SRC_URI_OVERRIDES_PACKAGE_ARCH = "0" | ||
| 8 | PACKAGE_ARCH_tslib-conf = "${MACHINE_ARCH}" | ||
| 9 | |||
| 10 | SRC_URI = "http://repository.maemo.org/pool/maemo/ossw/source/t/tslib/tslib_${PV}.tar.gz \ | ||
| 11 | file://ts.conf \ | ||
| 12 | file://tslib.sh" | ||
| 13 | |||
| 14 | S = "${WORKDIR}/tslib" | ||
| 15 | LICENSE = "LGPL" | ||
| 16 | CONFFILES_${PN} = "${sysconfdir}/ts.conf" | ||
| 17 | |||
| 18 | inherit autotools | ||
| 19 | |||
| 20 | PACKAGES = "tslib-maemo-conf libts-maemo libts-maemo-dev tslib-maemo-tests tslib-maemo-calibrate" | ||
| 21 | EXTRA_OECONF = "--enable-shared" | ||
| 22 | |||
| 23 | do_stage () { | ||
| 24 | autotools_stage_all | ||
| 25 | } | ||
| 26 | |||
| 27 | |||
| 28 | do_install_prepend () { | ||
| 29 | install -m 0644 ${WORKDIR}/ts.conf ${S}/etc/ts.conf | ||
| 30 | } | ||
| 31 | |||
| 32 | do_install_append() { | ||
| 33 | install -d ${D}${sysconfdir}/profile.d/ | ||
| 34 | install -m 0755 ${WORKDIR}/tslib.sh ${D}${sysconfdir}/profile.d/ | ||
| 35 | } | ||
| 36 | |||
| 37 | RDEPENDS_libts-maemo = "tslib-maemo-conf" | ||
| 38 | |||
| 39 | RPROVIDES_tslib-maemo-conf = "tslib-conf" | ||
| 40 | RPROVIDES_libts-maemo = "libts" | ||
| 41 | RPROVIDES_libts-maemo-dev = "libts-dev" | ||
| 42 | RPROVIDES_tslib-maemo-calibrate = "tslib-calibrate" | ||
| 43 | RPROVIDES_tslib-maemo-tests = "tslib-tests" | ||
| 44 | |||
| 45 | FILES_tslib-maemo-conf = "${sysconfdir}/ts.conf ${sysconfdir}/profile.d/tslib.sh ${datadir}/tslib" | ||
| 46 | FILES_libts-maemo = "${libdir}/*.so.* ${datadir}/ts/plugins/*.so*" | ||
| 47 | FILES_libts-maemo-dev = "${FILES_tslib-maemo-dev}" | ||
| 48 | FILES_tslib-maemo-calibrate += "${bindir}/ts_calibrate" | ||
| 49 | FILES_tslib-maemo-tests = "${bindir}/ts_harvest ${bindir}/ts_print ${bindir}/ts_print_raw ${bindir}/ts_test" | ||
