wok-next view v4l-utils/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents 10df65db91ad
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="v4l-utils"
4 VERSION="1.14.2"
5 CATEGORY="multimedia"
6 SHORT_DESC="Userspace tools and conversion library for Video 4 Linux"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://linuxtv.org/wiki/index.php/V4l-utils"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="http://linuxtv.org/downloads/v4l-utils/$TARBALL"
14 BUILD_DEPENDS="libjpeg-turbo-dev perl gettext-dev alsa-lib-dev eudev-dev"
15 SPLIT="$PACKAGE-dev"
17 compile_rules() {
18 ./configure $CONFIGURE_ARGS &&
19 fix libtool &&
20 make &&
21 make -j1 install
22 }
24 genpkg_rules() {
25 case $PACKAGE in
26 v4l-utils)
27 copy @std
28 DEPENDS="eudev libjpeg-turbo"
29 TAGS="webcam video"
30 ;;
31 *-dev)
32 copy @dev
33 DEPENDS="v4l-utils eudev-dev libjpeg-turbo-dev"
34 ;;
35 esac
36 }
38 post_install_v4l_utils() {
39 lib='/usr/lib/libv4l/v4l1compat.so'
40 if [ -e "$1$lib" ]; then
41 grep -q "^export LD_PRELOAD=$lib$" "$1/etc/profile" ||
42 echo "export LD_PRELOAD=$lib" >> "$1/etc/profile"
43 fi
44 }
46 post_remove_v4l_utils() {
47 sed -i '/export LD_PRELOAD=\/usr\/lib\/libv4l\/v4l1compat.so/d' "$1/etc/profile"
48 }