wok-6.x view lirc/receipt @ rev 18250
Up tazpanel (516)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Aug 02 20:30:04 2015 +0200 (2015-08-02) |
parents | 97c8c89c2212 |
children | 6238b9c00443 |
line source
1 # SliTaz package receipt.
3 PACKAGE="lirc"
4 VERSION="0.9.0"
5 CATEGORY="utilities"
6 SHORT_DESC="Enables decoding and sending signals of many commonly used remote controls."
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.lirc.org/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 DEPENDS="glibc-base libusb libusb-compat libftdi xorg-libXau libirman \
14 portaudio alsa-lib util-linux-uuid"
15 BUILD_DEPENDS="linux linux-module-headers python libusb-dev libirman-dev \
16 portaudio-dev alsa-lib-dev libusb-compat-dev util-linux-uuid-dev \
17 libftdi-dev jack-audio-connection-kit-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
24 sed -i '/smp_lock.h/d' drivers/lirc_atiusb/lirc_atiusb.c
26 # Up through at least lirc 0.8.5, lirc_gpio doesn't build with kernel 2.6.22+
27 #echo "Disabling build of drivers/lirc_gpio due to kernel incompatibility"
28 #sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.am
29 #sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.in
31 # lirc_parallel is not SMP safe
32 echo "Disabling build of drivers/lirc_parallel due to SMP incompatibility"
33 sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.am
34 sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.in
36 echo "Disabling build of drivers/lirc_i2c due to kernel 2.6.38+ incompatibility"
37 sed -i -e "s:lirc_i2c\.o::" drivers/lirc_i2c/Makefile.am
38 sed -i -e "s:lirc_i2c\.o::" drivers/lirc_i2c/Makefile.in
40 echo "Disabling build of drivers/lirc_wpc8769l due to kernel incompatibility"
41 sed -i -e "s:lirc_wpc8769l\.o::" drivers/lirc_wpc8769l/Makefile.am
42 sed -i -e "s:lirc_wpc8769l\.o::" drivers/lirc_wpc8769l/Makefile.in
44 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
45 sed -i "s/uname -r/echo $KERNEL_VERSION-slitaz/g" configure
47 ./configure \
48 --prefix=/usr \
49 --with-x \
50 --with-driver=all \
51 --with-kerneldir=/usr/src/linux \
52 --with-moduledir=/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc \
53 $CONFIGURE_ARGS &&
54 make 2>&1 | sed 's/ERROR/Error/;/lirc_dev\/Module/d' &&
55 make DESTDIR=$DESTDIR install 2>&1 | sed '/depmod:/d'
56 }
58 # Rules to gen a SliTaz package suitable for Tazpkg.
59 genpkg_rules()
60 {
61 mkdir -p $fs/usr/lib
62 cp -a $install/usr/lib/*.so* $fs/usr/lib
63 cp -a $install/usr/bin $fs/usr
64 cp -a $install/usr/sbin $fs/usr
66 cp -a $install/dev $fs
67 cp -a $install/lib $fs
68 }