wok-6.x view libv4l/receipt @ rev 22232
updated xorg-libXxf86dga and xorg-libXxf86dga-dev (1.1.4 -> 1.1.5)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Nov 12 08:30:43 2019 +0100 (2019-11-12) |
parents | b62f93de1a4e |
children | ede1d184d5c5 |
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 # Rules to configure and make the package.
19 compile_rules()
20 {
21 sed -i 's|jpeg_mem|_&|' lib/libv4lconvert/jpeg_memsrcdest.h
22 make &&
23 make install PREFIX="/usr" DESTDIR="$DESTDIR"
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/lib
30 cp -a $install/usr/lib/*so* $fs/usr/lib/
31 cp -a $install/usr/lib/$PACKAGE $fs/usr/lib
32 }
34 post_install()
35 {
36 lib='/usr/lib/libv4l/v4l1compat.so'
37 if [ -e "$1$lib" ]; then
38 grep -q "^export LD_PRELOAD=$lib$" "$1/etc/profile" ||
39 echo "export LD_PRELOAD=$lib" >> "$1/etc/profile"
40 fi
41 }
43 post_remove()
44 {
45 sed -i '/export LD_PRELOAD=\/usr\/lib\/libv4l\/v4l1compat.so/d' "$1/etc/profile"
46 }