Magellan Linux

Annotation of /branches/magellan-next/core/libv4l/libv4l-0.6.1-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8384 - (hide annotations) (download)
Fri Jul 15 11:27:52 2011 UTC (12 years, 10 months ago) by niro
File size: 1273 byte(s)
auto added: ver bump to 0.6.1-r4
1 niro 8384 # $Id$
2    
3     PNAME="libv4l"
4     PVER="0.6.1"
5     PBUILD="r4"
6    
7     PCATEGORIE="media-libs"
8    
9     DESCRIPTION="Collection of video4linux support libraries."
10     HOMEPAGE="http://people.atrpms.net/~hdegoede/"
11    
12     DEPEND=""
13    
14     SRCFILE="${PNAME}-${PVER}.tar.gz"
15     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
16    
17     sminclude mbuild
18    
19     SRC_URI=(
20     http://people.atrpms.net/~hdegoede/${SRCFILE}
21     mirror://${PNAME}/${SRCFILE}
22     )
23    
24     UP2DATE="updatecmd ${HOMEPAGE} | grep ${PNAME}- | grep -v -- -test | lasttarball gz"
25    
26     src_compile()
27     {
28     cd ${SRCDIR}
29    
30     mmake CFLAGS="${CFLAGS}" PREFIX="/usr" LIBDIR="/usr/$(mlibdir)" || die
31     }
32    
33     src_install()
34     {
35     cd ${SRCDIR}
36    
37     mmake DESTDIR="${BINDIR}" PREFIX="/usr" LIBDIR="/usr/$(mlibdir)" install || die
38     minstalldocs ChangeLog COPYING* README* TODO || die
39     }
40    
41     postinstall()
42     {
43     # taken from gentoo:
44     echo
45     echo "libv4l includes wrapper libraries for compatibility and pixel format"
46     echo "conversion, which are especially useful for users of the gspca usb"
47     echo "webcam driver in kernel 2.6.27 and higher."
48     echo
49     echo "To add v4l2 compatibility to a v4l application 'myapp', launch it via"
50     echo "LD_PRELOAD=/usr/$(mlibdir)/libv4l/v4l1compat.so myapp"
51     echo "To add automatic pixel format conversion to a v4l2 application, use"
52     echo "LD_PRELOAD=/usr/$(mlibdir)/libv4l/v4l2convert.so myapp"
53     echo
54     }