wok-6.x view libv4l/receipt @ rev 19274
Up cookutils (809)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Jul 05 01:51:14 2016 +0300 (2016-07-05) |
parents | 6eff489aa802 |
children | 1010cf040970 |
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 make &&
22 make install PREFIX="/usr" DESTDIR="$DESTDIR"
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/lib
29 cp -a $install/usr/lib/*so* $fs/usr/lib/
30 cp -a $install/usr/lib/$PACKAGE $fs/usr/lib
31 }
33 post_install()
34 {
35 lib='/usr/lib/libv4l/v4l1compat.so'
36 if [ -e "$1$lib" ]; then
37 grep -q "^export LD_PRELOAD=$lib$" "$1/etc/profile" ||
38 echo "export LD_PRELOAD=$lib" >> "$1/etc/profile"
39 fi
40 }
42 post_remove()
43 {
44 sed -i '/export LD_PRELOAD=\/usr\/lib\/libv4l\/v4l1compat.so/d' "$1/etc/profile"
45 }