wok annotate libv4l/receipt @ rev 23790
updated youtube-dl (2019.11.05 -> 2020.05.08)
author | Hans-G?nter Theisgen |
---|---|
date | Fri May 22 07:41:14 2020 +0100 (2020-05-22) |
parents | b62f93de1a4e |
children | ede1d184d5c5 |
rev | line source |
---|---|
jozee@4488 | 1 # SliTaz package receipt. |
jozee@4488 | 2 |
jozee@4488 | 3 PACKAGE="libv4l" |
slaxemulator@12329 | 4 VERSION="0.8.5" |
jozee@4488 | 5 CATEGORY="multimedia" |
jozee@4488 | 6 MAINTAINER="jozee@slitaz.org" |
pascal@14718 | 7 LICENSE="GPL2" |
jozee@4488 | 8 SHORT_DESC="Userspace library for Video 4 Linux (1 and 2)" |
slaxemulator@6498 | 9 WEB_SITE="http://freshmeat.net/projects/libv4l" |
slaxemulator@6498 | 10 SOURCE="v4l-utils" |
al@18472 | 11 TARBALL="$SOURCE-$VERSION.tar.bz2" |
slaxemulator@6498 | 12 WGET_URL="http://linuxtv.org/downloads/v4l-utils/$TARBALL" |
jozee@4488 | 13 TAGS="webcam video" |
jozee@4488 | 14 |
slaxemulator@12340 | 15 DEPENDS="libjpeg" |
slaxemulator@12340 | 16 BUILD_DEPENDS="jpeg-dev" |
slaxemulator@12340 | 17 |
jozee@4488 | 18 # Rules to configure and make the package. |
slaxemulator@12329 | 19 compile_rules() |
slaxemulator@12329 | 20 { |
pascal@21119 | 21 sed -i 's|jpeg_mem|_&|' lib/libv4lconvert/jpeg_memsrcdest.h |
slaxemulator@12329 | 22 make && |
al@18472 | 23 make install PREFIX="/usr" DESTDIR="$DESTDIR" |
jozee@4488 | 24 } |
al@18472 | 25 |
jozee@4488 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@4488 | 27 genpkg_rules() |
jozee@4488 | 28 { |
jozee@4488 | 29 mkdir -p $fs/usr/lib |
pascal@14718 | 30 cp -a $install/usr/lib/*so* $fs/usr/lib/ |
pascal@14718 | 31 cp -a $install/usr/lib/$PACKAGE $fs/usr/lib |
jozee@4488 | 32 } |
jozee@4609 | 33 |
jozee@4609 | 34 post_install() |
jozee@4609 | 35 { |
al@18472 | 36 lib='/usr/lib/libv4l/v4l1compat.so' |
al@18472 | 37 if [ -e "$1$lib" ]; then |
al@18472 | 38 grep -q "^export LD_PRELOAD=$lib$" "$1/etc/profile" || |
al@18472 | 39 echo "export LD_PRELOAD=$lib" >> "$1/etc/profile" |
al@18472 | 40 fi |
jozee@4609 | 41 } |
jozee@4612 | 42 |
jozee@4612 | 43 post_remove() |
jozee@4612 | 44 { |
al@18472 | 45 sed -i '/export LD_PRELOAD=\/usr\/lib\/libv4l\/v4l1compat.so/d' "$1/etc/profile" |
jozee@4612 | 46 } |