Magellan Linux

Contents of /branches/magellan-next/extras/mjpegtools/mjpegtools-2.0.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9562 - (show annotations) (download)
Sat Dec 10 20:19:07 2011 UTC (12 years, 5 months ago) by niro
File size: 1232 byte(s)
auto added: ver bump to 2.0.0-r1
1 # $Id$
2
3 PNAME="mjpegtools"
4 PVER="2.0.0"
5 PBUILD="r1"
6
7 PCATEGORIE="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.4
17 >= x11-libs/libXt-1"
18
19 SDEPEND=">= dev-lang/nasm-2
20 >= dev-util/pkgconfig-0.23
21 >= sys-apps/sed-4"
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 UP2SUBSTITUTE="mingw_script"
35 UP2DATE="updatecmd_sourceforge mjpeg ${PNAME} - ${PNAME}"
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 autoreconf --install --force || die
47
48 # do not use any hardcoded cflags
49 sed -i -e '/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 }