wok-6.x view v4l-dvb/receipt @ rev 8582
imported patch get/v4l-dvb
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sun Feb 13 22:57:57 2011 +0100 (2011-02-13) |
parents | e14a2085bbee |
children | ac317c95f39c |
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 DEPENDS=""
9 BUILD_DEPENDS="python mercurial coreutils-operations"
10 WEB_SITE="http://linuxtv.org/hg/v4l-dvb/"
11 TAGS="webcam"
12 WGET_URL="mercurial|$WEB_SITE"
14 # Rules to configure and make the package.
15 compile_rules() {
16 cd $src
17 sed -i 's/0 | xargs -0n 255 ln -sf --target-directory=\./ | while read file; do ln -sf $file . ; done/' v4l/Makefile
18 grep -rl /sbin/depmod * | xargs sed -i 's|/sbin/depmod|/bin/echo|'
19 grep -rl i2c_new_probed_device * | xargs sed -i 's/i2c_new_probed_device([^)]*/&, NULL/'
20 sed -i 's/\.ioctl/.unlocked_ioctl/' linux/drivers/media/dvb/dvb-core/dmxdev.c \
21 linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c \
22 linux/drivers/media/dvb/dvb-core/dvb_frontend.c \
23 linux/drivers/media/dvb/dvb-core/dvb_net.c \
24 linux/drivers/media/dvb/ttpci/av7110*.c \
25 linux/drivers/media/dvb/firewire/firedtv-ci.c \
26 linux/drivers/media/video/v4l2-dev.c \
27 linux/drivers/media/IR/lirc_dev.c \
28 linux/drivers/media/IR/ir-lirc-codec.c
29 sed -i 's/>ioctl)/>unlocked_ioctl)/' linux/drivers/media/IR/lirc_dev.c
30 sed -i -e 's|/sbin/lsmod|/bin/lsmod|' -e 's/print | while.*/exec ln -s {} . \\;/' v4l/Makefile
31 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
32 IFS="." ; set -- $KERNEL_VERSION ; unset IFS
33 cat > v4l/.version << EOF
34 VERSION=$1
35 PATCHLEVEL:=$2
36 SUBLEVEL:=$3
37 KERNELRELEASE:=$KERNEL_VERSION-slitaz
38 EOF
39 make SRCDIR="$WOK/linux/linux-$KERNEL_VERSION" CONFIG_MEDIA_TUNER_CUSTOMISE=n CONFIG_RADIO_ADAPTERS=n CONFIG_RADIO_MIROPCM20=n CONFIG_MANTIS_CORE=n &&
40 make DESTDIR="$PWD/_pkg" install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
47 EXTRAVERSION=_$KERNEL_VERSION
49 mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/
51 find $_pkg/lib/modules/$KERNEL_VERSION-slitaz -name "*.ko" -exec lzma e '{}' '{}'.gz \; 2> /dev/null
52 find $_pkg/lib/modules/$KERNEL_VERSION-slitaz -name "*.ko" -exec rm '{}' \;
53 cp -a $_pkg/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/
54 }
56 post_install()
57 {
58 echo "Processing post-install commands..."
59 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
60 }
62 post_remove()
63 {
64 echo "Processing post-remove commands..."
65 depmod -a
66 }