Magellan Linux

Contents of /trunk/core/libv4l/libv4l-0.8.5-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10395 - (show annotations) (download)
Sat Jan 21 15:17:12 2012 UTC (12 years, 4 months ago) by niro
File size: 1281 byte(s)
-no check target in Makefile
1 # $Id$
2
3 PNAME="libv4l"
4 PVER="0.8.5"
5 PBUILD="r2"
6
7 PCAT="media-libs"
8
9 DESCRIPTION="Collection of video4linux support libraries."
10 HOMEPAGE="http://linuxtv.org/"
11
12 DEPEND=""
13
14 SRCFILE="v4l-utils-${PVER}.tar.bz2"
15 SRCDIR="${BUILDDIR}/v4l-utils-${PVER}"
16
17 sminclude mbuild multilib
18 msetfeature "!check"
19
20 SRC_URI=(
21 http://linuxtv.org/downloads/v4l-utils/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 )
24
25 UP2DATE="updatecmd http://linuxtv.org/downloads/v4l-utils/ | grep v4l-utils- | lasttarball"
26
27 src_compile()
28 {
29 mmake -C lib CFLAGS="'${CFLAGS}'" PREFIX="/usr" LIBDIR="/usr/$(mlibdir)" || die
30 }
31
32 src_install()
33 {
34 mmake -C lib DESTDIR="${BINDIR}" PREFIX="/usr" LIBDIR='/usr/$(mlibdir)' install || die
35 minstalldocs ChangeLog COPYING* README* TODO || die
36 }
37
38 postinstall()
39 {
40 # taken from gentoo:
41 echo
42 echo "libv4l includes wrapper libraries for compatibility and pixel format"
43 echo "conversion, which are especially useful for users of the gspca usb"
44 echo "webcam driver in kernel 2.6.27 and higher."
45 echo
46 echo "To add v4l2 compatibility to a v4l application 'myapp', launch it via"
47 echo "LD_PRELOAD=/usr/$(mlibdir)/libv4l/v4l1compat.so myapp"
48 echo "To add automatic pixel format conversion to a v4l2 application, use"
49 echo "LD_PRELOAD=/usr/$(mlibdir)/libv4l/v4l2convert.so myapp"
50 echo
51 }