Magellan Linux

Annotation of /branches/R11-unstable/extras/mjpegtools/mjpegtools-2.1.0-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32570 - (hide annotations) (download)
Mon Apr 29 13:10:58 2019 UTC (5 years, 1 month ago) by niro
File size: 1214 byte(s)
-release branches/R11-unstable
1 niro 29220 # $Id$
2    
3     PNAME="mjpegtools"
4     PVER="2.1.0"
5     PBUILD="r3"
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     >= virtual/libjpeg
14     >= media-libs/libsdl-1.2
15     >= x11-libs/gtk2+-2.24
16     >= x11-libs/libX11-1.5
17     >= x11-libs/libXt-1
18     >= sys-libs/libstdc++-6.3"
19    
20     SDEPEND=">= dev-lang/nasm-2
21     >= dev-util/pkgconfig-0.25
22     >= virtual/sed"
23    
24     SRCFILE="${PNAME}-${PVER}.tar.gz"
25     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
26    
27     sminclude mbuild
28    
29     SRC_URI=(
30     sourceforge://mjpeg/${SRCFILE}
31     mirror://${PNAME}/${SRCFILE}
32     mirror://${PNAME}/${PNAME}-1.8.0-pkgconfig.patch
33     )
34    
35     UP2EXCLUDE="[0-9]rc[0-1]"
36     UP2DATE="updatecmd_sourceforge mjpeg ${PNAME} gz"
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     mautoreconf || die
48    
49     # do not use any hardcoded cflags
50     sed -i '/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     }