wok view libv4l/receipt @ rev 12329

Up: libv4l to 0.8.5.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Apr 19 08:29:48 2012 +0000 (2012-04-19)
parents be13f25e790b
children 06fdbd8134ff
line source
1 # SliTaz package receipt.
3 PACKAGE="libv4l"
4 VERSION="0.8.5"
5 CATEGORY="multimedia"
6 MAINTAINER="jozee@slitaz.org"
7 SHORT_DESC="Userspace library for Video 4 Linux (1 and 2)"
8 DEPENDS="glibc-base"
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 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 make &&
20 make install PREFIX="/usr" DESTDIR="$DESTDIR"
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/lib
27 cp -a $_pkg/usr/lib/*so* $fs/usr/lib/
28 cp -a $_pkg/usr/lib/$PACKAGE $fs/usr/lib
29 }
31 post_install()
32 {
33 echo "export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so" >> $1/etc/profile
34 }
36 post_remove()
37 {
38 sed -i 's/export LD_PRELOAD=\/usr\/lib\/libv4l\/v4l1compat.so/ /' $1/etc/profile
39 }