wok-stable diff v4l-dvb/receipt @ rev 11546
Add blogotext form wok-undigest
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 25 15:18:50 2011 +0100 (2011-12-25) |
parents | d1768332cee0 |
children |
line diff
1.1 --- a/v4l-dvb/receipt Sun May 08 09:01:58 2011 +0000 1.2 +++ b/v4l-dvb/receipt Sun Dec 25 15:18:50 2011 +0100 1.3 @@ -5,55 +5,63 @@ 1.4 CATEGORY="multimedia" 1.5 MAINTAINER="jozee@slitaz.org" 1.6 SHORT_DESC="v4l-dvb development repository" 1.7 -DEPENDS="" 1.8 -BUILD_DEPENDS="python mercurial coreutils-operations module-init-tools" 1.9 WEB_SITE="http://linuxtv.org/hg/v4l-dvb/" 1.10 TAGS="webcam" 1.11 -WGET_URL="mercurial|$WEB_SITE" 1.12 +WGET_URL="hg|$WEB_SITE" 1.13 + 1.14 +DEPENDS="linux" 1.15 +BUILD_DEPENDS="python mercurial coreutils-operations module-init-tools" 1.16 1.17 # Rules to configure and make the package. 1.18 compile_rules() { 1.19 - cd $src 1.20 - patch -p1 < $stuff/414e0bbd99bf 1.21 - patch -p1 < $stuff/d64b014c5253 1.22 - patch -p1 < $stuff/d0a2ff731670 1.23 - sed -i 's/0 | xargs -0n 255 ln -sf --target-directory=\./ | while read file; do ln -sf $file . ; done/' v4l/Makefile 1.24 - grep -rl /sbin/depmod * | xargs sed -i 's|/sbin/depmod|/bin/echo|' 1.25 - grep -rl i2c_new_probed_device * | xargs sed -i 's/i2c_new_probed_device([^)]*/&, NULL/' 1.26 - sed -i 's/\.ioctl/.unlocked_ioctl/' linux/drivers/media/dvb/dvb-core/dmxdev.c \ 1.27 - linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c \ 1.28 - linux/drivers/media/dvb/dvb-core/dvb_frontend.c \ 1.29 - linux/drivers/media/dvb/dvb-core/dvb_net.c \ 1.30 - linux/drivers/media/dvb/ttpci/av7110*.c \ 1.31 - linux/drivers/media/dvb/firewire/firedtv-ci.c \ 1.32 - linux/drivers/media/video/v4l2-dev.c \ 1.33 - linux/drivers/media/IR/lirc_dev.c \ 1.34 - linux/drivers/media/IR/ir-lirc-codec.c 1.35 - sed -i 's/>ioctl)/>unlocked_ioctl)/' linux/drivers/media/IR/lirc_dev.c 1.36 - sed -i -e 's|/sbin/lsmod|/bin/lsmod|' -e 's/print | while.*/exec ln -s {} . \\;/' v4l/Makefile 1.37 - KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 1.38 - IFS="." ; set -- $KERNEL_VERSION ; unset IFS 1.39 - cat > v4l/.version << EOF 1.40 + cd $src 1.41 + patch -p1 < $stuff/414e0bbd99bf 1.42 + patch -p1 < $stuff/d64b014c5253 1.43 + patch -p1 < $stuff/d0a2ff731670 1.44 + sed -i 's/0 | xargs -0n 255 ln -sf --target-directory=\./ | while read file; do ln -sf $file . ; done/' v4l/Makefile 1.45 + grep -rl /sbin/depmod * | xargs sed -i 's|/sbin/depmod|/bin/echo|' 1.46 + grep -rl i2c_new_probed_device * | xargs sed -i 's/i2c_new_probed_device([^)]*/&, NULL/' 1.47 + 1.48 + sed -i 's/\.ioctl/.unlocked_ioctl/' linux/drivers/media/dvb/dvb-core/dmxdev.c \ 1.49 + linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c \ 1.50 + linux/drivers/media/dvb/dvb-core/dvb_frontend.c \ 1.51 + linux/drivers/media/dvb/dvb-core/dvb_net.c \ 1.52 + linux/drivers/media/dvb/ttpci/av7110*.c \ 1.53 + linux/drivers/media/dvb/firewire/firedtv-ci.c \ 1.54 + linux/drivers/media/video/v4l2-dev.c \ 1.55 + linux/drivers/media/IR/lirc_dev.c \ 1.56 + linux/drivers/media/IR/ir-lirc-codec.c 1.57 + 1.58 + sed -i 's/>ioctl)/>unlocked_ioctl)/' linux/drivers/media/IR/lirc_dev.c 1.59 + sed -i -e 's|/sbin/lsmod|/bin/lsmod|' \ 1.60 + -e 's/print | while.*/exec ln -s {} . \\;/' v4l/Makefile 1.61 + 1.62 + IFS="." ; set -- $kvers ; unset IFS 1.63 + cat > v4l/.version << EOF 1.64 VERSION=$1 1.65 PATCHLEVEL:=$2 1.66 SUBLEVEL:=$3 1.67 -KERNELRELEASE:=$KERNEL_VERSION-slitaz 1.68 +KERNELRELEASE:=$kvers-slitaz 1.69 EOF 1.70 - make SRCDIR="$WOK/linux/linux-$KERNEL_VERSION" CONFIG_MEDIA_TUNER_CUSTOMISE=n CONFIG_RADIO_ADAPTERS=n CONFIG_RADIO_MIROPCM20=n CONFIG_MANTIS_CORE=n && 1.71 - make DESTDIR="$PWD/_pkg" install 1.72 + [ -x /usr/bin/cook ] && SRCDIR="$WOK/linux/source/linux-$kvers" 1.73 + [ -x /usr/bin/tazwok ] && SRCDIR="$WOK/linux/linux-$kvers" 1.74 + make SRCDIR=$SRCDIR CONFIG_MEDIA_TUNER_CUSTOMISE=n CONFIG_RADIO_ADAPTERS=n \ 1.75 + CONFIG_RADIO_MIROPCM20=n CONFIG_MANTIS_CORE=n && 1.76 + make DESTDIR=$DESTDIR install 1.77 } 1.78 1.79 # Rules to gen a SliTaz package suitable for Tazpkg. 1.80 genpkg_rules() 1.81 { 1.82 - KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 1.83 - EXTRAVERSION=_$KERNEL_VERSION 1.84 + EXTRAVERSION=_${kvers} 1.85 1.86 - mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/ 1.87 + mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/ 1.88 1.89 - find $_pkg/lib/modules/$KERNEL_VERSION-slitaz -name "*.ko" -exec lzma e '{}' '{}'.gz \; 2> /dev/null 1.90 - find $_pkg/lib/modules/$KERNEL_VERSION-slitaz -name "*.ko" -exec rm '{}' \; 1.91 - cp -a $_pkg/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/ 1.92 + find $_pkg/lib/modules/$kvers-slitaz -name "*.ko" \ 1.93 + -exec lzma e '{}' '{}'.gz \; 2> /dev/null 1.94 + find $_pkg/lib/modules/$kvers-slitaz -name "*.ko" -exec rm '{}' \; 1.95 + cp -a $_pkg/lib/modules/$kvers-slitaz/kernel/drivers \ 1.96 + $fs/lib/modules/$kvers-slitaz/kernel/ 1.97 } 1.98 1.99 post_install()