wok-current view libv4l/receipt @ rev 15235
h8300-gdb: remove wrong error trigger
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Sep 22 21:01:33 2013 +0200 (2013-09-22) |
parents | 06fdbd8134ff |
children | b62f93de1a4e |
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 cd $src
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 echo "export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so" >> $1/etc/profile
37 }
39 post_remove()
40 {
41 sed -i 's/export LD_PRELOAD=\/usr\/lib\/libv4l\/v4l1compat.so/ /' $1/etc/profile
42 }