wok view libv4l/receipt @ rev 11885
pcmanfm2: Improve package integration
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Feb 28 14:35:10 2012 +0100 (2012-02-28) |
parents | f4c57a9c37bf |
children | 66e4194f3966 |
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 cd $src
19 make &&
20 make install PREFIX="/usr" DESTDIR="${PWD}/_pkg"
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
30 }
32 post_install()
33 {
34 echo "export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so" >> $1/etc/profile
35 }
37 post_remove()
38 {
39 sed -i 's/export LD_PRELOAD=\/usr\/lib\/libv4l\/v4l1compat.so/ /' $1/etc/profile
40 }