wok-next annotate v4l-utils/receipt @ rev 20468

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