Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 20488 - (show annotations) (download)
Mon Jan 27 09:28:51 2014 UTC (10 years, 3 months ago) by niro
File size: 1192 byte(s)
-release branches/R11-stable
1 # $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 )
33
34 UP2EXCLUDE="[0-9]rc[0-1]"
35 UP2DATE="updatecmd_sourceforge mjpeg ${PNAME} gz"
36
37 src_prepare()
38 {
39 munpack ${SRCFILE} || die
40 cd ${SRCDIR}
41
42 # fix missing pkgconfig
43 mpatch ${PNAME}-1.8.0-pkgconfig.patch || die
44
45 # rebuild configure
46 mautoreconf || die
47
48 # do not use any hardcoded cflags
49 sed -i '/ARCHFLAGS=/s:=.*:=:' configure || die
50 }
51
52 src_compile()
53 {
54 cd ${SRCDIR}
55
56 mconfigure \
57 --with-x \
58 --with-libpng \
59 --with-v4l \
60 --with-gtk \
61 --with-sdl \
62 --enable-xfree-ext \
63 --enable-simd-accel \
64 --enable-largefile \
65 --without-jpeg-mmx \
66 || die
67
68 mmake || die
69 }