wok-current annotate lirc/receipt @ rev 3942

Add: python-xdg
author Paul Issott <paul@slitaz.org>
date Sat Aug 22 12:21:42 2009 +0000 (2009-08-22)
parents 5c6c9ee5f21e
children 8752c40cc534
rev   line source
rcx@3717 1 # SliTaz package receipt.
rcx@3717 2
rcx@3717 3 PACKAGE="lirc"
rcx@3717 4 VERSION="0.8.5"
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 DEPENDS="glibc-base libusb libusb-compat libftdi"
rcx@3719 9 BUILD_DEPENDS="slitaz-toolchain libftdi-dev libirman-dev"
rcx@3717 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
rcx@3717 11 WEB_SITE="http://www.lirc.org/"
rcx@3717 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
rcx@3717 13
rcx@3717 14 # Rules to configure and make the package.
rcx@3717 15 compile_rules()
rcx@3717 16 {
rcx@3717 17 cd $src
pankso@3843 18
rcx@3717 19 # Up through at least lirc 0.8.5, lirc_gpio doesn't build with kernel 2.6.22+
rcx@3717 20 echo "Disabling build of drivers/lirc_gpio due to kernel incompatibility"
rcx@3717 21 sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.am
rcx@3717 22 sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.in
pankso@3843 23
rcx@3717 24 # lirc_parallel is not SMP safe
rcx@3717 25 echo "Disabling build of drivers/lirc_parallel due to SMP incompatibility"
rcx@3717 26 sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.am
rcx@3717 27 sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.in
pankso@3843 28
rcx@3717 29 ./configure \
rcx@3717 30 --prefix=/usr \
rcx@3717 31 --with-x \
rcx@3717 32 --with-driver=all \
rcx@3717 33 --with-kerneldir=/usr/src/linux \
pankso@3843 34 --with-moduledir=/lib/modules/$(cat $WOK/linux/receipt | grep ^VERSION | \
pankso@3843 35 cut -d "\"" -f 2)/kernel/misc \
rcx@3717 36 $CONFIGURE_ARGS &&
rcx@3717 37 make &&
rcx@3717 38 make DESTDIR=$src/_pkg install
rcx@3717 39 }
rcx@3717 40
rcx@3717 41 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3717 42 genpkg_rules()
rcx@3717 43 {
rcx@3717 44 mkdir -p $fs/usr/lib
rcx@3717 45 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
rcx@3717 46 cp -a $_pkg/usr/bin $fs/usr
rcx@3717 47 cp -a $_pkg/usr/sbin $fs/usr
pankso@3843 48
rcx@3717 49 cp -a $_pkg/dev $fs
rcx@3717 50 cp -a $_pkg/lib $fs
rcx@3717 51 }