3f3b777322a97f129c31953a1609889a734d8798
[openembedded.git] / tslib / tslib_cvs.oe
1 PV = "0.1cvs${CVSDATE}"
2
3 DESCRIPTION = "tslib is a touchscreen access library."
4
5 SRC_URI = "cvs://anoncvs:anoncvs@cvs.handhelds.org/cvs;module=apps/tslib \
6            file://collie/ts.conf \
7            file://collie/tslib.sh \
8            file://corgi/ts.conf \
9            file://corgi/tslib.sh \
10            file://h3600/ts.conf \
11            file://h3600/tslib.sh \
12            file://husky/ts.conf \
13            file://husky/tslib.sh \
14            file://poodle/ts.conf \
15            file://poodle/tslib.sh \
16            file://shepherd/ts.conf \
17            file://shepherd/tslib.sh"
18 S = "${WORKDIR}/tslib"
19
20 inherit autotools
21
22 EXTRA_OECONF = "--enable-shared"
23
24 do_stage () {
25         oe_libinstall -so -C src libts-0.0 ${STAGING_LIBDIR}
26         ln -sf libts-0.0.so ${STAGING_LIBDIR}/libts.so
27         install -m 0644 src/tslib.h ${STAGING_INCDIR}/
28         install -m 0644 src/tslib-private.h ${STAGING_INCDIR}/
29 }
30
31 do_install_prepend () {
32         oe_machinstall -m 0644 ${WORKDIR}/ts.conf ${S}/etc/ts.conf
33 }
34
35 do_install_append() {
36         install -d ${D}/${sysconfdir}/profile.d/
37         oe_machinstall -m 0755 ${WORKDIR}/tslib.sh ${D}/${sysconfdir}/profile.d/
38 }
39
40 FILES_tslib_append = " ${datadir}/ts/plugins/*.so"