# $Id$ PNAME="libv4l" PVER="0.6.1" PBUILD="r2" PCATEGORIE="media-libs" STATE="unstable" DESCRIPTION="Collection of video4linux support libraries." HOMEPAGE="http://people.atrpms.net/~hdegoede/" DEPEND="" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild SRC_URI=( http://people.atrpms.net/~hdegoede/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd ${HOMEPAGE} | grep ${PNAME}- | grep -v -- -test | lasttarball gz" src_compile() { cd ${SRCDIR} mmake CFLAGS="${CFLAGS}" PREFIX="/usr" LIBDIR="/usr/$(mlibdir)" || die } src_install() { cd ${SRCDIR} mmake DESTDIR="${BINDIR}" PREFIX="/usr" LIBDIR="/usr/$(mlibdir)" install || die minstalldocs ChangeLog COPYING* README* TODO || die } postinstall() { # taken from gentoo: echo echo "libv4l includes wrapper libraries for compatibility and pixel format" echo "conversion, which are especially useful for users of the gspca usb" echo "webcam driver in kernel 2.6.27 and higher." echo echo "To add v4l2 compatibility to a v4l application 'myapp', launch it via" echo "LD_PRELOAD=/usr/$(mlibdir)/libv4l/v4l1compat.so myapp" echo "To add automatic pixel format conversion to a v4l2 application, use" echo "LD_PRELOAD=/usr/$(mlibdir)/libv4l/v4l2convert.so myapp" echo }