diff options
| author | Richard Purdie <richard@openedhand.com> | 2005-08-31 10:45:47 +0000 |
|---|---|---|
| committer | Richard Purdie <richard@openedhand.com> | 2005-08-31 10:45:47 +0000 |
| commit | 4b46c1f6e891b1ddd5968536440b888661fade3e (patch) | |
| tree | e0ba2c1f56f61b868bf746da5c4feabb25b800b2 /openembedded/packages/tslib/tslib_cvs.bb | |
| download | poky-4b46c1f6e891b1ddd5968536440b888661fade3e.tar.gz | |
Initial population
git-svn-id: https://svn.o-hand.com/repos/poky@1 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/packages/tslib/tslib_cvs.bb')
| -rw-r--r-- | openembedded/packages/tslib/tslib_cvs.bb | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/openembedded/packages/tslib/tslib_cvs.bb b/openembedded/packages/tslib/tslib_cvs.bb new file mode 100644 index 0000000000..80fd8f2966 --- /dev/null +++ b/openembedded/packages/tslib/tslib_cvs.bb | |||
| @@ -0,0 +1,67 @@ | |||
| 1 | SECTION = "base" | ||
| 2 | DESCRIPTION = "tslib is a touchscreen access library." | ||
| 3 | PV = "0.0cvs${CVSDATE}" | ||
| 4 | PR = "r29" | ||
| 5 | |||
| 6 | SRC_URI_OVERRIDES_PACKAGE_ARCH = "0" | ||
| 7 | PACKAGE_ARCH_tslib-conf = "${MACHINE}" | ||
| 8 | PACKAGE_ARCH_mnci = "${MACHINE}" | ||
| 9 | |||
| 10 | SRC_URI = "cvs://cvs:@pubcvs.arm.linux.org.uk/mnt/src/cvsroot;module=tslib \ | ||
| 11 | file://ts.conf \ | ||
| 12 | file://ts.conf-h3600 file://ts.conf-h3600-2.4 file://ts.conf-h2200 \ | ||
| 13 | file://ts.conf-corgi file://ts.conf-corgi-2.4 \ | ||
| 14 | file://tslib.sh" | ||
| 15 | SRC_URI_append_mnci += " file://devfs.patch;patch=1" | ||
| 16 | SRC_URI_append_mnci += " file://event1.patch;patch=1" | ||
| 17 | S = "${WORKDIR}/tslib" | ||
| 18 | LICENSE = "LGPL" | ||
| 19 | CONFFILES_${PN} = "${sysconfdir}/ts.conf" | ||
| 20 | |||
| 21 | inherit autotools | ||
| 22 | |||
| 23 | PACKAGES = "tslib-conf libts libts-dev tslib-tests tslib-calibrate" | ||
| 24 | EXTRA_OECONF = "--enable-shared" | ||
| 25 | EXTRA_OECONF_mnci = "--enable-shared --disable-h3600 --enable-input --disable-corgi --disable-collie --disable-mk712 --disable-arctic2 --disable-ucb1x00 " | ||
| 26 | |||
| 27 | do_stage () { | ||
| 28 | oe_libinstall -so -C src libts-0.0 ${STAGING_LIBDIR} | ||
| 29 | ln -sf libts-0.0.so ${STAGING_LIBDIR}/libts.so | ||
| 30 | install -m 0644 src/tslib.h ${STAGING_INCDIR}/ | ||
| 31 | install -m 0644 src/tslib-private.h ${STAGING_INCDIR}/ | ||
| 32 | } | ||
| 33 | |||
| 34 | do_install_prepend () { | ||
| 35 | install -m 0644 ${WORKDIR}/ts.conf ${S}/etc/ts.conf | ||
| 36 | } | ||
| 37 | |||
| 38 | do_install_append() { | ||
| 39 | install -d ${D}${sysconfdir}/profile.d/ | ||
| 40 | install -m 0755 ${WORKDIR}/tslib.sh ${D}${sysconfdir}/profile.d/ | ||
| 41 | case ${MACHINE} in | ||
| 42 | h3600 | h3900 | h1940 | ipaq-pxa270) | ||
| 43 | install -d ${D}${datadir}/tslib | ||
| 44 | for f in ts.conf-h3600 ts.conf-h3600-2.4 ts.conf-h2200; do | ||
| 45 | install -m 0644 ${WORKDIR}/$f ${D}${datadir}/tslib/ | ||
| 46 | done | ||
| 47 | rm -f ${D}${sysconfdir}/ts.conf | ||
| 48 | ;; | ||
| 49 | c7x0 | spitz | akita | tosa | borzoi ) | ||
| 50 | install -d ${D}${datadir}/tslib | ||
| 51 | for f in ts.conf-corgi ts.conf-corgi-2.4; do | ||
| 52 | install -m 0644 ${WORKDIR}/$f ${D}${datadir}/tslib/ | ||
| 53 | done | ||
| 54 | rm -f ${D}${sysconfdir}/ts.conf | ||
| 55 | ;; | ||
| 56 | *) | ||
| 57 | ;; | ||
| 58 | esac | ||
| 59 | } | ||
| 60 | |||
| 61 | RDEPENDS_libts = "tslib-conf" | ||
| 62 | |||
| 63 | FILES_tslib-conf = "${sysconfdir}/ts.conf ${sysconfdir}/profile.d/tslib.sh ${datadir}/tslib" | ||
| 64 | FILES_libts = "${libdir}/*.so.* ${libdir}/ts/*.so*" | ||
| 65 | FILES_libts-dev = "${FILES_tslib-dev}" | ||
| 66 | FILES_tslib-calibrate += "${bindir}/ts_calibrate" | ||
| 67 | FILES_tslib-tests = "${bindir}/ts_harvest ${bindir}/ts_print ${bindir}/ts_print_raw ${bindir}/ts_test" | ||
