wok view libv4l/receipt @ rev 24645

updated hiredis and hiredis-dev (0.14.0 -> 1.0.2)
author Hans-G?nter Theisgen
date Thu Mar 10 09:47:42 2022 +0100 (2022-03-10)
parents 1010cf040970
children bd7510903310
line source
1 # SliTaz package receipt.
3 PACKAGE="libv4l"
4 VERSION="0.8.5"
5 CATEGORY="multimedia"
6 MAINTAINER="jozee@slitaz.org"
7 LICENSE="GPL2"
8 SHORT_DESC="Userspace library for Video 4 Linux (1 and 2)"
9 WEB_SITE="http://freshmeat.net/projects/libv4l"
10 SOURCE="v4l-utils"
11 TARBALL="$SOURCE-$VERSION.tar.bz2"
12 WGET_URL="http://linuxtv.org/downloads/v4l-utils/$TARBALL"
13 TAGS="webcam video"
15 DEPENDS="libjpeg"
16 BUILD_DEPENDS="jpeg-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/*} 2>/dev/null | \
22 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 sed -i 's|jpeg_mem|_&|' lib/libv4lconvert/jpeg_memsrcdest.h
29 make &&
30 make install PREFIX="/usr" DESTDIR="$DESTDIR"
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/lib
37 cp -a $install/usr/lib/*so* $fs/usr/lib/
38 cp -a $install/usr/lib/$PACKAGE $fs/usr/lib
39 }
41 post_install()
42 {
43 lib='/usr/lib/libv4l/v4l1compat.so'
44 if [ -e "$1$lib" ]; then
45 grep -q "^export LD_PRELOAD=$lib$" "$1/etc/profile" ||
46 echo "export LD_PRELOAD=$lib" >> "$1/etc/profile"
47 fi
48 }
50 post_remove()
51 {
52 sed -i '/export LD_PRELOAD=\/usr\/lib\/libv4l\/v4l1compat.so/d' "$1/etc/profile"
53 }