wok-current view v4l-dvb/receipt @ rev 14274
njconnect - source file is now fixed on upstream level ;-)
author | Pawel P. <xj@wp.pl> |
---|---|
date | Fri Apr 05 12:14:08 2013 +0000 (2013-04-05) |
parents | 07f50319a2d6 |
children | 16c0bac038bf |
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 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 TAGS="webcam"
11 WGET_URL="hg|$WEB_SITE"
13 DEPENDS="linux"
14 BUILD_DEPENDS="python mercurial coreutils-operations module-init-tools"
16 # Rules to configure and make the package.
17 compile_rules() {
18 cd $src
19 patch -p1 < $stuff/414e0bbd99bf
20 patch -p1 < $stuff/d64b014c5253
21 patch -p1 < $stuff/d0a2ff731670
22 sed -i 's/0 | xargs -0n 255 ln -sf --target-directory=\./ | while read file; do ln -sf $file . ; done/' v4l/Makefile
23 grep -rl /sbin/depmod * | xargs sed -i 's|/sbin/depmod|/bin/echo|'
24 grep -rl i2c_new_probed_device * | xargs sed -i 's/i2c_new_probed_device([^)]*/&, NULL/'
26 sed -i 's/\.ioctl/.unlocked_ioctl/' linux/drivers/media/dvb/dvb-core/dmxdev.c \
27 linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c \
28 linux/drivers/media/dvb/dvb-core/dvb_frontend.c \
29 linux/drivers/media/dvb/dvb-core/dvb_net.c \
30 linux/drivers/media/dvb/ttpci/av7110*.c \
31 linux/drivers/media/dvb/firewire/firedtv-ci.c \
32 linux/drivers/media/video/v4l2-dev.c \
33 linux/drivers/media/IR/lirc_dev.c \
34 linux/drivers/media/IR/ir-lirc-codec.c
36 sed -i 's/>ioctl)/>unlocked_ioctl)/' linux/drivers/media/IR/lirc_dev.c
37 sed -i -e 's|/sbin/lsmod|/bin/lsmod|' \
38 -e 's/print | while.*/exec ln -s {} . \\;/' v4l/Makefile
40 IFS="." ; set -- $kvers ; unset IFS
41 cat > v4l/.version << EOF
42 VERSION=$1
43 PATCHLEVEL:=$2
44 SUBLEVEL:=$3
45 KERNELRELEASE:=$kvers-slitaz
46 EOF
47 [ -x /usr/bin/cook ] && SRCDIR="$WOK/linux/source/linux-$kvers"
48 [ -x /usr/bin/tazwok ] && SRCDIR="$WOK/linux/linux-$kvers"
49 make SRCDIR=$SRCDIR CONFIG_MEDIA_TUNER_CUSTOMISE=n CONFIG_RADIO_ADAPTERS=n \
50 CONFIG_RADIO_MIROPCM20=n CONFIG_MANTIS_CORE=n &&
51 make DESTDIR=$DESTDIR install
52 }
54 # Rules to gen a SliTaz package suitable for Tazpkg.
55 genpkg_rules()
56 {
57 EXTRAVERSION=_${kvers%.*}
59 mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/
61 find $_pkg/lib/modules/$kvers-slitaz -name "*.ko" \
62 -exec lzma e '{}' '{}'.gz \; 2> /dev/null
63 find $_pkg/lib/modules/$kvers-slitaz -name "*.ko" -exec rm '{}' \;
64 cp -a $_pkg/lib/modules/$kvers-slitaz/kernel/drivers \
65 $fs/lib/modules/$kvers-slitaz/kernel/
66 }
68 post_install()
69 {
70 echo "Processing post-install commands..."
71 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
72 }
74 post_remove()
75 {
76 echo "Processing post-remove commands..."
77 depmod -a
78 }