wok view lirc/receipt @ rev 24934

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