wok-stable annotate v4l-dvb/receipt @ rev 9507
Fix libwnck.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Apr 06 07:35:59 2011 +0000 (2011-04-06) |
parents | 756ed4b1daac |
children | d1768332cee0 |
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 DEPENDS="" |
pascal@9387 | 9 BUILD_DEPENDS="python mercurial coreutils-operations module-init-tools" |
jozee@4613 | 10 WEB_SITE="http://linuxtv.org/hg/v4l-dvb/" |
jozee@4613 | 11 TAGS="webcam" |
gokhlayeh@8582 | 12 WGET_URL="mercurial|$WEB_SITE" |
jozee@4613 | 13 |
jozee@4613 | 14 # Rules to configure and make the package. |
jozee@4613 | 15 compile_rules() { |
jozee@4613 | 16 cd $src |
pascal@9387 | 17 patch -p1 < ../stuff/414e0bbd99bf |
pascal@9387 | 18 patch -p1 < ../stuff/d64b014c5253 |
pascal@9387 | 19 patch -p1 < ../stuff/d0a2ff731670 |
pascal@5567 | 20 sed -i 's/0 | xargs -0n 255 ln -sf --target-directory=\./ | while read file; do ln -sf $file . ; done/' v4l/Makefile |
pascal@5570 | 21 grep -rl /sbin/depmod * | xargs sed -i 's|/sbin/depmod|/bin/echo|' |
pascal@7426 | 22 grep -rl i2c_new_probed_device * | xargs sed -i 's/i2c_new_probed_device([^)]*/&, NULL/' |
pascal@7426 | 23 sed -i 's/\.ioctl/.unlocked_ioctl/' linux/drivers/media/dvb/dvb-core/dmxdev.c \ |
pascal@7426 | 24 linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c \ |
pascal@7426 | 25 linux/drivers/media/dvb/dvb-core/dvb_frontend.c \ |
pascal@7426 | 26 linux/drivers/media/dvb/dvb-core/dvb_net.c \ |
pascal@7426 | 27 linux/drivers/media/dvb/ttpci/av7110*.c \ |
pascal@7426 | 28 linux/drivers/media/dvb/firewire/firedtv-ci.c \ |
pascal@7426 | 29 linux/drivers/media/video/v4l2-dev.c \ |
pascal@7426 | 30 linux/drivers/media/IR/lirc_dev.c \ |
pascal@7426 | 31 linux/drivers/media/IR/ir-lirc-codec.c |
pascal@7426 | 32 sed -i 's/>ioctl)/>unlocked_ioctl)/' linux/drivers/media/IR/lirc_dev.c |
pascal@6045 | 33 sed -i -e 's|/sbin/lsmod|/bin/lsmod|' -e 's/print | while.*/exec ln -s {} . \\;/' v4l/Makefile |
jozee@4613 | 34 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
pascal@4618 | 35 IFS="." ; set -- $KERNEL_VERSION ; unset IFS |
pascal@4618 | 36 cat > v4l/.version << EOF |
pascal@4618 | 37 VERSION=$1 |
pascal@4618 | 38 PATCHLEVEL:=$2 |
pascal@4618 | 39 SUBLEVEL:=$3 |
pascal@4618 | 40 KERNELRELEASE:=$KERNEL_VERSION-slitaz |
pascal@4618 | 41 EOF |
pascal@5914 | 42 make SRCDIR="$WOK/linux/linux-$KERNEL_VERSION" CONFIG_MEDIA_TUNER_CUSTOMISE=n CONFIG_RADIO_ADAPTERS=n CONFIG_RADIO_MIROPCM20=n CONFIG_MANTIS_CORE=n && |
jozee@4613 | 43 make DESTDIR="$PWD/_pkg" install |
jozee@4613 | 44 } |
jozee@4613 | 45 |
jozee@4613 | 46 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@4613 | 47 genpkg_rules() |
jozee@4613 | 48 { |
jozee@4613 | 49 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
jozee@4613 | 50 EXTRAVERSION=_$KERNEL_VERSION |
jozee@4613 | 51 |
jozee@4613 | 52 mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/ |
jozee@4613 | 53 |
jozee@4613 | 54 find $_pkg/lib/modules/$KERNEL_VERSION-slitaz -name "*.ko" -exec lzma e '{}' '{}'.gz \; 2> /dev/null |
jozee@4613 | 55 find $_pkg/lib/modules/$KERNEL_VERSION-slitaz -name "*.ko" -exec rm '{}' \; |
jozee@4613 | 56 cp -a $_pkg/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/ |
jozee@4613 | 57 } |
jozee@4613 | 58 |
jozee@4613 | 59 post_install() |
jozee@4613 | 60 { |
jozee@4613 | 61 echo "Processing post-install commands..." |
jozee@4613 | 62 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
jozee@4613 | 63 } |
jozee@4613 | 64 |
jozee@4613 | 65 post_remove() |
jozee@4613 | 66 { |
jozee@4613 | 67 echo "Processing post-remove commands..." |
jozee@4613 | 68 depmod -a |
jozee@4613 | 69 } |