wok annotate lirc/receipt @ rev 12113
Up tazpanel 1.4.6
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Mon Mar 12 20:00:22 2012 +0100 (2012-03-12) |
parents | 07be27851acc |
children | 73641efed1cc |
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@10597 | 13 portaudio alsa-lib util-linux-ng-uuid" |
pankso@10597 | 14 BUILD_DEPENDS="linux linux-module-headers python libusb-dev libirman-dev \ |
pascal@11529 | 15 portaudio-dev alsa-lib-dev libusb-compat-dev util-linux-ng-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 |
pankso@3843 | 22 |
rcx@3717 | 23 # Up through at least lirc 0.8.5, lirc_gpio doesn't build with kernel 2.6.22+ |
rcx@5996 | 24 #echo "Disabling build of drivers/lirc_gpio due to kernel incompatibility" |
rcx@5996 | 25 #sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.am |
rcx@5996 | 26 #sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.in |
pankso@3843 | 27 |
rcx@3717 | 28 # lirc_parallel is not SMP safe |
rcx@3717 | 29 echo "Disabling build of drivers/lirc_parallel due to SMP incompatibility" |
rcx@3717 | 30 sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.am |
rcx@3717 | 31 sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.in |
pankso@3843 | 32 |
pascal@6127 | 33 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
pascal@6127 | 34 sed -i "s/uname -r/echo $KERNEL_VERSION-slitaz/g" configure |
pascal@6127 | 35 |
rcx@3717 | 36 ./configure \ |
rcx@3717 | 37 --prefix=/usr \ |
rcx@3717 | 38 --with-x \ |
rcx@3717 | 39 --with-driver=all \ |
rcx@3717 | 40 --with-kerneldir=/usr/src/linux \ |
slaxemulator@6703 | 41 --with-moduledir=/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc \ |
rcx@3717 | 42 $CONFIGURE_ARGS && |
pankso@10597 | 43 make | sed s/ERROR/Error/ && |
pankso@10597 | 44 make DESTDIR=$DESTDIR install |
rcx@3717 | 45 } |
rcx@3717 | 46 |
rcx@3717 | 47 # Rules to gen a SliTaz package suitable for Tazpkg. |
rcx@3717 | 48 genpkg_rules() |
rcx@3717 | 49 { |
rcx@3717 | 50 mkdir -p $fs/usr/lib |
rcx@3717 | 51 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
rcx@3717 | 52 cp -a $_pkg/usr/bin $fs/usr |
rcx@3717 | 53 cp -a $_pkg/usr/sbin $fs/usr |
pankso@3843 | 54 |
rcx@3717 | 55 cp -a $_pkg/dev $fs |
rcx@3717 | 56 cp -a $_pkg/lib $fs |
rcx@3717 | 57 } |