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

Update png and Xorg in dependencies.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Dec 22 04:52:35 2018 +0200 (2018-12-22)
parents 10df65db91ad
children
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@21020 14 BUILD_DEPENDS="libjpeg-turbo-dev perl gettext-dev alsa-lib-dev eudev-dev"
al@21020 15 SPLIT="$PACKAGE-dev"
al@20468 16
al@20468 17 compile_rules() {
al@20468 18 ./configure $CONFIGURE_ARGS &&
al@20604 19 fix libtool &&
al@20468 20 make &&
al@20468 21 make -j1 install
al@20468 22 }
al@20468 23
al@20468 24 genpkg_rules() {
al@20468 25 case $PACKAGE in
al@20468 26 v4l-utils)
al@20468 27 copy @std
al@20468 28 DEPENDS="eudev libjpeg-turbo"
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 ;;
al@20468 35 esac
al@20468 36 }
al@20468 37
al@20468 38 post_install_v4l_utils() {
al@20468 39 lib='/usr/lib/libv4l/v4l1compat.so'
al@20468 40 if [ -e "$1$lib" ]; then
al@20468 41 grep -q "^export LD_PRELOAD=$lib$" "$1/etc/profile" ||
al@20468 42 echo "export LD_PRELOAD=$lib" >> "$1/etc/profile"
al@20468 43 fi
al@20468 44 }
al@20468 45
al@20468 46 post_remove_v4l_utils() {
al@20468 47 sed -i '/export LD_PRELOAD=\/usr\/lib\/libv4l\/v4l1compat.so/d' "$1/etc/profile"
al@20468 48 }