wok-6.x view libv4l/receipt @ rev 4609

libv4l: add LD_PREPLOAD trick to /etc/profile
author Rohit Joshi <jozee@slitaz.org>
date Tue Dec 15 16:42:43 2009 +0000 (2009-12-15)
parents 61ed234f88e9
children c7adce465b63
line source
1 # SliTaz package receipt.
3 PACKAGE="libv4l"
4 VERSION="0.6.3"
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://hansdegoede.livejournal.com/3636.html"
10 TARBALL="${PACKAGE}-${VERSION}.tar.gz"
11 WGET_URL="http://people.fedoraproject.org/~jwrdegoede/$TARBALL"
12 TAGS="webcam video"
14 # Rules to configure and make the package.
16 compile_rules() {
17 cd $src
18 make &&
19 make install PREFIX="/usr" DESTDIR="${PWD}/_pkg"
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/usr/lib
26 cp -a $_pkg/usr/lib/*so* $fs/usr/lib/
27 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 }