wok-6.x annotate libv4l/receipt @ rev 14064
shaarli: fix path + security fix
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 20 11:36:45 2013 +0100 (2013-02-20) |
parents | 66e4194f3966 |
children | 6eff489aa802 |
rev | line source |
---|---|
jozee@4488 | 1 # SliTaz package receipt. |
jozee@4488 | 2 |
jozee@4488 | 3 PACKAGE="libv4l" |
slaxemulator@12329 | 4 VERSION="0.8.5" |
jozee@4488 | 5 CATEGORY="multimedia" |
jozee@4488 | 6 MAINTAINER="jozee@slitaz.org" |
jozee@4488 | 7 SHORT_DESC="Userspace library for Video 4 Linux (1 and 2)" |
slaxemulator@6498 | 8 WEB_SITE="http://freshmeat.net/projects/libv4l" |
slaxemulator@6498 | 9 SOURCE="v4l-utils" |
slaxemulator@6498 | 10 TARBALL="${SOURCE}-${VERSION}.tar.bz2" |
slaxemulator@6498 | 11 WGET_URL="http://linuxtv.org/downloads/v4l-utils/$TARBALL" |
jozee@4488 | 12 TAGS="webcam video" |
jozee@4488 | 13 |
slaxemulator@12340 | 14 DEPENDS="libjpeg" |
slaxemulator@12340 | 15 BUILD_DEPENDS="jpeg-dev" |
slaxemulator@12340 | 16 |
jozee@4488 | 17 # Rules to configure and make the package. |
slaxemulator@12329 | 18 compile_rules() |
slaxemulator@12329 | 19 { |
slaxemulator@12329 | 20 cd $src |
slaxemulator@12329 | 21 make && |
slaxemulator@12329 | 22 make install PREFIX="/usr" DESTDIR="$DESTDIR" |
jozee@4488 | 23 } |
jozee@4488 | 24 |
jozee@4488 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@4488 | 26 genpkg_rules() |
jozee@4488 | 27 { |
jozee@4488 | 28 mkdir -p $fs/usr/lib |
jozee@4488 | 29 cp -a $_pkg/usr/lib/*so* $fs/usr/lib/ |
jozee@4488 | 30 cp -a $_pkg/usr/lib/$PACKAGE $fs/usr/lib |
jozee@4488 | 31 } |
jozee@4609 | 32 |
jozee@4609 | 33 post_install() |
jozee@4609 | 34 { |
jozee@4609 | 35 echo "export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so" >> $1/etc/profile |
jozee@4609 | 36 } |
jozee@4612 | 37 |
jozee@4612 | 38 post_remove() |
jozee@4612 | 39 { |
jozee@4612 | 40 sed -i 's/export LD_PRELOAD=\/usr\/lib\/libv4l\/v4l1compat.so/ /' $1/etc/profile |
jozee@4612 | 41 } |