wok-current view libv4l/receipt @ rev 14636

Xorg marathon, Day 2. xorg-trapproto: fix receipt; xorg-libXau(-dev): up 1.0.8; xorg-xtrans: prettify receipt; xorg-libX11: move X11 locales to locale-*; slitaz-i18n: add function get_x11_locale; locale-el: add receipt; locale-pt_BR locale-ru locale-zh_CN locale-zh_TW: add here X11 locales.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Jun 02 12:09:39 2013 +0000 (2013-06-02)
parents 66e4194f3966
children 6eff489aa802
line source
1 # SliTaz package receipt.
3 PACKAGE="libv4l"
4 VERSION="0.8.5"
5 CATEGORY="multimedia"
6 MAINTAINER="jozee@slitaz.org"
7 SHORT_DESC="Userspace library for Video 4 Linux (1 and 2)"
8 WEB_SITE="http://freshmeat.net/projects/libv4l"
9 SOURCE="v4l-utils"
10 TARBALL="${SOURCE}-${VERSION}.tar.bz2"
11 WGET_URL="http://linuxtv.org/downloads/v4l-utils/$TARBALL"
12 TAGS="webcam video"
14 DEPENDS="libjpeg"
15 BUILD_DEPENDS="jpeg-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 make &&
22 make install PREFIX="/usr" DESTDIR="$DESTDIR"
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
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
31 }
33 post_install()
34 {
35 echo "export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so" >> $1/etc/profile
36 }
38 post_remove()
39 {
40 sed -i 's/export LD_PRELOAD=\/usr\/lib\/libv4l\/v4l1compat.so/ /' $1/etc/profile
41 }