Contents of /trunk/extras/mjpegtools/mjpegtools-1.9.0-r1.smage2
Parent Directory | Revision Log
Revision 4357 -
(show annotations)
(download)
Wed Dec 2 23:09:23 2009 UTC (14 years, 9 months ago) by niro
File size: 1373 byte(s)
Wed Dec 2 23:09:23 2009 UTC (14 years, 9 months ago) by niro
File size: 1373 byte(s)
-removed upstream and deprecated patches
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.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}-1.8.0-pkgconfig.patch |
33 | ) |
34 | |
35 | UP2SUBSTITUTE="mingw_script" |
36 | UP2DATE="updatecmd_sourceforge mjpeg ${PNAME} - ${PNAME}" |
37 | |
38 | src_prepare() |
39 | { |
40 | munpack ${SRCFILE} || die |
41 | cd ${SRCDIR} |
42 | |
43 | # fix missing pkgconfig |
44 | mpatch ${PNAME}-1.8.0-pkgconfig.patch || die |
45 | |
46 | # rebuild configure |
47 | autoreconf --install --force || die |
48 | |
49 | # do not use any hardcoded cflags |
50 | sed -i -e '/ARCHFLAGS=/s:=.*:=:' configure || die |
51 | } |
52 | |
53 | src_compile() |
54 | { |
55 | cd ${SRCDIR} |
56 | |
57 | mconfigure \ |
58 | --with-x \ |
59 | --with-libpng \ |
60 | --with-v4l \ |
61 | --with-gtk \ |
62 | --with-sdl \ |
63 | --enable-xfree-ext \ |
64 | --enable-simd-accel \ |
65 | --enable-largefile \ |
66 | --without-jpeg-mmx \ |
67 | || die |
68 | |
69 | mmake || die |
70 | } |
71 | |
72 | src_install () |
73 | { |
74 | cd ${SRCDIR} |
75 | |
76 | minstall || die |
77 | minstalldocs AUTHORS ChangeLog Copyright LICENSE README || die |
78 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |