wok view lirc/receipt @ rev 9576

Up: xorg-libXfixes to 5.0.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Apr 12 11:17:31 2011 +0000 (2011-04-12)
parents 5d7a91e4adf7
children 07be27851acc
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 DEPENDS="glibc-base libusb libusb-compat libftdi xorg-libSM xorg-libICE \
9 xorg-libX11 xorg-libXau xorg-libXdmcp libirman portaudio xorg-libX11"
10 BUILD_DEPENDS="linux-module-headers python"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WEB_SITE="http://www.lirc.org/"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
20 # Up through at least lirc 0.8.5, lirc_gpio doesn't build with kernel 2.6.22+
21 #echo "Disabling build of drivers/lirc_gpio due to kernel incompatibility"
22 #sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.am
23 #sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.in
25 # lirc_parallel is not SMP safe
26 echo "Disabling build of drivers/lirc_parallel due to SMP incompatibility"
27 sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.am
28 sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.in
30 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
31 sed -i "s/uname -r/echo $KERNEL_VERSION-slitaz/g" configure
33 ./configure \
34 --prefix=/usr \
35 --with-x \
36 --with-driver=all \
37 --with-kerneldir=/usr/src/linux \
38 --with-moduledir=/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc \
39 $CONFIGURE_ARGS &&
40 make &&
41 make DESTDIR=$src/_pkg install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/lib
48 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
49 cp -a $_pkg/usr/bin $fs/usr
50 cp -a $_pkg/usr/sbin $fs/usr
52 cp -a $_pkg/dev $fs
53 cp -a $_pkg/lib $fs
54 }