wok-current annotate libv4l/receipt @ rev 25734
Up rsync (CVE-2024-12084-88, CVE-2024-12747), xorg-server CVE-2024-9632, expat CVE-2024-50602, deps for webkit2gtk, up mesa 21.3.8, rework xorg proto, up get-LibreOffice/get-LibreOffice for x86_64
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Jan 16 13:14:32 2025 +0000 (3 days ago) |
parents | 3ad63c8fc2f9 |
children |
rev | line source |
---|---|
jozee@4488 | 1 # SliTaz package receipt. |
jozee@4488 | 2 |
jozee@4488 | 3 PACKAGE="libv4l" |
shann@25634 | 4 VERSION="1.22.1" |
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)" |
pascal@25362 | 9 WEB_SITE="https://web.archive.org/web/20220625040039/http://freshmeat.sourceforge.net/projects/libv4l" |
slaxemulator@6498 | 10 SOURCE="v4l-utils" |
al@18472 | 11 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pascal@24972 | 12 WGET_URL="https://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 |
shann@25728 | 18 HOST_ARCH="i486 x86_64" |
shann@25728 | 19 |
pascal@24447 | 20 # What is the latest version available today? |
pascal@24447 | 21 current_version() |
pascal@24447 | 22 { |
pascal@24447 | 23 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24447 | 24 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24447 | 25 } |
pascal@24447 | 26 |
jozee@4488 | 27 # Rules to configure and make the package. |
slaxemulator@12329 | 28 compile_rules() |
slaxemulator@12329 | 29 { |
pascal@21119 | 30 sed -i 's|jpeg_mem|_&|' lib/libv4lconvert/jpeg_memsrcdest.h |
shann@25634 | 31 ./configure \ |
shann@25634 | 32 --prefix=/usr \ |
shann@25634 | 33 --sysconfdir=/etc \ |
shann@25634 | 34 --libdir=/usr/lib \ |
shann@25634 | 35 $CONFIGURE_ARGS && |
slaxemulator@12329 | 36 make && |
al@18472 | 37 make install PREFIX="/usr" DESTDIR="$DESTDIR" |
jozee@4488 | 38 } |
al@18472 | 39 |
jozee@4488 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@4488 | 41 genpkg_rules() |
jozee@4488 | 42 { |
jozee@4488 | 43 mkdir -p $fs/usr/lib |
pascal@14718 | 44 cp -a $install/usr/lib/*so* $fs/usr/lib/ |
pascal@14718 | 45 cp -a $install/usr/lib/$PACKAGE $fs/usr/lib |
shann@25634 | 46 |
shann@25634 | 47 # Ensure remove .la files |
shann@25634 | 48 find $fs -name "*.la" -delete |
jozee@4488 | 49 } |
jozee@4609 | 50 |
jozee@4609 | 51 post_install() |
jozee@4609 | 52 { |
al@18472 | 53 lib='/usr/lib/libv4l/v4l1compat.so' |
al@18472 | 54 if [ -e "$1$lib" ]; then |
al@18472 | 55 grep -q "^export LD_PRELOAD=$lib$" "$1/etc/profile" || |
al@18472 | 56 echo "export LD_PRELOAD=$lib" >> "$1/etc/profile" |
al@18472 | 57 fi |
jozee@4609 | 58 } |
jozee@4612 | 59 |
jozee@4612 | 60 post_remove() |
jozee@4612 | 61 { |
al@18472 | 62 sed -i '/export LD_PRELOAD=\/usr\/lib\/libv4l\/v4l1compat.so/d' "$1/etc/profile" |
jozee@4612 | 63 } |