Magellan Linux

Contents of /trunk/extras/mjpegtools/mjpegtools-1.9.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4355 - (show annotations) (download)
Wed Dec 2 23:06:53 2009 UTC (14 years, 5 months ago) by niro
File size: 2073 byte(s)
auto added: ver bump to 1.9.0-r1
1 # $Id$
2
3 PNAME="mjpegtools"
4 PVER="1.9.0"
5 PBUILD="r1"
6
7 PCATEGORIE="media-video"
8 STATE="unstable"
9
10 DESCRIPTION="Programs for MJPEG recording and playback."
11 HOMEPAGE="http://mjpeg.sourceforge.net/"
12
13 DEPEND=">= media-libs/libpng-1.2.40
14 >= media-libs/libjpeg-7
15 >= media-libs/libsdl-1.2
16 >= x11-libs/gtk2+-2.18
17 >= x11-libs/libX11-1
18 >= x11-libs/libXt-1"
19
20 SDEPEND=">= dev-lang/nasm-2
21 >= dev-util/pkgconfig-0.23
22 >= sys-apps/sed-4"
23
24 SRCFILE="${PNAME}-${PVER}.tar.bz2"
25 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
26
27 sminclude mbuild mtools
28
29 SRC_URI=(
30 sourceforge://mjpeg/${SRCFILE}
31 mirror://${PNAME}/${SRCFILE}
32 mirror://${PNAME}/${PNAME}-1.8.0-gcc41.patch
33 mirror://${PNAME}/${PNAME}-1.8.0-parallelmake.patch
34 mirror://${PNAME}/${PNAME}-1.8.0-pkgconfig.patch
35 mirror://${PNAME}/${PNAME}-1.8.0-as-needed.patch
36 mirror://${PNAME}/${PNAME}-1.8.0-fix-lav2mpeg.patch
37 mirror://${PNAME}/${PNAME}-1.8.0-lavrec-memleak.patch
38 mirror://${PNAME}/${PNAME}-1.8.0-no-jpeg-mmx.patch
39 )
40
41 UP2SUBSTITUTE="mingw_script"
42 UP2DATE="updatecmd_sourceforge mjpeg ${PNAME} - ${PNAME}"
43
44 src_prepare()
45 {
46 munpack ${SRCFILE} || die
47 cd ${SRCDIR}
48
49 # fix gcc build issues
50 mpatch ${PNAME}-1.8.0-gcc41.patch || die
51
52 # fix parallel make
53 mpatch ${PNAME}-1.8.0-parallelmake.patch || die
54
55 # fix missing pkgconfig
56 mpatch ${PNAME}-1.8.0-pkgconfig.patch || die
57
58 # fix as-needed
59 mpatch ${PNAME}-1.8.0-as-needed.patch || die
60
61 # fix some bugs
62 mpatch ${PNAME}-1.8.0-fix-lav2mpeg.patch || die
63 mpatch ${PNAME}-1.8.0-lavrec-memleak.patch || die
64
65 # fix hardcoded mmx
66 mpatch ${PNAME}-1.8.0-no-jpeg-mmx.patch || die
67
68 # rebuild configure
69 autoreconf --install --force || die
70
71 # do not use any hardcoded cflags
72 sed -i -e '/ARCHFLAGS=/s:=.*:=:' configure || die
73 }
74
75 src_compile()
76 {
77 cd ${SRCDIR}
78
79 mconfigure \
80 --with-x \
81 --with-libpng \
82 --with-v4l \
83 --with-gtk \
84 --with-sdl \
85 --enable-xfree-ext \
86 --enable-simd-accel \
87 --enable-largefile \
88 --without-jpeg-mmx \
89 || die
90
91 mmake || die
92 }
93
94 src_install ()
95 {
96 cd ${SRCDIR}
97
98 minstall || die
99 minstalldocs AUTHORS ChangeLog Copyright LICENSE README || die
100 }

Properties

Name Value
svn:keywords Id