Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9360 - (show annotations) (download)
Sun Nov 27 22:41:26 2011 UTC (12 years, 5 months ago) by niro
File size: 1264 byte(s)
-multilib fixups
1 # $Id$
2
3 PNAME="libv4l"
4 PVER="0.8.5"
5 PBUILD="r2"
6
7 PCATEGORIE="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
19 SRC_URI=(
20 http://linuxtv.org/downloads/v4l-utils/${SRCFILE}
21 mirror://${PNAME}/${SRCFILE}
22 )
23
24 UP2DATE="updatecmd http://linuxtv.org/downloads/v4l-utils/ | grep v4l-utils- | lasttarball"
25
26 src_compile()
27 {
28 mmake -C lib CFLAGS="${CFLAGS}" PREFIX="/usr" LIBDIR="/usr/$(mlibdir)" || die
29 }
30
31 src_install()
32 {
33 mmake -C lib DESTDIR="${BINDIR}" PREFIX="/usr" LIBDIR='/usr/$(mlibdir)' install || die
34 minstalldocs ChangeLog COPYING* README* TODO || die
35 }
36
37 postinstall()
38 {
39 # taken from gentoo:
40 echo
41 echo "libv4l includes wrapper libraries for compatibility and pixel format"
42 echo "conversion, which are especially useful for users of the gspca usb"
43 echo "webcam driver in kernel 2.6.27 and higher."
44 echo
45 echo "To add v4l2 compatibility to a v4l application 'myapp', launch it via"
46 echo "LD_PRELOAD=/usr/$(mlibdir)/libv4l/v4l1compat.so myapp"
47 echo "To add automatic pixel format conversion to a v4l2 application, use"
48 echo "LD_PRELOAD=/usr/$(mlibdir)/libv4l/v4l2convert.so myapp"
49 echo
50 }