wok view v4l-dvb/receipt @ rev 10984

Up: libffi to 3.0.10.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Oct 12 14:02:59 2011 +0000 (2011-10-12)
parents d1768332cee0
children 07f50319a2d6
line source
1 # SliTaz package receipt.
3 PACKAGE="v4l-dvb"
4 VERSION="development"
5 CATEGORY="multimedia"
6 MAINTAINER="jozee@slitaz.org"
7 SHORT_DESC="v4l-dvb development repository"
8 WEB_SITE="http://linuxtv.org/hg/v4l-dvb/"
9 TAGS="webcam"
10 WGET_URL="hg|$WEB_SITE"
12 DEPENDS="linux"
13 BUILD_DEPENDS="python mercurial coreutils-operations module-init-tools"
15 # Rules to configure and make the package.
16 compile_rules() {
17 cd $src
18 patch -p1 < $stuff/414e0bbd99bf
19 patch -p1 < $stuff/d64b014c5253
20 patch -p1 < $stuff/d0a2ff731670
21 sed -i 's/0 | xargs -0n 255 ln -sf --target-directory=\./ | while read file; do ln -sf $file . ; done/' v4l/Makefile
22 grep -rl /sbin/depmod * | xargs sed -i 's|/sbin/depmod|/bin/echo|'
23 grep -rl i2c_new_probed_device * | xargs sed -i 's/i2c_new_probed_device([^)]*/&, NULL/'
25 sed -i 's/\.ioctl/.unlocked_ioctl/' linux/drivers/media/dvb/dvb-core/dmxdev.c \
26 linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c \
27 linux/drivers/media/dvb/dvb-core/dvb_frontend.c \
28 linux/drivers/media/dvb/dvb-core/dvb_net.c \
29 linux/drivers/media/dvb/ttpci/av7110*.c \
30 linux/drivers/media/dvb/firewire/firedtv-ci.c \
31 linux/drivers/media/video/v4l2-dev.c \
32 linux/drivers/media/IR/lirc_dev.c \
33 linux/drivers/media/IR/ir-lirc-codec.c
35 sed -i 's/>ioctl)/>unlocked_ioctl)/' linux/drivers/media/IR/lirc_dev.c
36 sed -i -e 's|/sbin/lsmod|/bin/lsmod|' \
37 -e 's/print | while.*/exec ln -s {} . \\;/' v4l/Makefile
39 IFS="." ; set -- $kvers ; unset IFS
40 cat > v4l/.version << EOF
41 VERSION=$1
42 PATCHLEVEL:=$2
43 SUBLEVEL:=$3
44 KERNELRELEASE:=$kvers-slitaz
45 EOF
46 [ -x /usr/bin/cook ] && SRCDIR="$WOK/linux/source/linux-$kvers"
47 [ -x /usr/bin/tazwok ] && SRCDIR="$WOK/linux/linux-$kvers"
48 make SRCDIR=$SRCDIR CONFIG_MEDIA_TUNER_CUSTOMISE=n CONFIG_RADIO_ADAPTERS=n \
49 CONFIG_RADIO_MIROPCM20=n CONFIG_MANTIS_CORE=n &&
50 make DESTDIR=$DESTDIR install
51 }
53 # Rules to gen a SliTaz package suitable for Tazpkg.
54 genpkg_rules()
55 {
56 EXTRAVERSION=_${kvers}
58 mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/
60 find $_pkg/lib/modules/$kvers-slitaz -name "*.ko" \
61 -exec lzma e '{}' '{}'.gz \; 2> /dev/null
62 find $_pkg/lib/modules/$kvers-slitaz -name "*.ko" -exec rm '{}' \;
63 cp -a $_pkg/lib/modules/$kvers-slitaz/kernel/drivers \
64 $fs/lib/modules/$kvers-slitaz/kernel/
65 }
67 post_install()
68 {
69 echo "Processing post-install commands..."
70 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
71 }
73 post_remove()
74 {
75 echo "Processing post-remove commands..."
76 depmod -a
77 }