Contents of /trunk/extras/mjpegtools/mjpegtools-2.0.0-r2.smage2
Parent Directory | Revision Log
Revision 13559 -
(show annotations)
(download)
Fri Oct 12 12:09:32 2012 UTC (11 years, 8 months ago) by niro
File size: 1334 byte(s)
Fri Oct 12 12:09:32 2012 UTC (11 years, 8 months ago) by niro
File size: 1334 byte(s)
-added patch to fix build aginst newer v4l headers
1 | # $Id$ |
2 | |
3 | PNAME="mjpegtools" |
4 | PVER="2.0.0" |
5 | PBUILD="r2" |
6 | |
7 | PCAT="media-video" |
8 | |
9 | DESCRIPTION="Programs for MJPEG recording and playback." |
10 | HOMEPAGE="http://mjpeg.sourceforge.net/" |
11 | |
12 | DEPEND=">= media-libs/libpng-1.5 |
13 | >= media-libs/libjpeg-8 |
14 | >= media-libs/libsdl-1.2 |
15 | >= x11-libs/gtk2+-2.24 |
16 | >= x11-libs/libX11-1.5 |
17 | >= x11-libs/libXt-1" |
18 | |
19 | SDEPEND=">= dev-lang/nasm-2 |
20 | >= dev-util/pkgconfig-0.25 |
21 | >= virtual/sed" |
22 | |
23 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
24 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
25 | |
26 | sminclude mbuild |
27 | |
28 | SRC_URI=( |
29 | sourceforge://mjpeg/${SRCFILE} |
30 | mirror://${PNAME}/${SRCFILE} |
31 | mirror://${PNAME}/${PNAME}-1.8.0-pkgconfig.patch |
32 | mirror://${PNAME}/${PNAME}-${PVER}-v4l-2.6.38.patch |
33 | ) |
34 | |
35 | UP2EXCLUDE="[0-9]rc[0-1]" |
36 | UP2DATE="updatecmd_sourceforge mjpeg ${PNAME} gz" |
37 | |
38 | src_prepare() |
39 | { |
40 | munpack ${SRCFILE} || die |
41 | cd ${SRCDIR} |
42 | |
43 | # fix missing pkgconfig |
44 | mpatch ${PNAME}-1.8.0-pkgconfig.patch || die |
45 | |
46 | # fix build against newer v4l headers |
47 | mpatch ${PNAME}-${PVER}-v4l-2.6.38.patch || die |
48 | |
49 | # rebuild configure |
50 | mautoreconf || die |
51 | |
52 | # do not use any hardcoded cflags |
53 | sed -i '/ARCHFLAGS=/s:=.*:=:' configure || die |
54 | } |
55 | |
56 | src_compile() |
57 | { |
58 | cd ${SRCDIR} |
59 | |
60 | mconfigure \ |
61 | --with-x \ |
62 | --with-libpng \ |
63 | --with-v4l \ |
64 | --with-gtk \ |
65 | --with-sdl \ |
66 | --enable-xfree-ext \ |
67 | --enable-simd-accel \ |
68 | --enable-largefile \ |
69 | --without-jpeg-mmx \ |
70 | || die |
71 | |
72 | mmake || die |
73 | } |