wok-stable view libv4l/receipt @ rev 8524

.jar is now handled by tazwok
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sun Feb 13 03:22:30 2011 +0100 (2011-02-13)
parents c7adce465b63
children be13f25e790b
line source
1 # SliTaz package receipt.
3 PACKAGE="libv4l"
4 VERSION="0.8.1"
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.
17 compile_rules() {
18 src=$WOK/$PACKAGE/$SOURCE-$VERSION
19 cd $src
20 make &&
21 make install PREFIX="/usr" DESTDIR="${PWD}/_pkg"
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 _pkg=$WOK/$PACKAGE/$SOURCE-$VERSION/_pkg
28 mkdir -p $fs/usr/lib
29 cp -a $_pkg/usr/lib/*so* $fs/usr/lib/
30 cp -a $_pkg/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 }