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