Merge bk://openembedded@openembedded.bkbits.net/packages
[vuplus_openembedded] / lirc / lirc_0.6.6+cvs20040918.oe
1 DESCRIPTION = "LIRC is a package that allows you to decode and send infra-red signals of many commonly used remote controls."
2 SECTION = "console/network"
3 PRIORITY = "optional"
4 MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>"
5 LICENSE = "GPL"
6 RDEPENDS = "kernel lirc-modules"
7 DEPENDS = "virtual/kernel"
8 PR = "r4"
9
10 S = "${WORKDIR}/lirc"
11 SRC_URI = "cvs://anonymous@cvs.sourceforge.net/cvsroot/lirc;module=lirc;date=20040918;method=pserver \
12         file://split-hauppauge.patch;patch=1"
13
14 inherit autotools module-base update-rc.d
15
16 INITSCRIPT_NAME = "lirc"
17 INITSCRIPT_PARAMS = "defaults 20"
18
19 EXTRA_OECONF_epia = "--with-kerneldir=${KERNEL_SOURCE} --with-driver=serial"
20 EXTRA_OECONF_collie = "--with-kerneldir=${KERNEL_SOURCE} --with-driver=sa1100 --without-x"
21 EXTRA_OECONF_h3600 = "--with-kerneldir=${KERNEL_SOURCE} --with-driver=sa1100 --without-x"
22 EXTRA_OECONF_beagle = "--with-kerneldir=${KERNEL_SOURCE} --with-driver=sa1100 --without-x"
23 EXTRA_OECONF_simpad = "--with-kerneldir=${KERNEL_SOURCE} --with-driver=sa1100 --without-x"
24
25 EXTRA_OEMAKE = 'SUBDIRS="daemons tools"'
26
27 do_stage() {
28         oe_libinstall -so -C tools liblirc_client ${STAGING_LIBDIR}
29         install -d ${STAGING_INCDIR}/lirc/
30         install -m 0644 tools/lirc_client.h ${STAGING_INCDIR}/lirc/
31 }
32
33 do_install() {
34         install -d ${D}/${bindir}
35
36         install -m 755 daemons/irrecord ${D}/${bindir}/irrecord
37         install -m 755 daemons/lircd ${D}/${bindir}/lircd
38
39         oe_libinstall -so -C tools liblirc_client ${D}${libdir}/
40         install -d ${D}${includedir}
41         install -m 0644 tools/lirc_client.h ${D}${includedir}/
42
43         install -d ${D}/etc/init.d
44         install contrib/lirc.debian ${D}/etc/init.d/lirc
45
46         install -d ${D}${datadir}/lirc/
47         cp -a remotes ${D}${datadir}/lirc/
48         find ${D}${datadir}/lirc -name CVS -o -name '*~*' | xargs rm -rf
49 }
50