wok-6.x annotate lirc64/receipt @ rev 25344
updated tahoe-lafs (1.13.0 -> 1.17.1)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Jul 25 07:43:39 2022 +0100 (2022-07-25) |
parents | f1020832b94b |
children |
rev | line source |
---|---|
pascal@20240 | 1 # SliTaz package receipt. |
pascal@20240 | 2 |
pascal@20240 | 3 PACKAGE="lirc64" |
pascal@20240 | 4 SOURCE="lirc" |
pascal@20240 | 5 VERSION="0.9.0" |
pascal@20240 | 6 CATEGORY="utilities" |
pascal@20240 | 7 SHORT_DESC="Enables decoding and sending signals of many commonly used remote controls." |
pascal@20240 | 8 MAINTAINER="rcx@zoominternet.net" |
pascal@20240 | 9 LICENSE="GPL2" |
pascal@20240 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@23469 | 11 WEB_SITE="https://www.lirc.org/" |
pascal@20240 | 12 WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL" |
pascal@20240 | 13 PROVIDE="lirc:linux64" |
pascal@20240 | 14 |
pascal@20240 | 15 DEPENDS="glibc-base libusb libusb-compat libftdi xorg-libXau libirman \ |
pascal@20241 | 16 portaudio alsa-lib util-linux-uuid lirc-bin" |
pascal@20240 | 17 BUILD_DEPENDS="linux64-module-headers python libusb-dev libirman-dev \ |
pascal@20240 | 18 portaudio-dev alsa-lib-dev libusb-compat-dev util-linux-uuid-dev \ |
pascal@20241 | 19 libftdi-dev jack-audio-connection-kit-dev uclibc-cross-compiler-x86_64" |
pascal@20240 | 20 |
pascal@20240 | 21 # Aufs enable chroot |
pascal@20240 | 22 AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8(" |
pascal@20240 | 23 |
pascal@24411 | 24 # What is the latest version available today? |
pascal@24411 | 25 current_version() |
pascal@24411 | 26 { |
pascal@24411 | 27 wget -O - https://sourceforge.net/projects/lirc/files/LIRC/ 2>/dev/null | \ |
pascal@24411 | 28 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24411 | 29 sed '/scope="row/!d;s|.*/LIRC/||;s|/.*||;q' |
pascal@24411 | 30 } |
pascal@24411 | 31 |
pascal@20240 | 32 # Rules to configure and make the package. |
pascal@20240 | 33 compile_rules() |
pascal@20240 | 34 { |
pascal@20275 | 35 sed -i 's|__devexit ||;s|__devinit ||' \ |
pascal@20275 | 36 drivers/lirc_serial/lirc_serial.c drivers/lirc_sir/lirc_sir.c |
pascal@20275 | 37 sed -i 's|#include <asm/system.h>|#define __devexit_p(x) x|' \ |
pascal@20275 | 38 drivers/lirc_serial/lirc_serial.c drivers/lirc_sir/lirc_sir.c |
pascal@20275 | 39 |
pascal@20240 | 40 sed -i '/smp_lock.h/d' drivers/lirc_atiusb/lirc_atiusb.c |
pascal@20265 | 41 sed -i 's|err(|printk(KERN_ERR|' drivers/*/*.c |
pascal@20240 | 42 |
pascal@20240 | 43 # Up through at least lirc 0.8.5, lirc_gpio doesn't build with kernel 2.6.22+ |
pascal@20240 | 44 #echo "Disabling build of drivers/lirc_gpio due to kernel incompatibility" |
pascal@20240 | 45 #sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.am |
pascal@20240 | 46 #sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.in |
pascal@20240 | 47 |
pascal@20240 | 48 # lirc_parallel is not SMP safe |
pascal@20240 | 49 echo "Disabling build of drivers/lirc_parallel due to SMP incompatibility" |
pascal@20240 | 50 sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.am |
pascal@20240 | 51 sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.in |
pascal@20240 | 52 |
pascal@20240 | 53 echo "Disabling build of drivers/lirc_i2c due to kernel 2.6.38+ incompatibility" |
pascal@20240 | 54 sed -i -e "s:lirc_i2c\.o::" drivers/lirc_i2c/Makefile.am |
pascal@20240 | 55 sed -i -e "s:lirc_i2c\.o::" drivers/lirc_i2c/Makefile.in |
pascal@20240 | 56 |
pascal@20240 | 57 echo "Disabling build of drivers/lirc_wpc8769l due to kernel incompatibility" |
pascal@20240 | 58 sed -i -e "s:lirc_wpc8769l\.o::" drivers/lirc_wpc8769l/Makefile.am |
pascal@20240 | 59 sed -i -e "s:lirc_wpc8769l\.o::" drivers/lirc_wpc8769l/Makefile.in |
pascal@20240 | 60 |
pascal@20240 | 61 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
pascal@20241 | 62 sed -i "s/uname -r/echo $KERNEL_VERSION-slitaz64/g" configure |
pascal@20240 | 63 |
pascal@20240 | 64 ./configure \ |
pascal@20240 | 65 --prefix=/usr \ |
pascal@20240 | 66 --with-x \ |
pascal@20240 | 67 --with-driver=all \ |
pascal@20240 | 68 --with-kerneldir=/usr/src/linux \ |
pascal@20240 | 69 --with-moduledir=/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc \ |
pascal@20240 | 70 $CONFIGURE_ARGS && |
pascal@20240 | 71 make 2>&1 | sed 's/ERROR/Error/;/lirc_dev\/Module/d' && |
pascal@20240 | 72 make DESTDIR=$DESTDIR install 2>&1 | sed '/depmod:/d' |
pascal@20240 | 73 } |
pascal@20240 | 74 |
pascal@20240 | 75 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20240 | 76 genpkg_rules() |
pascal@20240 | 77 { |
pascal@20240 | 78 cp -a $install/dev $fs |
pascal@20240 | 79 cp -a $install/lib $fs |
pascal@20240 | 80 } |
pascal@20240 | 81 |
pascal@20240 | 82 # Post install/remove commands for Tazpkg. |
pascal@20240 | 83 post_install() |
pascal@20240 | 84 { |
pascal@20240 | 85 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64 |
pascal@20240 | 86 } |
pascal@20240 | 87 |
pascal@20240 | 88 post_remove() |
pascal@20240 | 89 { |
pascal@20240 | 90 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64 |
pascal@20240 | 91 } |