summaryrefslogtreecommitdiff
path: root/packages/tslib
diff options
context:
space:
mode:
authornslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net>2005-06-05 20:40:09 +0000
committernslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net>2005-06-05 20:40:09 +0000
commit4ddf109d05c20ddd00ab52ef63f5a9abc4971821 (patch)
treee439613928bfa34db6a67b174326305251fd5010 /packages/tslib
parentb7c7fc8392a3ff7938ddee7a10cba1d2429af967 (diff)
Merge bk://oe-devel.bkbits.net/openembedded
into bkbits.net:/repos/n/nslu2-linux/openembedded 2005/06/05 22:37:02+02:00 utwente.nl!koen tslib-maemo_0.0.1-15.bb: tweak tslib-maemo a bit, courtesy Florian Boor nokia770.conf: tweak preferred providers, courtesy Florian Boor 2005/06/05 21:11:14+01:00 reciva.com!pb shuffle some gcc DEFAULT_PREFERENCEs around BKrev: 42a36329ZV-DIwINptN5D_Kt7mt5LA
Diffstat (limited to 'packages/tslib')
-rw-r--r--packages/tslib/tslib-maemo_0.0.1-15.bb44
1 files changed, 44 insertions, 0 deletions
diff --git a/packages/tslib/tslib-maemo_0.0.1-15.bb b/packages/tslib/tslib-maemo_0.0.1-15.bb
index e69de29bb2..28a5f00fa9 100644
--- a/packages/tslib/tslib-maemo_0.0.1-15.bb
+++ b/packages/tslib/tslib-maemo_0.0.1-15.bb
@@ -0,0 +1,44 @@
+SECTION = "base"
+DESCRIPTION = "tslib is a touchscreen access library (maemo patched version)."
+PR = "r1"
+PROVIDES = "virtual/tslib"
+
+SRC_URI_OVERRIDES_PACKAGE_ARCH = "0"
+PACKAGE_ARCH_tslib-conf = "${MACHINE}"
+
+SRC_URI = "http://repository.maemo.org/pool/maemo/ossw/source/t/tslib/tslib_${PV}.tar.gz \
+ file://ts.conf \
+ file://tslib.sh"
+
+S = "${WORKDIR}/tslib"
+LICENSE = "LGPL"
+CONFFILES_${PN} = "${sysconfdir}/ts.conf"
+
+inherit autotools
+
+PACKAGES = "tslib-maemo-conf libts-maemo libts-maemo-dev tslib-maemo-tests tslib-maemo-calibrate"
+EXTRA_OECONF = "--enable-shared"
+
+do_stage () {
+ oe_libinstall -so -C src libts-0.0 ${STAGING_LIBDIR}
+ ln -sf libts-0.0.so ${STAGING_LIBDIR}/libts.so
+ install -m 0644 src/tslib.h ${STAGING_INCDIR}/
+ install -m 0644 src/tslib-private.h ${STAGING_INCDIR}/
+}
+
+do_install_prepend () {
+ install -m 0644 ${WORKDIR}/ts.conf ${S}/etc/ts.conf
+}
+
+do_install_append() {
+ install -d ${D}${sysconfdir}/profile.d/
+ install -m 0755 ${WORKDIR}/tslib.sh ${D}${sysconfdir}/profile.d/
+}
+
+RDEPENDS_libts-maemo = "tslib-maemo-conf"
+
+FILES_tslib-maemo-conf = "${sysconfdir}/ts.conf ${sysconfdir}/profile.d/tslib.sh ${datadir}/tslib"
+FILES_libts-maemo = "${libdir}/*.so.* ${datadir}/ts/plugins/*.so*"
+FILES_libts-maemo-dev = "${FILES_tslib-maemo-dev}"
+FILES_tslib-maemo-calibrate += "${bindir}/ts_calibrate"
+FILES_tslib-maemo-tests = "${bindir}/ts_harvest ${bindir}/ts_print ${bindir}/ts_print_raw ${bindir}/ts_test"