Annotation of /trunk/extras/mjpegtools/mjpegtools-1.8.0-r2.smage2
Parent Directory | Revision Log
Revision 2 -
(hide annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 2111 byte(s)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 2111 byte(s)
import repo
1 | niro | 2 | # $Header: /magellan-cvs/smage/mjpegtools/mjpegtools-1.8.0-r2.smage2,v 1.1 2008/04/03 18:28:22 niro Exp $ |
2 | |||
3 | PNAME="mjpegtools" | ||
4 | PVER="1.8.0" | ||
5 | PBUILD="r2" | ||
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 | ||
14 | >= media-libs/libjpeg-6b | ||
15 | >= media-libs/libsdl-1.2 | ||
16 | >= x11-libs/gtk2+-2 | ||
17 | >= x11-libs/libX11-1 | ||
18 | >= x11-libs/libXt-1" | ||
19 | |||
20 | SDEPEND=">= dev-lang/nasm-0.98 | ||
21 | >= dev-util/pkgconfig-0.15.0 | ||
22 | >= sys-apps/sed-4" | ||
23 | |||
24 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
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}-${PVER}-gcc41.patch | ||
33 | mirror://${PNAME}/${PNAME}-${PVER}-parallelmake.patch | ||
34 | mirror://${PNAME}/${PNAME}-${PVER}-pkgconfig.patch | ||
35 | mirror://${PNAME}/${PNAME}-${PVER}-as-needed.patch | ||
36 | mirror://${PNAME}/${PNAME}-${PVER}-fix-lav2mpeg.patch | ||
37 | mirror://${PNAME}/${PNAME}-${PVER}-lavrec-memleak.patch | ||
38 | mirror://${PNAME}/${PNAME}-${PVER}-no-jpeg-mmx.patch | ||
39 | ) | ||
40 | |||
41 | src_prepare() | ||
42 | { | ||
43 | munpack ${SRCFILE} || die | ||
44 | cd ${SRCDIR} | ||
45 | |||
46 | # fix gcc build issues | ||
47 | mpatch ${PNAME}-${PVER}-gcc41.patch || die | ||
48 | |||
49 | # fix parallel make | ||
50 | mpatch ${PNAME}-${PVER}-parallelmake.patch || die | ||
51 | |||
52 | # fix missing pkgconfig | ||
53 | mpatch ${PNAME}-${PVER}-pkgconfig.patch || die | ||
54 | |||
55 | # fix as-needed | ||
56 | mpatch ${PNAME}-${PVER}-as-needed.patch || die | ||
57 | |||
58 | # fix some bugs | ||
59 | mpatch ${PNAME}-${PVER}-fix-lav2mpeg.patch || die | ||
60 | mpatch ${PNAME}-${PVER}-lavrec-memleak.patch || die | ||
61 | |||
62 | # fix hardcoded mmx | ||
63 | mpatch ${PNAME}-${PVER}-no-jpeg-mmx.patch || die | ||
64 | |||
65 | # rebuild configure | ||
66 | autoreconf --install --force || die | ||
67 | |||
68 | # do not use any hardcoded cflags | ||
69 | sed -i -e '/ARCHFLAGS=/s:=.*:=:' configure || die | ||
70 | } | ||
71 | |||
72 | src_compile() | ||
73 | { | ||
74 | cd ${SRCDIR} | ||
75 | |||
76 | mconfigure \ | ||
77 | --with-x \ | ||
78 | --with-libpng \ | ||
79 | --with-v4l \ | ||
80 | --with-gtk \ | ||
81 | --with-sdl \ | ||
82 | --enable-xfree-ext \ | ||
83 | --enable-simd-accel \ | ||
84 | --enable-largefile \ | ||
85 | --without-jpeg-mmx \ | ||
86 | || die | ||
87 | |||
88 | mmake || die | ||
89 | } | ||
90 | |||
91 | src_install () | ||
92 | { | ||
93 | cd ${SRCDIR} | ||
94 | |||
95 | minstall || die | ||
96 | minstalldocs AUTHORS ChangeLog Copyright LICENSE README || die | ||
97 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |