wok-current view libv4l/receipt @ rev 25694
Fix cifs-utils, up grub2-efi-x64 stuff for iso EFI
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sat Mar 30 18:05:22 2024 +0000 (7 months ago) |
parents | a190bcfebf1e |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="libv4l"
4 VERSION="1.22.1"
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="https://web.archive.org/web/20220625040039/http://freshmeat.sourceforge.net/projects/libv4l"
10 SOURCE="v4l-utils"
11 TARBALL="$SOURCE-$VERSION.tar.bz2"
12 WGET_URL="https://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 ./configure \
30 --prefix=/usr \
31 --sysconfdir=/etc \
32 --libdir=/usr/lib \
33 $CONFIGURE_ARGS &&
34 make &&
35 make install PREFIX="/usr" DESTDIR="$DESTDIR"
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/lib
42 cp -a $install/usr/lib/*so* $fs/usr/lib/
43 cp -a $install/usr/lib/$PACKAGE $fs/usr/lib
45 # Ensure remove .la files
46 find $fs -name "*.la" -delete
47 }
49 post_install()
50 {
51 lib='/usr/lib/libv4l/v4l1compat.so'
52 if [ -e "$1$lib" ]; then
53 grep -q "^export LD_PRELOAD=$lib$" "$1/etc/profile" ||
54 echo "export LD_PRELOAD=$lib" >> "$1/etc/profile"
55 fi
56 }
58 post_remove()
59 {
60 sed -i '/export LD_PRELOAD=\/usr\/lib\/libv4l\/v4l1compat.so/d' "$1/etc/profile"
61 }