
Receipt for package "libv4l"
# SliTaz package receipt. PACKAGE="libv4l" VERSION="1.22.1" CATEGORY="multimedia" MAINTAINER="jozee@slitaz.org" LICENSE="GPL2" SHORT_DESC="Userspace library for Video 4 Linux (1 and 2)" WEB_SITE="https://web.archive.org/web/20220625040039/http://freshmeat.sourceforge.net/projects/libv4l" SOURCE="v4l-utils" TARBALL="$SOURCE-$VERSION.tar.bz2" WGET_URL="https://linuxtv.org/downloads/v4l-utils/$TARBALL" TAGS="webcam video" DEPENDS="libjpeg" BUILD_DEPENDS="jpeg-dev" HOST_ARCH="i486 x86_64" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*} 2>/dev/null | \ sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { sed -i 's|jpeg_mem|_&|' lib/libv4lconvert/jpeg_memsrcdest.h ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --libdir=/usr/lib \ $CONFIGURE_ARGS && make && make install PREFIX="/usr" DESTDIR="$DESTDIR" } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib cp -a $install/usr/lib/*so* $fs/usr/lib/ cp -a $install/usr/lib/$PACKAGE $fs/usr/lib # Ensure remove .la files find $fs -name "*.la" -delete } post_install() { lib='/usr/lib/libv4l/v4l1compat.so' if [ -e "$1$lib" ]; then grep -q "^export LD_PRELOAD=$lib$" "$1/etc/profile" || echo "export LD_PRELOAD=$lib" >> "$1/etc/profile" fi } post_remove() { sed -i '/export LD_PRELOAD=\/usr\/lib\/libv4l\/v4l1compat.so/d' "$1/etc/profile" }
6091 packages and 256114 files in current database (Thu Apr 3 00:00:04 2025)