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