wok-4.x view lirc/receipt @ rev 3843

Fix: lirc use kernel version in the wok not running
author Christophe Lincoln <pankso@slitaz.org>
date Fri Aug 07 13:26:13 2009 +0200 (2009-08-07)
parents 5c6c9ee5f21e
children 8752c40cc534
line source
1 # SliTaz package receipt.
3 PACKAGE="lirc"
4 VERSION="0.8.5"
5 CATEGORY="utilities"
6 SHORT_DESC="Enables decoding and sending signals of many commonly used remote controls."
7 MAINTAINER="rcx@zoominternet.net"
8 DEPENDS="glibc-base libusb libusb-compat libftdi"
9 BUILD_DEPENDS="slitaz-toolchain libftdi-dev libirman-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://www.lirc.org/"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
19 # Up through at least lirc 0.8.5, lirc_gpio doesn't build with kernel 2.6.22+
20 echo "Disabling build of drivers/lirc_gpio due to kernel incompatibility"
21 sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.am
22 sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.in
24 # lirc_parallel is not SMP safe
25 echo "Disabling build of drivers/lirc_parallel due to SMP incompatibility"
26 sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.am
27 sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.in
29 ./configure \
30 --prefix=/usr \
31 --with-x \
32 --with-driver=all \
33 --with-kerneldir=/usr/src/linux \
34 --with-moduledir=/lib/modules/$(cat $WOK/linux/receipt | grep ^VERSION | \
35 cut -d "\"" -f 2)/kernel/misc \
36 $CONFIGURE_ARGS &&
37 make &&
38 make DESTDIR=$src/_pkg install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/lib
45 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
46 cp -a $_pkg/usr/bin $fs/usr
47 cp -a $_pkg/usr/sbin $fs/usr
49 cp -a $_pkg/dev $fs
50 cp -a $_pkg/lib $fs
51 }