wok-next annotate v4l-dvb/receipt @ rev 12360

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