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