wok-6.x annotate v4l-dvb/receipt @ rev 8040
Fix: libxfce4ui need intltool to compile
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Thu Jan 20 16:20:00 2011 +0100 (2011-01-20) |
parents | c155fb472602 |
children | 756ed4b1daac |
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="" |
jozee@4613 | 9 BUILD_DEPENDS="python mercurial coreutils-operations" |
jozee@4613 | 10 WEB_SITE="http://linuxtv.org/hg/v4l-dvb/" |
jozee@4613 | 11 TAGS="webcam" |
jozee@4613 | 12 |
jozee@4613 | 13 # Rules to configure and make the package. |
jozee@4613 | 14 compile_rules() { |
pascal@5559 | 15 TARBALL=$SOURCES_REPOSITORY/$PACKAGE-hg-$VERSION.tar.gz |
pascal@5559 | 16 if [ -d $PACKAGE-$VERSION ]; then |
pascal@5559 | 17 true |
pascal@5559 | 18 elif [ -f $TARBALL ]; then |
pascal@5559 | 19 tar xzf $TARBALL |
pascal@5559 | 20 else |
pascal@5563 | 21 hg clone $WEB_SITE $PACKAGE-$VERSION && |
pascal@5559 | 22 tar czf $TARBALL $PACKAGE-$VERSION |
pascal@5559 | 23 fi |
jozee@4613 | 24 cd $src |
pascal@5567 | 25 sed -i 's/0 | xargs -0n 255 ln -sf --target-directory=\./ | while read file; do ln -sf $file . ; done/' v4l/Makefile |
pascal@5570 | 26 grep -rl /sbin/depmod * | xargs sed -i 's|/sbin/depmod|/bin/echo|' |
pascal@7426 | 27 grep -rl i2c_new_probed_device * | xargs sed -i 's/i2c_new_probed_device([^)]*/&, NULL/' |
pascal@7426 | 28 sed -i 's/\.ioctl/.unlocked_ioctl/' linux/drivers/media/dvb/dvb-core/dmxdev.c \ |
pascal@7426 | 29 linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c \ |
pascal@7426 | 30 linux/drivers/media/dvb/dvb-core/dvb_frontend.c \ |
pascal@7426 | 31 linux/drivers/media/dvb/dvb-core/dvb_net.c \ |
pascal@7426 | 32 linux/drivers/media/dvb/ttpci/av7110*.c \ |
pascal@7426 | 33 linux/drivers/media/dvb/firewire/firedtv-ci.c \ |
pascal@7426 | 34 linux/drivers/media/video/v4l2-dev.c \ |
pascal@7426 | 35 linux/drivers/media/IR/lirc_dev.c \ |
pascal@7426 | 36 linux/drivers/media/IR/ir-lirc-codec.c |
pascal@7426 | 37 sed -i 's/>ioctl)/>unlocked_ioctl)/' linux/drivers/media/IR/lirc_dev.c |
pascal@6045 | 38 sed -i -e 's|/sbin/lsmod|/bin/lsmod|' -e 's/print | while.*/exec ln -s {} . \\;/' v4l/Makefile |
jozee@4613 | 39 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
pascal@4618 | 40 IFS="." ; set -- $KERNEL_VERSION ; unset IFS |
pascal@4618 | 41 cat > v4l/.version << EOF |
pascal@4618 | 42 VERSION=$1 |
pascal@4618 | 43 PATCHLEVEL:=$2 |
pascal@4618 | 44 SUBLEVEL:=$3 |
pascal@4618 | 45 KERNELRELEASE:=$KERNEL_VERSION-slitaz |
pascal@4618 | 46 EOF |
pascal@5914 | 47 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 | 48 make DESTDIR="$PWD/_pkg" install |
jozee@4613 | 49 } |
jozee@4613 | 50 |
jozee@4613 | 51 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@4613 | 52 genpkg_rules() |
jozee@4613 | 53 { |
jozee@4613 | 54 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
jozee@4613 | 55 EXTRAVERSION=_$KERNEL_VERSION |
jozee@4613 | 56 |
jozee@4613 | 57 mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/ |
jozee@4613 | 58 |
jozee@4613 | 59 find $_pkg/lib/modules/$KERNEL_VERSION-slitaz -name "*.ko" -exec lzma e '{}' '{}'.gz \; 2> /dev/null |
jozee@4613 | 60 find $_pkg/lib/modules/$KERNEL_VERSION-slitaz -name "*.ko" -exec rm '{}' \; |
jozee@4613 | 61 cp -a $_pkg/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/ |
jozee@4613 | 62 } |
jozee@4613 | 63 |
jozee@4613 | 64 post_install() |
jozee@4613 | 65 { |
jozee@4613 | 66 echo "Processing post-install commands..." |
jozee@4613 | 67 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
jozee@4613 | 68 } |
jozee@4613 | 69 |
jozee@4613 | 70 post_remove() |
jozee@4613 | 71 { |
jozee@4613 | 72 echo "Processing post-remove commands..." |
jozee@4613 | 73 depmod -a |
jozee@4613 | 74 } |