wok annotate 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 |
rev | line source |
---|---|
jozee@4488 | 1 # SliTaz package receipt. |
jozee@4488 | 2 |
jozee@4488 | 3 PACKAGE="libv4l" |
jozee@4488 | 4 VERSION="0.6.3" |
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)" |
jozee@4488 | 8 DEPENDS="glibc-base" |
jozee@4488 | 9 WEB_SITE="http://hansdegoede.livejournal.com/3636.html" |
jozee@4488 | 10 TARBALL="${PACKAGE}-${VERSION}.tar.gz" |
jozee@4488 | 11 WGET_URL="http://people.fedoraproject.org/~jwrdegoede/$TARBALL" |
jozee@4488 | 12 TAGS="webcam video" |
jozee@4488 | 13 |
jozee@4488 | 14 # Rules to configure and make the package. |
jozee@4488 | 15 |
jozee@4488 | 16 compile_rules() { |
jozee@4488 | 17 cd $src |
jozee@4488 | 18 make && |
jozee@4488 | 19 make install PREFIX="/usr" DESTDIR="${PWD}/_pkg" |
jozee@4488 | 20 } |
jozee@4488 | 21 |
jozee@4488 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@4488 | 23 genpkg_rules() |
jozee@4488 | 24 { |
jozee@4488 | 25 mkdir -p $fs/usr/lib |
jozee@4488 | 26 cp -a $_pkg/usr/lib/*so* $fs/usr/lib/ |
jozee@4488 | 27 cp -a $_pkg/usr/lib/$PACKAGE $fs/usr/lib |
jozee@4488 | 28 |
jozee@4488 | 29 } |
jozee@4609 | 30 |
jozee@4609 | 31 post_install() |
jozee@4609 | 32 { |
jozee@4609 | 33 echo "export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so" >> $1/etc/profile |
jozee@4609 | 34 } |