Magellan Linux

Annotation of /branches/R11-stable/extras/mjpegtools/mjpegtools-2.1.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 20383 - (hide annotations) (download)
Wed Dec 11 14:32:05 2013 UTC (10 years, 6 months ago) by niro
Original Path: trunk/extras/mjpegtools/mjpegtools-2.1.0-r1.smage2
File size: 1456 byte(s)
-fixed patch versions
1 niro 20382 # $Id$
2    
3     PNAME="mjpegtools"
4     PVER="2.1.0"
5     PBUILD="r1"
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 niro 20383 mirror://${PNAME}/${PNAME}-2.0.0-v4l-2.6.38.patch
33     mirror://${PNAME}/${PNAME}-2.0.0-build-fix.patch
34 niro 20382 )
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 niro 20383 mpatch ${PNAME}-2.0.0-v4l-2.6.38.patch || die
49 niro 20382
50     # fix build with recent gcc
51 niro 20383 mpatch ${PNAME}-2.0.0-build-fix.patch || die
52 niro 20382
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     }