Magellan Linux

Contents of /branches/R11-stable/extras/mjpegtools/mjpegtools-2.0.0-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 15273 - (show annotations) (download)
Wed Jan 2 11:07:08 2013 UTC (11 years, 4 months ago) by niro
File size: 1464 byte(s)
-release branches/R11-stable
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 mirror://${PNAME}/${PNAME}-${PVER}-build-fix.patch
34 )
35
36 UP2EXCLUDE="[0-9]rc[0-1]"
37 UP2DATE="updatecmd_sourceforge mjpeg ${PNAME} gz"
38
39 src_prepare()
40 {
41 munpack ${SRCFILE} || die
42 cd ${SRCDIR}
43
44 # fix missing pkgconfig
45 mpatch ${PNAME}-1.8.0-pkgconfig.patch || die
46
47 # fix build against newer v4l headers
48 mpatch ${PNAME}-${PVER}-v4l-2.6.38.patch || die
49
50 # fix build with recent gcc
51 mpatch ${PNAME}-${PVER}-build-fix.patch || die
52
53 # rebuild configure
54 mautoreconf || die
55
56 # do not use any hardcoded cflags
57 sed -i '/ARCHFLAGS=/s:=.*:=:' configure || die
58 }
59
60 src_compile()
61 {
62 cd ${SRCDIR}
63
64 mconfigure \
65 --with-x \
66 --with-libpng \
67 --with-v4l \
68 --with-gtk \
69 --with-sdl \
70 --enable-xfree-ext \
71 --enable-simd-accel \
72 --enable-largefile \
73 --without-jpeg-mmx \
74 || die
75
76 mmake || die
77 }