Contents of /branches/magellan-next/core/libv4l/libv4l-0.8.4-r1.smage2
Parent Directory | Revision Log
Revision 8386 -
(show annotations)
(download)
Fri Jul 15 11:34:50 2011 UTC (13 years, 2 months ago) by niro
File size: 1285 byte(s)
Fri Jul 15 11:34:50 2011 UTC (13 years, 2 months ago) by niro
File size: 1285 byte(s)
auto added: ver bump to 0.8.4-r1
1 | # $Id$ |
2 | |
3 | PNAME="libv4l" |
4 | PVER="0.8.4" |
5 | PBUILD="r1" |
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 |
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 | cd ${SRCDIR} |
29 | |
30 | mmake -C lib CFLAGS="${CFLAGS}" PREFIX="/usr" LIBDIR="/usr/$(mlibdir)" || die |
31 | } |
32 | |
33 | src_install() |
34 | { |
35 | cd ${SRCDIR} |
36 | |
37 | mmake -C lib 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 | } |