wok-next annotate lirc/receipt @ rev 8620
Up: libxfcegui4 to 4.8.1.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon Feb 14 17:52:25 2011 +0000 (2011-02-14) |
parents | 54d491ff87b1 |
children | 32267b369a16 |
rev | line source |
---|---|
rcx@3717 | 1 # SliTaz package receipt. |
rcx@3717 | 2 |
rcx@3717 | 3 PACKAGE="lirc" |
slaxemulator@8348 | 4 VERSION="0.8.7" |
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" |
pascal@5003 | 8 DEPENDS="glibc-base libusb libusb-compat libftdi xorg-libSM xorg-libICE \ |
pascal@6407 | 9 xorg-libX11 xorg-libXau xorg-libXdmcp libirman portaudio xorg-libX11" |
erjo@5743 | 10 BUILD_DEPENDS="slitaz-toolchain libftdi-dev libirman-dev \ |
gokhlayeh@7989 | 11 libirman libftdi linux-module-headers python" |
rcx@3717 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
rcx@3717 | 13 WEB_SITE="http://www.lirc.org/" |
rcx@3717 | 14 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
rcx@3717 | 15 |
rcx@3717 | 16 # Rules to configure and make the package. |
rcx@3717 | 17 compile_rules() |
rcx@3717 | 18 { |
rcx@3717 | 19 cd $src |
pankso@3843 | 20 |
rcx@3717 | 21 # Up through at least lirc 0.8.5, lirc_gpio doesn't build with kernel 2.6.22+ |
rcx@5996 | 22 #echo "Disabling build of drivers/lirc_gpio due to kernel incompatibility" |
rcx@5996 | 23 #sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.am |
rcx@5996 | 24 #sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.in |
pankso@3843 | 25 |
rcx@3717 | 26 # lirc_parallel is not SMP safe |
rcx@3717 | 27 echo "Disabling build of drivers/lirc_parallel due to SMP incompatibility" |
rcx@3717 | 28 sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.am |
rcx@3717 | 29 sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.in |
pankso@3843 | 30 |
pascal@6127 | 31 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
pascal@6127 | 32 sed -i "s/uname -r/echo $KERNEL_VERSION-slitaz/g" configure |
pascal@6127 | 33 |
rcx@3717 | 34 ./configure \ |
rcx@3717 | 35 --prefix=/usr \ |
rcx@3717 | 36 --with-x \ |
rcx@3717 | 37 --with-driver=all \ |
rcx@3717 | 38 --with-kerneldir=/usr/src/linux \ |
slaxemulator@6703 | 39 --with-moduledir=/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc \ |
rcx@3717 | 40 $CONFIGURE_ARGS && |
rcx@3717 | 41 make && |
rcx@3717 | 42 make DESTDIR=$src/_pkg install |
rcx@3717 | 43 } |
rcx@3717 | 44 |
rcx@3717 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
rcx@3717 | 46 genpkg_rules() |
rcx@3717 | 47 { |
rcx@3717 | 48 mkdir -p $fs/usr/lib |
rcx@3717 | 49 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
rcx@3717 | 50 cp -a $_pkg/usr/bin $fs/usr |
rcx@3717 | 51 cp -a $_pkg/usr/sbin $fs/usr |
pankso@3843 | 52 |
rcx@3717 | 53 cp -a $_pkg/dev $fs |
rcx@3717 | 54 cp -a $_pkg/lib $fs |
rcx@3717 | 55 } |