wok view lirc/receipt @ rev 10785

geany: fix icon for desktop file (*.desktop use icon in /usr/share/pixmaps, tig pkg was ok before, dont modify it anymore!!!)
author Christophe Lincoln <pankso@slitaz.org>
date Wed Jun 01 14:00:48 2011 +0200 (2011-06-01)
parents 32267b369a16
children e778f0bd40a4
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 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.lirc.org/"
10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 DEPENDS="glibc-base libusb libusb-compat libftdi xorg-libXau libirman \
13 portaudio alsa-lib util-linux-ng-uuid"
14 BUILD_DEPENDS="linux linux-module-headers python libusb-dev libirman-dev \
15 portaudio-dev alsa-lib-dev libusb-compat-dev util-linux-ng-uuid-dev libftdi-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
22 # Up through at least lirc 0.8.5, lirc_gpio doesn't build with kernel 2.6.22+
23 #echo "Disabling build of drivers/lirc_gpio due to kernel incompatibility"
24 #sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.am
25 #sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.in
27 # lirc_parallel is not SMP safe
28 echo "Disabling build of drivers/lirc_parallel due to SMP incompatibility"
29 sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.am
30 sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.in
32 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
33 sed -i "s/uname -r/echo $KERNEL_VERSION-slitaz/g" configure
35 ./configure \
36 --prefix=/usr \
37 --with-x \
38 --with-driver=all \
39 --with-kerneldir=/usr/src/linux \
40 --with-moduledir=/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc \
41 $CONFIGURE_ARGS &&
42 make | sed s/ERROR/Error/ &&
43 make DESTDIR=$DESTDIR install
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr/lib
50 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
51 cp -a $_pkg/usr/bin $fs/usr
52 cp -a $_pkg/usr/sbin $fs/usr
54 cp -a $_pkg/dev $fs
55 cp -a $_pkg/lib $fs
56 }