wok-6.x annotate lirc/receipt @ rev 25465
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 01 08:33:11 2022 +0000 (2022-10-01) |
parents | f1020832b94b |
children |
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" |
pascal@15000 | 8 LICENSE="GPL2" |
rcx@3717 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@23469 | 10 WEB_SITE="https://www.lirc.org/" |
rcx@3717 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
rcx@3717 | 12 |
pankso@10597 | 13 DEPENDS="glibc-base libusb libusb-compat libftdi xorg-libXau libirman \ |
pascal@20241 | 14 portaudio alsa-lib util-linux-uuid lirc-bin" |
pankso@10597 | 15 BUILD_DEPENDS="linux linux-module-headers python libusb-dev libirman-dev \ |
pankso@12481 | 16 portaudio-dev alsa-lib-dev libusb-compat-dev util-linux-uuid-dev \ |
pascal@11529 | 17 libftdi-dev jack-audio-connection-kit-dev" |
pankso@10597 | 18 |
pascal@24411 | 19 # What is the latest version available today? |
pascal@24411 | 20 current_version() |
pascal@24411 | 21 { |
pascal@24411 | 22 wget -O - https://sourceforge.net/projects/lirc/files/LIRC/ 2>/dev/null | \ |
pascal@24411 | 23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24411 | 24 sed '/scope="row/!d;s|.*/LIRC/||;s|/.*||;q' |
pascal@24411 | 25 } |
pascal@24411 | 26 |
rcx@3717 | 27 # Rules to configure and make the package. |
rcx@3717 | 28 compile_rules() |
rcx@3717 | 29 { |
pascal@20275 | 30 sed -i 's|__devexit ||;s|__devinit ||' \ |
pascal@20275 | 31 drivers/lirc_serial/lirc_serial.c drivers/lirc_sir/lirc_sir.c |
pascal@20275 | 32 sed -i 's|#include <asm/system.h>|#define __devexit_p(x) x|' \ |
pascal@20275 | 33 drivers/lirc_serial/lirc_serial.c drivers/lirc_sir/lirc_sir.c |
pascal@20275 | 34 |
pascal@14243 | 35 sed -i '/smp_lock.h/d' drivers/lirc_atiusb/lirc_atiusb.c |
pascal@20265 | 36 sed -i 's|err(|printk(KERN_ERR|' drivers/*/*.c |
pankso@3843 | 37 |
rcx@3717 | 38 # Up through at least lirc 0.8.5, lirc_gpio doesn't build with kernel 2.6.22+ |
rcx@5996 | 39 #echo "Disabling build of drivers/lirc_gpio due to kernel incompatibility" |
rcx@5996 | 40 #sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.am |
rcx@5996 | 41 #sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.in |
pankso@3843 | 42 |
rcx@3717 | 43 # lirc_parallel is not SMP safe |
rcx@3717 | 44 echo "Disabling build of drivers/lirc_parallel due to SMP incompatibility" |
rcx@3717 | 45 sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.am |
rcx@3717 | 46 sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.in |
pankso@3843 | 47 |
pascal@14243 | 48 echo "Disabling build of drivers/lirc_i2c due to kernel 2.6.38+ incompatibility" |
pascal@14243 | 49 sed -i -e "s:lirc_i2c\.o::" drivers/lirc_i2c/Makefile.am |
pascal@14243 | 50 sed -i -e "s:lirc_i2c\.o::" drivers/lirc_i2c/Makefile.in |
pascal@14243 | 51 |
pascal@14243 | 52 echo "Disabling build of drivers/lirc_wpc8769l due to kernel incompatibility" |
pascal@14243 | 53 sed -i -e "s:lirc_wpc8769l\.o::" drivers/lirc_wpc8769l/Makefile.am |
pascal@14243 | 54 sed -i -e "s:lirc_wpc8769l\.o::" drivers/lirc_wpc8769l/Makefile.in |
pascal@14243 | 55 |
pascal@6127 | 56 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
pascal@6127 | 57 sed -i "s/uname -r/echo $KERNEL_VERSION-slitaz/g" configure |
pascal@6127 | 58 |
rcx@3717 | 59 ./configure \ |
rcx@3717 | 60 --prefix=/usr \ |
rcx@3717 | 61 --with-x \ |
rcx@3717 | 62 --with-driver=all \ |
rcx@3717 | 63 --with-kerneldir=/usr/src/linux \ |
slaxemulator@6703 | 64 --with-moduledir=/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc \ |
rcx@3717 | 65 $CONFIGURE_ARGS && |
pascal@14243 | 66 make 2>&1 | sed 's/ERROR/Error/;/lirc_dev\/Module/d' && |
pascal@14243 | 67 make DESTDIR=$DESTDIR install 2>&1 | sed '/depmod:/d' |
rcx@3717 | 68 } |
rcx@3717 | 69 |
rcx@3717 | 70 # Rules to gen a SliTaz package suitable for Tazpkg. |
rcx@3717 | 71 genpkg_rules() |
rcx@3717 | 72 { |
pascal@15000 | 73 cp -a $install/dev $fs |
pascal@15000 | 74 cp -a $install/lib $fs |
rcx@3717 | 75 } |
pascal@20240 | 76 |
pascal@20240 | 77 # Post install/remove commands for Tazpkg. |
pascal@20240 | 78 post_install() |
pascal@20240 | 79 { |
pascal@20240 | 80 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
pascal@20240 | 81 } |
pascal@20240 | 82 |
pascal@20240 | 83 post_remove() |
pascal@20240 | 84 { |
pascal@20240 | 85 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
pascal@20240 | 86 } |