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