wok-4.x view libv4l/receipt @ rev 6343

Fixed vlc. Using ffmpeg instead of ffmpeg-svn since ffmpeg-svn can't be build.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Sep 19 14:05:10 2010 +0000 (2010-09-19)
parents 4fcb5252b15b
children f4c57a9c37bf
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 }
36 post_remove()
37 {
38 sed -i 's/export LD_PRELOAD=\/usr\/lib\/libv4l\/v4l1compat.so/ /' $1/etc/profile
39 }