Magellan Linux

Contents of /branches/magellan-next/core/libv4l/libv4l-0.6.1-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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

Properties

Name Value
svn:keywords Id